Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / Installation Errors @ Red Hat

Installation Errors @ Red Hat

Installation Errors @ Red Hat
ugur 2011/07/28 13:35
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
Mark Tietsort 2011/08/14 06:03
Same issue on Slack64 13.0. Any assistance will be greatly appreciated.
Yuriy Sinithin 2011/08/14 14:05
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 2011/08/14 16:38
Tried that and got the same errors.
farside 2011/08/14 17:03
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 2011/08/14 17:59
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 2011/08/14 20:36
I have /usr/include/FTGL. Put source code in it?

Thanx
Yuriy Sinithin 2011/08/14 23:36
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 2011/08/14 23:39
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 2012/02/23 19:01
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 2012/02/24 08:21
See http://www.opencascade.org/org/forum/thread_20128/
Ugo Capeto 2011/12/14 21:28
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 2011/12/14 21:31
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 2012/02/24 09:20
If anybody has built a version on rhel 6.0, why can't it be shared ?
regards

- pg
ugur 2012/02/24 10:38
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 2012/04/27 15:59
Exactly the same issue with OCC 6.5.3. Apparently the developers have not tested the new release for old REPORTED builds issues. *Sigh*
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map