Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Error building examples

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Error building examples


Chronological Thread 
  • From: Guilherme Kunigami <>
  • To:
  • Subject: [cgal-discuss] Re: Error building examples
  • Date: Thu, 12 Aug 2010 08:58:53 -0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Z8JT//VKzHqccpLAdxeJUmSuSEXFfJzJ6qLQUaGY8IDv/BnaLlul7HQAcguYhIO7JS IbhemrXUCTpnAP7iXoHaRZB2cvSV+7tVN/vl6erLpESlFqZ3bLHpvFTFYa+VmxY+lkgB 00rbndqZ+HGk21T+cm5NAZHq7FCCKPNHpKMUo=

Hi again,

Apparently, the error is due to the incorrect linking to the boost library, as can be seen below (appendix). I built boost 1.43.0 although it seems cmake only finds 1.34.1. The new version of boost seems to be in /usr/local/include and /usr/local/lib. I tried creating the environment variable (according to [1]):

BOOST_ROOT=/usr/local/

But it didn't work. Then I tried to be more specific:

BOOST_INCLUDEDIR=/usr/local/include
BOOST_LIBRARYDIR=/usr/local/lib

It didn't work either. Do I have to set the variables through cmake too?

Thanks,

[1] http://www.cgal.org/Manual/latest/doc_html/installation_manual/Chapter_installation_manual.html#Section_6

Appendix:

-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=6
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=5
-- CGAL_SOVERSION     =5.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- USING CMake version: 2.4.7
-- System: Linux
-- USING GCC_VERSION = '4.2.4 (Ubuntu 4.2.4-1ubuntu4)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Using gcc version 4.2. Adding -fno-strict-aliasing
-- Build type: Release
-- USING CXXFLAGS = '  -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
-- USING LDFLAGS = ' '
-- GMPXX include:    /usr/include
-- GMPXX libraries:  /usr/lib/libgmpxx.so
-- GMP include:     /usr/include
-- GMP libraries:   /usr/lib/libgmp.so
-- GMP definitions: 
-- USING GMP_VERSION = '4.2.2'
-- MPFR include:      /usr/include
-- MPFR libraries:    /usr/lib/libmpfr.so
-- MPFR definitions:  
-- USING MPFR_VERSION = '2.3.1'
-- Boost include:     /usr/include
-- Boost libraries:   optimized;/usr/lib/libboost_thread-gcc42-mt-1_34_1.so;debug;/usr/lib/libboost_thread-gcc42-mt-d-1_34_1.so
-- Boost definitions: 
-- USING BOOST_VERSION = '1.34.1'
-- CMAKE_INSTALL_PREFIX=/usr/local
-- OpenGL include:     /usr/include
-- OpenGL libraries:   /usr/lib/libGLU.so;/usr/lib/libGL.so;/usr/lib/libX11.so
-- USING ZLIB_VERSION = '1.2.3'
-- ZLib   include:     /usr/include
-- ZLib   libraries:   /usr/lib/libz.so
-- CGAL_Qt3 needs Qt3, cannot be configured.
-- CGAL_Qt4 needs Qt4, cannot be configured.
-- Configuring done
-- Generating done


On Wed, Aug 11, 2010 at 5:38 PM, Guilherme Kunigami <> wrote:
Hi all,

I'm having problems running the examples in CGAL/examples.

First I installed CGAL with

cmake .
make 
sudo make install

Everything goes fine (except CGAL_Qt3 and CGAL_Qt4, but I think it doesn't matter).

Then, to run an example, I try for example the AABB_tree directory.

There I do

cmake .

and 

make

But in this one I receive an error mesage:

Scanning dependencies of target AABB_custom_example
[ 12%] Building CXX object CMakeFiles/AABB_custom_example.dir/AABB_custom_example.o
Linking CXX executable AABB_custom_example
/usr/local/lib/libCGAL.so: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
collect2: ld returned 1 exit status
make[2]: *** [AABB_custom_example] Error 1
make[1]: *** [CMakeFiles/AABB_custom_example.dir/all] Error 2
make: *** [all] Error 2

It seems that the problem is with boost library, but it didn't showed errors when I was building/installing CGAL.

Does anyone have a clue about this error?

Thanks!
--
Guilherme Kunigami



--
Guilherme Kunigami



Archive powered by MHonArc 2.6.16.

Top of Page