Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: CGAL 3.6 first post-installation steps

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: CGAL 3.6 first post-installation steps


Chronological Thread 
  • From: Ianic <>
  • To:
  • Subject: [cgal-discuss] Re: CGAL 3.6 first post-installation steps
  • Date: Mon, 26 Apr 2010 13:18:50 -0700 (PDT)


Thank you for the prompt reply!

I wasn't sure how to set the CMAKE_VERBOSE_MAKEFILE flag, so I used
VERBOSE=1 command instead.
The compiler/linker commands are:

ianic@ianic-desktop
~/CGAL-3.6/applications $ make VERBOSE=1
/usr/bin/cmake -H/home/ianic/CGAL-3.6/applications
-B/home/ianic/CGAL-3.6/applications --check-build-system
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start
/home/ianic/CGAL-3.6/applications/CMakeFiles
/home/ianic/CGAL-3.6/applications/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/ianic/CGAL-3.6/applications'
make -f CMakeFiles/mesh_3D_image.dir/build.make
CMakeFiles/mesh_3D_image.dir/depend
make[2]: Entering directory `/home/ianic/CGAL-3.6/applications'
cd /home/ianic/CGAL-3.6/applications && /usr/bin/cmake -E cmake_depends
"Unix Makefiles" /home/ianic/CGAL-3.6/applications
/home/ianic/CGAL-3.6/applications /home/ianic/CGAL-3.6/applications
/home/ianic/CGAL-3.6/applications
/home/ianic/CGAL-3.6/applications/CMakeFiles/mesh_3D_image.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/ianic/CGAL-3.6/applications'
make -f CMakeFiles/mesh_3D_image.dir/build.make
CMakeFiles/mesh_3D_image.dir/build
make[2]: Entering directory `/home/ianic/CGAL-3.6/applications'
/usr/bin/cmake -E cmake_progress_report
/home/ianic/CGAL-3.6/applications/CMakeFiles 1
[100%] Building CXX object CMakeFiles/mesh_3D_image.dir/mesh_3D_image.o
/usr/bin/c++ -frounding-math -O3 -DNDEBUG
-I/home/ianic/CGAL-3.6/applications/../include
-I/home/ianic/CGAL-3.6/applications -I/usr/local/include -o
CMakeFiles/mesh_3D_image.dir/mesh_3D_image.o -c
/home/ianic/CGAL-3.6/applications/mesh_3D_image.cpp
Linking CXX executable mesh_3D_image
/usr/bin/cmake -E cmake_link_script CMakeFiles/mesh_3D_image.dir/link.txt
--verbose=1
/usr/bin/c++ -frounding-math -O3 -DNDEBUG
CMakeFiles/mesh_3D_image.dir/mesh_3D_image.o -o mesh_3D_image -rdynamic
-L/usr/local/lib /usr/local/lib/libCGAL_Core.so /usr/local/lib/libCGAL.so
-lgmpxx -lmpfr -lgmp -lboost_thread-mt /usr/local/lib/libCGAL_Core.so
/usr/local/lib/libCGAL.so -lgmpxx -lmpfr -lgmp -lboost_thread-mt
-Wl,-rpath,/usr/local/lib
CMakeFiles/mesh_3D_image.dir/mesh_3D_image.o: In function `main':
mesh_3D_image.cpp:(.text+0x1f6e): undefined reference to `_readImage(char
const*)'
mesh_3D_image.cpp:(.text+0x1f80): undefined reference to
`CGAL::Image_3::private_read(point_image*)'
collect2: ld returned 1 exit status
make[2]: *** [mesh_3D_image] Error 1
make[2]: Leaving directory `/home/ianic/CGAL-3.6/applications'
make[1]: *** [CMakeFiles/mesh_3D_image.dir/all] Error 2
make[1]: Leaving directory `/home/ianic/CGAL-3.6/applications'
make: *** [all] Error 2

There were no complaints during the cmake-gui configuraion/generation
workflow.

Basically, as Andreas Fabri mentioned in his message, there is no
CGAL_ImageIO library here during the linkage. I believe this is the reason
for this error. My question in this case is what additional steps have to be
performed so that this library is hooked up properly? Just to reiterate,
this very same example compiled perfectly within the "examples" folder, I
merely copied it to another location.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-3-6-first-post-installation-steps-tp2065667p2065746.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page