Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Build error

Jair Santos's picture

I successfully built FoundationClasses, ModelingData and ModelingAlgorithms.

When building Visualization I am getting

Error 1 error C2006: '#include' : expected a filename, found 'identifier' c:\opencascade\3rdparty\ftgl-2.1.3-vc9-32\include\ftgl\ftgl.h

It is refering to the line #include FT_FREETYPE_H of the file fgtl.h.

I set the path to ftheader.h as C:\Opencascade\3rdparty\freetype-2.4.10-vc9-32\include , where the macro is defined #define FT_FREETYPE_H

What am I missing?

Jair Santos

Forum supervisor's picture

Dear Jair,
See OCCT rebuilding process description at the chapter
"Welcome to Open CASCADE Technology / Building Modules / Building Modules".
Besides check content of the environment variable "CSF_OPT_INC",
defined in 'custom.bat' file located at '..\Opencascade\ros\' sub-directory.

Jair Santos's picture

Thank you.

It is working now.


J. Santos