DiscussionsIssue archiveInstallation and Building

Archived discussion

Installation Errors @ Red Hat

Installation and BuildingThu, 07/28/2011 - 15:3515 replies

Browse this forum
QuestionAuthor

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

Discussion

15 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

02Commenter-2

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.

03Commenter-1

Tried that and got the same errors.

04Commenter-1

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

05Commenter-2

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

06Commenter-1

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

Thanx

07Commenter-2

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.

08Commenter-2

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.

09Commenter-3

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?

10Commenter-4
11Commenter-5

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.

12Commenter-5

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.

13Commenter-6

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

- pg

14Author

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=...

15Commenter-7

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