For all issues regarding the Forums use, please, refer to the Forum Rules.

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

Installation Errors @ Red Hat

ugur's picture

I tried to install but i cant, and get this error:

g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../inc -I../../../drv/OpenGl -I../../../src/OpenGl -DNDEBUG -DNo_Exception -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -O2 -MT OpenGl_FontMgr.lo -MD -MP -MF .deps/OpenGl_FontMgr.Tpo -c ../../../src/OpenGl/OpenGl_FontMgr.cxx -fPIC -DPIC -o OpenGl_FontMgr.lo
In file included from ../../../src/OpenGl/OpenGl_FontMgr.cxx:1:
../../../inc/OpenGl_FontMgr.hxx:10:20: error: FTFont.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:3:37: error: FTGLTextureFont.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:4:23: error: FTLibrary.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:5:20: error: FTFace.h: No such file or directory
../../../inc/OpenGl_FontMgr.hxx:39: error: ISO C++ forbids declaration of 'FTFont' with no type
../../../inc/OpenGl_FontMgr.hxx:39: error: expected ';' before '*' token
../../../inc/OpenGl_FontMgr.hxx:65: error: ISO C++ forbids declaration of 'FTFont' with no type
../../../inc/OpenGl_FontMgr.hxx:65: error: expected ';' before '*' token
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'void OpenGl_FontMgr::_initializeFontDB()':
../../../src/OpenGl/OpenGl_FontMgr.cxx:74: error: 'FTFace' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:74: error: expected `;' before 'face'
../../../src/OpenGl/OpenGl_FontMgr.cxx:76: error: 'face' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:76: error: 'FT_Err_Ok' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:89: error: 'FT_STYLE_FLAG_ITALIC' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:89: error: 'FT_STYLE_FLAG_BOLD' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'int OpenGl_FontMgr::request_font(const Handle_TCollection_HAsciiString&, OSD_FontAspect, Standard_Integer)':
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: 'FTGLTextureFont' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: 'font' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: expected type-specifier before 'FTGLTextureFont'
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: expected `;' before 'FTGLTextureFont'
../../../src/OpenGl/OpenGl_FontMgr.cxx:251: error: 'FT_Err_Ok' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:258: error: 'FT_Err_Ok' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:268: error: 'struct OpenGl_FontMgr::OGLFont_Cache' has no member named 'Font'
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'void OpenGl_FontMgr::render_text(Standard_Integer, const char*, Standard_Boolean)':
../../../src/OpenGl/OpenGl_FontMgr.cxx:348: error: 'struct OpenGl_FontMgr::OGLFont_Cache' has no member named 'Font'
../../../src/OpenGl/OpenGl_FontMgr.cxx: At global scope:
../../../src/OpenGl/OpenGl_FontMgr.cxx:371: error: expected initializer before '*' token
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'Standard_ShortReal OpenGl_FontMgr::computeWidth(Standard_Integer, const char*)':
../../../src/OpenGl/OpenGl_FontMgr.cxx:381: error: 'struct OpenGl_FontMgr::OGLFont_Cache' has no member named 'Font'
make[3]: *** [OpenGl_FontMgr.lo] Error 1
make[3]: Leaving directory `/home/ugur/opencascade/ros/adm/make/TKOpenGl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ugur/opencascade/ros/adm/make'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ugur/opencascade/ros'
make: *** [all] Error 2

farside's picture

Same issue on Slack64 13.0. Any assistance will be greatly appreciated.

Yuriy Sinithin's picture

Make sure that you install FTGL library. Or you may install previous versions of OCC like 6.3.0 without FTGL. This headers is need only to show text in OpenGL.

farside's picture

Tried that and got the same errors.

farside's picture

Here are the closing messages:

CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -O2 -MT OpenGl_FontMgr.lo -MD -MP -MF .deps/OpenGl_FontMgr.Tpo -c ../../../src/OpenGl/OpenGl_FontMgr.cxx -fPIC -DPIC -o .libs/OpenGl_FontMgr.o
In file included from ../../../src/OpenGl/OpenGl_FontMgr.cxx:1:
../../../inc/OpenGl_FontMgr.hxx:10:20: error: FTFont.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:3:37: error: FTGLTextureFont.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:4:23: error: FTLibrary.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:5:20: error: FTFace.h: No such file or directory
In file included from ../../../src/OpenGl/OpenGl_FontMgr.cxx:1:
../../../inc/OpenGl_FontMgr.hxx:39: error: ISO C++ forbids declaration of 'FTFont' with no type
../../../inc/OpenGl_FontMgr.hxx:39: error: expected ';' before '*' token
../../../inc/OpenGl_FontMgr.hxx:65: error: ISO C++ forbids declaration of 'FTFont' with no type
../../../inc/OpenGl_FontMgr.hxx:65: error: expected ';' before '*' token
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'void OpenGl_FontMgr::_initializeFontDB()':
../../../src/OpenGl/OpenGl_FontMgr.cxx:74: error: 'FTFace' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:74: error: expected `;' before 'face'
../../../src/OpenGl/OpenGl_FontMgr.cxx:76: error: 'face' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:76: error: 'FT_Err_Ok' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:89: error: 'FT_STYLE_FLAG_ITALIC' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:89: error: 'FT_STYLE_FLAG_BOLD' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'int OpenGl_FontMgr::request_font(const Handle_TCollection_HAsciiString&, OSD_FontAspect, Standard_Integer)':
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: 'FTGLTextureFont' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: 'font' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: expected type-specifier before 'FTGLTextureFont'
../../../src/OpenGl/OpenGl_FontMgr.cxx:249: error: expected `;' before 'FTGLTextureFont'
../../../src/OpenGl/OpenGl_FontMgr.cxx:251: error: 'FT_Err_Ok' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:258: error: 'FT_Err_Ok' was not declared in this scope
../../../src/OpenGl/OpenGl_FontMgr.cxx:268: error: 'struct OpenGl_FontMgr::OGLFont_Cache' has no member named 'Font'
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'void OpenGl_FontMgr::render_text(Standard_Integer, const char*, Standard_Boolean)':
../../../src/OpenGl/OpenGl_FontMgr.cxx:348: error: 'struct OpenGl_FontMgr::OGLFont_Cache' has no member named 'Font'
../../../src/OpenGl/OpenGl_FontMgr.cxx: At global scope:
../../../src/OpenGl/OpenGl_FontMgr.cxx:371: error: expected initializer before '*' token
../../../src/OpenGl/OpenGl_FontMgr.cxx: In member function 'Standard_ShortReal OpenGl_FontMgr::computeWidth(Standard_Integer, const char*)':
../../../src/OpenGl/OpenGl_FontMgr.cxx:381: error: 'struct OpenGl_FontMgr::OGLFont_Cache' has no member named 'Font'
make[3]: *** [OpenGl_FontMgr.lo] Error 1
make[3]: Leaving directory `/tmp/SBo/OpenCASCADE6.5.1/ros/adm/make/TKOpenGl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/OpenCASCADE6.5.1/ros/adm/make'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/OpenCASCADE6.5.1/ros'
make: *** [all] Error 2

