Subject: CGAL users discussion list
List archive
- From: Marc Pouget <>
- To:
- Subject: Re: [cgal-discuss] failing to compile Mesh_3 demo on Mac, due to GLEW?
- Date: Tue, 10 Sep 2013 10:04:37 +0200
Hi Sebastien,
thanks for your help, I tried your suggestion, note that it's confusing since
the lib name in ccmake is GLEW_GLEW_LIBRARY
then in ccmake I can read:
GLEW_GLEW_LIBRARY -framework GLEW
GLEW_INCLUDE_DIR /usr/local/Cellar/glew/1.10.0/include
GLEW_cocoa_LIBRARY -framework Cocoa
nut I'm facing this:
Scanning dependencies of target mesh_3_demo_scene_segmented_image_item
[ 32%] Building CXX object
CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/Scene_segmented_image_item.cpp.o
Linking CXX shared library libmesh_3_demo_scene_segmented_image_item.dylib
ld: framework not found GLEW
collect2: ld returned 1 exit status
make[2]: *** [libmesh_3_demo_scene_segmented_image_item.dylib] Error 1
make[1]: *** [CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/all]
Error 2
make: *** [all] Error 2
It seems the brew did not create a "framework", note that I failed to install
glew from port...
M.
On Sep 10, 2013, at 9:24 AM, Sebastien Loriot (GeometryFactory) wrote:
> On 09/10/2013 09:19 AM, Marc Pouget wrote:
>> Hi,
>>
>> I use a homebrew install of many things including cgal 4.2 and GLEW, and
>> I'm trying to compile the Mesh_3 demo of CGAL-4.3-beta1.
>>
>> GLEW is not found by cmake so I used
>> cmake -DGLEW_INCLUDE_DIR=/usr/local/Cellar/glew/1.10.0/include/GL
>> -DGLEW_GLEW_LIBRARY=/usr/local/Cellar/glew/1.10.0/lib/libGLEW.dylib .
>
> I think it should be
> -DGLEW_INCLUDE_DIR=/usr/local/Cellar/glew/1.10.0/include
> -DGLEW_LIBRARY=/usr/local/Cellar/glew/1.10.0/lib/libGLEW.dylib
>
> Sebastien.
>
>>
>> but libmesh_3_demo_volume_planes_plugin fails to link:
>>
>> Linking CXX shared module libmesh_3_demo_volume_planes_plugin.so
>> ld: warning: duplicate dylib /usr/local/lib/libboost_thread-mt.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_system-mt.dylib
>> ld: warning: duplicate dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL_Qt4.dylib
>> ld: warning: duplicate dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL_ImageIO.dylib
>> ld: warning: duplicate dylib /usr/local/Cellar/cgal/4.2/lib/libCGAL.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_thread-mt.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_system-mt.dylib
>> ld: warning: duplicate dylib /usr/lib/libz.dylib
>> Undefined symbols:
>> "typeinfo for MainWindow", referenced from:
>> Volume_plane_plugin::init(QMainWindow*, Scene_interface*) in
>> Volume_planes_plugin.cpp.o
>> ld: symbol(s) not found
>>
>>
>> Note that without glew, this lib is not build and the others are compiling
>> fine. I also tried to compile and use the lib from CGAL-4.3-beta1 and got
>> the same error.
>>
>> Any ideas welcome,
>> best,
>>
>> Marc
>>
>>
>> More logs:
>>
>> make VERBOSE=1 mesh_3_demo_volume_planes_plugin gives:
>>
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake
>> -H/Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> -B/Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3 --check-build-system
>> CMakeFiles/Makefile.cmake 0
>> Re-run cmake file: Makefile older than: CMakeCache.txt
>> -- Build type: Debug
>> -- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -g'
>> -- USING EXEFLAGS = '
>> -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
>> '
>> -- Targetting Unix Makefiles
>> -- Using /usr/bin/g++ compiler.
>> -- DARWIN_VERSION=10
>> -- Mac Leopard detected
>> -- Requested component: Qt4
>> -- Found Qt4: /usr/local/bin/qmake (found version "4.8.5")
>> -- Requested component: ImageIO
>> -- Requested component: MPFR
>> -- Requested component: GMP
>> -- Found Qt4: /usr/local/bin/qmake (found version "4.8.5")
>> -- Found Glew: /usr/local/Cellar/glew/1.10.0/lib/libGLEW.dylib;-framework
>> Cocoa
>> -- Boost version: 1.54.0
>> -- Found the following Boost libraries:
>> -- thread
>> -- system
>> -- Found QGLViewer: /usr/lib/qglviewer.framework
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to:
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> make -f CMakeFiles/Makefile2 mesh_3_demo_volume_planes_plugin
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake
>> -H/Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> -B/Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3 --check-build-system
>> CMakeFiles/Makefile.cmake 0
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_progress_start
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles 18
>> make -f CMakeFiles/Makefile2
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/all
>> make -f CMakeFiles/mesh_3_demo_viewer.dir/build.make
>> CMakeFiles/mesh_3_demo_viewer.dir/depend
>> cd /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3&&
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_depends "Unix
>> Makefiles" /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles/mesh_3_demo_viewer.dir/DependInfo.cmake
>> --color=
>> make -f CMakeFiles/mesh_3_demo_viewer.dir/build.make
>> CMakeFiles/mesh_3_demo_viewer.dir/build
>> make[3]: Nothing to be done for `CMakeFiles/mesh_3_demo_viewer.dir/build'.
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_progress_report
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles 56 57 58
>> [ 16%] Built target mesh_3_demo_viewer
>> make -f CMakeFiles/mesh_3_demo_scene_item.dir/build.make
>> CMakeFiles/mesh_3_demo_scene_item.dir/depend
>> cd /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3&&
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_depends "Unix
>> Makefiles" /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles/mesh_3_demo_scene_item.dir/DependInfo.cmake
>> --color=
>> make -f CMakeFiles/mesh_3_demo_scene_item.dir/build.make
>> CMakeFiles/mesh_3_demo_scene_item.dir/build
>> make[3]: Nothing to be done for
>> `CMakeFiles/mesh_3_demo_scene_item.dir/build'.
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_progress_report
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles 47 48 49 50
>> 51
>> [ 44%] Built target mesh_3_demo_scene_item
>> make -f CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/build.make
>> CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/depend
>> cd /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3&&
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_depends "Unix
>> Makefiles" /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/DependInfo.cmake
>> --color=
>> make -f CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/build.make
>> CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/build
>> make[3]: Nothing to be done for
>> `CMakeFiles/mesh_3_demo_scene_segmented_image_item.dir/build'.
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_progress_report
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles 54 55
>> [ 55%] Built target mesh_3_demo_scene_segmented_image_item
>> make -f CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/build.make
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/depend
>> cd /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3&&
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_depends "Unix
>> Makefiles" /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3
>> /Users/pougetma/Library/CGAL-4.3-beta1/demo/Mesh_3/CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/DependInfo.cmake
>> --color=
>> make -f CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/build.make
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/build
>> Linking CXX shared module libmesh_3_demo_volume_planes_plugin.so
>> /usr/local/Cellar/cmake/2.8.11.2/bin/cmake -E cmake_link_script
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/link.txt --verbose=1
>> /usr/bin/g++ -frounding-math -fno-strict-aliasing -g -bundle
>> -Wl,-headerpad_max_install_names
>> -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
>> -o libmesh_3_demo_volume_planes_plugin.so
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/Volume_planes_plugin.cpp.o
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/moc_Volume_plane_thread.cxx.o
>>
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/moc_Volume_plane_interface.cxx.o
>>
>> CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/Volume_plane_intersection.cpp.o
>> -F/usr/local/Cellar/qt/4.8.5/lib -F/usr/lib
>> -L/usr/local/Cellar/cgal/4.2/lib -L/usr/local/lib
>> /usr/local/lib/libmpfr.dylib /usr/local/lib/libgmp.dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL_Qt4.dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL_ImageIO.dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL.dylib
>> /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_
> system-mt
> .dylib -framework QtOpenGL -framework QtGui -framework QtCore -framework
> AGL -framework OpenGL -framework AGL -framework OpenGL /usr/lib/libz.dylib
> -framework QtOpenGL -framework QtScript -framework QtGui -framework QtXml
> -framework QtCore libmesh_3_demo_scene_item.dylib
> /usr/local/Cellar/cgal/4.2/lib/libCGAL_Qt4.dylib
> /usr/local/Cellar/cgal/4.2/lib/libCGAL_ImageIO.dylib
> /usr/local/Cellar/cgal/4.2/lib/libCGAL.dylib
> /usr/local/lib/libboost_thread-mt.dylib
> /usr/local/lib/libboost_system-mt.dylib -framework QtOpenGL -framework
> QtGui -framework QtCore -framework AGL -framework OpenGL -framework AGL
> -framework OpenGL /usr/lib/libz.dylib
> libmesh_3_demo_scene_segmented_image_item.dylib libmesh_3_demo_viewer.dylib
> libmesh_3_demo_scene_item.dylib
> /usr/local/Cellar/glew/1.10.0/lib/libGLEW.dylib -framework Cocoa
> /usr/local/lib/libmpfr.dylib /usr/local/lib/libgmp.dylib
> /usr/local/Cellar/cgal/4.2/lib/libCGAL_Qt4.dylib
> /usr/local/Cellar/cgal/4.2/lib/libCGAL_ImageIO.dylib /usr/local/Cellar/
> cgal/4.2/
> lib/libCGAL.dylib /usr/local/lib/libboost_thread-mt.dylib
> /usr/local/lib/libboost_system-mt.dylib -framework qglviewer -framework
> QtOpenGL -framework QtScript -framework QtGui -framework QtXml -framework
> QtCore -framework AGL -framework OpenGL -framework AGL -framework OpenGL
> /usr/lib/libz.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_thread-mt.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_system-mt.dylib
>> ld: warning: duplicate dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL_Qt4.dylib
>> ld: warning: duplicate dylib
>> /usr/local/Cellar/cgal/4.2/lib/libCGAL_ImageIO.dylib
>> ld: warning: duplicate dylib /usr/local/Cellar/cgal/4.2/lib/libCGAL.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_thread-mt.dylib
>> ld: warning: duplicate dylib /usr/local/lib/libboost_system-mt.dylib
>> ld: warning: duplicate dylib /usr/lib/libz.dylib
>> Undefined symbols:
>> "typeinfo for MainWindow", referenced from:
>> Volume_plane_plugin::init(QMainWindow*, Scene_interface*) in
>> Volume_planes_plugin.cpp.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> make[3]: *** [libmesh_3_demo_volume_planes_plugin.so] Error 1
>> make[2]: *** [CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/all] Error 2
>> make[1]: *** [CMakeFiles/mesh_3_demo_volume_planes_plugin.dir/rule] Error 2
>> make: *** [mesh_3_demo_volume_planes_plugin] Error 2
>>
>>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
- [cgal-discuss] failing to compile Mesh_3 demo on Mac, due to GLEW?, Marc Pouget, 09/10/2013
- Re: [cgal-discuss] failing to compile Mesh_3 demo on Mac, due to GLEW?, Sebastien Loriot (GeometryFactory), 09/10/2013
- Re: [cgal-discuss] failing to compile Mesh_3 demo on Mac, due to GLEW?, Marc Pouget, 09/10/2013
- Re: [cgal-discuss] failing to compile Mesh_3 demo on Mac, due to GLEW?, Sebastien Loriot (GeometryFactory), 09/10/2013
Archive powered by MHonArc 2.6.18.