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,

undefined signs "FT_LOAD_TARGET_LIGHT" ;
undefined signs "FT_LOAD_NO_HINTING" ;
undefined signs "FT_LOAD_FORCE_AUTOHINT" ;
undefined signs "FT_LOAD_NO_AUTOHINT" ;

would you be so kind to tell me why?

ting wang's picture

check the preprocessor definition.

Attachments: 
ting wang's picture

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: 
David Toth's picture

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

See picture: #ifdef HAVE_FREETYPE will not build

Attachments: 
David Toth's picture

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

Kirill Gavrilov's picture

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.

Minhua Chen's picture

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

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