Yuriy Sinithin's picture

On the Debian and Fedora linux build cool. Check you have /usr/include/FTGL directory or not. Also you don't need ftgl library, only sources

farside's picture

I have /usr/include/FTGL. Put source code in it?

Thanx

Yuriy Sinithin's picture

Don't copy this headers, in my project I have next:

INCLUDEPATH += /usr/include/FTGL \
/usr/include/freetype2

this includes only need for TkOpenGL librarys.

Yuriy Sinithin's picture

I don't know how configure with cmake and other, but I have Qt Creator *.pro files for all OCC sources:

http://www.opencascade.org/org/forum/thread_19175/

You may open OpenGL.pro file and see how to include headers of FTGL and freetype library into OCC.

Rajeev Jain's picture

I get the same error on Mac OS X Lion 10.7.3
Installed FTGL from source and used --with-ftgl option still getting the same error. Are there other dependencies?

Denis Barbier's picture

See http://www.opencascade.org/org/forum/thread_20128/

Ugo Capeto's picture

exact same problem here. what has to be done?

I've followed to the T the instructions given and still can't compile. What gives?

Linux 64 bit.

Ugo Capeto's picture

I mean I followed the instructions given in the pdf that comes with OCCT (Building of OCC Tech 6.5.2 on Linux

thanks in advance.

PG's picture

If anybody has built a version on rhel 6.0, why can't it be shared ?
regards

- pg

ugur's picture

Hi all,

After at all, i found the solution to find compiled codes. It is easy to install on debian system, not RedHat. And I had success about that,i wrote in my blog (sorry but in Turkish):

http://www.kocakbilisim.com/uk/2011/07/open-cascade-giris/

and translateed version (by google translate):

http://translate.google.com/translate?sl=tr&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.kocakbilisim.com%2Fuk%2F2011%2F07%2Fopen-cascade-giris%2F&act=url

james's picture

Exactly the same issue with OCC 6.5.3. Apparently the developers have not tested the new release for old REPORTED builds issues. *Sigh*