# occ 7.6 compile failed because of undefined signs "FT_LOAD_TARGET_LIGHT" and so on

After installed occ7.6, I compiled it. but when compiling “Visualization”, I got the following four errors,

would you be so kind to tell me why?

Attachments:

check the preprocessor definition.

Attachments:

Another way, open the "genconf.bat" file, change the visual studio version and third-party library, and save. Then double-click the "msvc.bat" file, open your visual studio, and compile it.

Attachments:

I have no "HAVE_FREETYPE" in my preprocessor definitions and still have the same errors...

See picture: #ifdef HAVE_FREETYPE will not build

Attachments:

Its a compile error an it should be fixed in the library! I just simply ifdeffed those lines too as a temporary solution...

David Toth wrote:

Its a compile error an it should be fixed in the library!

Sure, it would be nice fixing an issue -  please propose a patch.

use cmake:
cmake -G "Visual Studio 14 2015" -A x64 .

The genproj.bat for windows has some problem with the configuration.