View Issue Details

IDProjectCategoryView StatusLast Update
0023697CommunityOCCT:Codingpublic2014-01-08 15:39
Reportersjjamsa Assigned Tobugmaster  
PriorityhighSeveritymajor 
Status closedResolutionno change required 
OSLinux, Ubuntu 
Product Version6.5.4 
Target Version6.6.0Fixed in Version6.6.0 
Summary0023697: FTGL net detected due to wrong order of parameters in configure: checking for FTGLTextureFont in -lftgl... no
DescriptionTrying to build the OCCT on ubuntu 12.04.1

The ./configure script did not recognize the existence of ftgl library.

The problem was, that the test had the source code parameter *after* the -lftgl, so the linker newer tried to find the FTGLTextureFont from libftgl.

I fixed it by changing the order of the linker parameters:

After:
# Check for FTGL Libraries
 Change:
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 into
ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS $LDFLAGS $LIBS >&5'


I don't know how this should be changed in the build_configure -script. Therefore no patch available.







I found out the cause of problems by adding to the configure script the following new lines in the function ac_fn_cxx_try_link:
(around the line (eval "$ac_link") 2>conftest.err )


   echo
   echo ::
   echo :: ac_link ="$ac_link"
   echo ::
   echo :: "conftest.$ac_ext"
   cat conftest.$ac_ext
   echo ::
   echo :: ac_ext ="$ac_ext"
   echo :: CXX ="$CXX"
   echo :: CXXFLAGS ="$CXXFLAGS"
   echo :: CPPFLAGS ="$CPPFLAGS"
   echo :: LDFLAGS ="$LDFLAGS"
   echo :: LIBS ="$LIBS"
   echo ::
   echo :: conftest.err
  (eval "$ac_link") 2>conftest.err #<-- Was there already
   cat conftest.err
   echo ::
Steps To ReproduceTry building the package on ubuntu 12.04.1
TagsNo tags attached.
Test case number

Activities

barbier

2014-01-02 00:39

developer   ~0027369

Hello,

This bug can be closed, OCCT does no more depend on FTGL since 6.6.0.

Issue History

Date Modified Username Field Change
2013-01-11 15:12 sjjamsa New Issue
2013-01-11 15:12 sjjamsa Assigned To => bugmaster
2014-01-02 00:39 barbier Note Added: 0027369
2014-01-03 18:11 abv Status new => closed
2014-01-03 18:11 abv Resolution open => no change required
2014-01-03 18:11 abv Fixed in Version => 6.6.0
2014-01-08 15:39 abv Target Version => 6.6.0
2014-01-11 11:58 abv Category OCCT Release:BUILD => OCCT:Coding