Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem installing CGAL on Ubuntu

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem installing CGAL on Ubuntu


Chronological Thread 
  • From: gligart <>
  • To:
  • Subject: Re: [cgal-discuss] Problem installing CGAL on Ubuntu
  • Date: Mon, 9 Oct 2017 03:59:59 -0700 (MST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:5vK4yRz1jXWO5b/XCy+O+j09IxM/srCxBDY+r6Qd0u8UIJqq85mqBkHD//Il1AaPBtqLra8cw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2NBXupSi54jcWXxn+LgFoPf/dG4jIjs3x2frh1YfUZlBHgDuyaKluZEG5qQTev9MKqYRnI6c1jBDOpy0bKKxt2Wp0KAfLzF7H7cCq8cs7/g==

Thank you guys for the suggestions...now I succeded in running the commands:
cmake .
make
in the main directory of CGAL which seems to work, I hadn't any error
message neither any warning while compiling.
That's the output of make:

[ 5%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
Linking CXX shared library ../../lib/libCGAL.so
[ 5%] Built target CGAL
Scanning dependencies of target CGAL_Core
[ 10%] Building CXX object
src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
Linking CXX shared library ../../lib/libCGAL_Core.so
[ 10%] Built target CGAL_Core
Scanning dependencies of target CGAL_ImageIO
[ 15%] Building CXX object
src/CGAL_ImageIO/CMakeFiles/CGAL_ImageIO.dir/all_files.cpp.o
Linking CXX shared library ../../lib/libCGAL_ImageIO.so
[ 15%] Built target CGAL_ImageIO
Scanning dependencies of target CGAL_Qt5
[ 20%] Building CXX object
src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/all_files.cpp.o
[ 25%] Building CXX object
src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/__/__/include/CGAL/Qt/moc_GraphicsViewNavigation.cpp.o
[ 30%] Building CXX object
src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/__/__/include/CGAL/Qt/moc_DemosMainWindow.cpp.o
[ 35%] Building CXX object
src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/__/__/include/CGAL/Qt/moc_GraphicsItem.cpp.o
[ 40%] Building CXX object
src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/__/__/include/CGAL/Qt/moc_GraphicsViewInput.cpp.o
Linking CXX shared library ../../lib/libCGAL_Qt5.so
[100%] Built target CGAL_Qt5



Now I'm having another kind of problem, I'm not able to run a demo, for
example if I try with Convex_hull_2, in the folder of the example
Convex_Hull_2 I run this command:

g++ -lGCAL -lgmp -frounding-math ch_from_cin_to_cout.cpp

but what i got in response is this:

/usr/bin/ld: cannot find -lGCAL
collect2: error: ld returned 1 exit status

So I thought it's a matter of finding the lib, since I installed it from a
.tar its folder is /opt/CGAL-4.11/lib which contains the file libCGAL.so

Then I tried with this other command:

sudo g++ -L/opt/CGAL-4.11/lib -lGCAL -lgmp -frounding-math
ch_from_cin_to_cout.cpp

but got the same error.
So I thought it would have been nice to see if I can find the lib itself,
that's why I run this line:

ld -lCGAL --verbose

and that's the output:

attempt to open /usr/x86_64-linux-gnu/lib64/libCGAL.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libCGAL.a failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libCGAL.so succeeded
-lCGAL (//usr/local/lib/x86_64-linux-gnu/libCGAL.so)
libboost_thread.so.1.54.0 needed by
//usr/local/lib/x86_64-linux-gnu/libCGAL.so
found libboost_thread.so.1.54.0 at
//usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
libpthread.so.0 needed by //usr/local/lib/x86_64-linux-gnu/libCGAL.so
found libpthread.so.0 at //lib/x86_64-linux-gnu/libpthread.so.0
libstdc++.so.6 needed by //usr/local/lib/x86_64-linux-gnu/libCGAL.so
found libstdc++.so.6 at //usr/lib/x86_64-linux-gnu/libstdc++.so.6
libm.so.6 needed by //usr/local/lib/x86_64-linux-gnu/libCGAL.so
found libm.so.6 at //lib/x86_64-linux-gnu/libm.so.6
libgcc_s.so.1 needed by //usr/local/lib/x86_64-linux-gnu/libCGAL.so
found libgcc_s.so.1 at //lib/x86_64-linux-gnu/libgcc_s.so.1
libc.so.6 needed by //usr/local/lib/x86_64-linux-gnu/libCGAL.so
found libc.so.6 at //lib/x86_64-linux-gnu/libc.so.6
libboost_system.so.1.54.0 needed by
//usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
found libboost_system.so.1.54.0 at
//usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0
librt.so.1 needed by //usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
found librt.so.1 at //lib/x86_64-linux-gnu/librt.so.1
ld-linux-x86-64.so.2 needed by //lib/x86_64-linux-gnu/libpthread.so.0
found ld-linux-x86-64.so.2 at //lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
ld: warning: cannot find entry symbol _start; not setting start address

Now I don't exactly know what I'm doing, I think I got it but not
completely...and I got two questions about it:

1) Is it referring to the wroing one? Is it possible I have this file
/usr/local/lib/x86_64-linux-gnu/libCGAL.so due to an older installation from
terminal of CGAL? That way it didn't work at all with CMake that's why I
switched to an installation from a .tar , at least now CMake compiles.

2) How can I run some demos and or examples? I cannot find a proper way to
do it.




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page