Re: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
From: Doug M. <mc...@ia...> - 2008-08-14 15:04:55
|
On Aug 14, 2008, at 9:46 AM, Mathieu Malaterre wrote: > Hi Doug, > > On Thu, Aug 14, 2008 at 4:38 PM, Doug McCorkle <mc...@ia...> > wrote: >> Here is what I get: >> >> leonidas:build mccdo$ make VERBOSE=1 >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" >> -H/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK >> -B/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build >> --check-build-system CMakeFiles/Makefile.cmake 0 >> cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" -E cmake_progress_start >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/ >> CMakeFiles >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/CMakeFiles/progress.make >> cd /Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && make -f >> CMakeFiles/Makefile2 all >> make -f CMakeFiles/wxImagePlaneWidget.dir/build.make >> CMakeFiles/wxImagePlaneWidget.dir/depend >> cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/wxVTK >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/CMakeFiles/wxImagePlaneWidget.dir/DependInfo.cmake >> --color= >> make -f CMakeFiles/wxImagePlaneWidget.dir/build.make >> CMakeFiles/wxImagePlaneWidget.dir/build >> Linking CXX executable >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget >> cd /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build && >> "/Volumes/data/stuff/data/VE_Suite_Tools/CMake/cmake-2.6.0-Darwin- >> universal/CMake >> 2.6-0.app/Contents/bin/cmake" -E cmake_link_script >> /Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/build/ >> CMakeFiles/wxImagePlaneWidget.dir/link.txt >> --verbose=1 >> /usr/bin/c++ -isysroot /Developer/SDKs/MacOSX10.4u.sdk -no- >> cpp-precomp >> -D__WXMAC__ -O2 -g -Wl,-search_paths_first - >> headerpad_max_install_names >> -fPIC >> CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/ >> data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/Sample/ >> wxImagePlaneWidget.cxx.o >> CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/ >> data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/ >> wxVTKRenderWindowInteractor.cxx.o >> -o >> /Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget >> -L/Volumes/data/stuff/data/VE_Suite_Deps/VTK_cvs/install-mac/lib >> -L/opt/local/lib -L/opt/local/lib -framework IOKit -framework System >> -framework QuickTime -lwx_macu-2.8 -lvtkWidgets -lvtkHybrid - >> lvtkParallel >> -lvtkRendering -lvtkftgl -lvtkfreetype -framework Carbon -framework >> Cocoa >> -lvtkGraphics -lvtkImaging -lvtkIO -framework OpenGL -lvtkFiltering >> -lverdict -lvtkDICOMParser -lvtkexoIIc -lvtkNetCDF -lvtkmetaio - >> lvtksqlite >> -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -lvtkCommon - >> lvtksys >> -lpthread -lm -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib - >> framework >> IOKit -framework Carbon -framework Cocoa -framework System -framework >> QuickTime -lwx_macu-2.8 -lvtkWidgets >> ld: library not found for -lcrt1.10.5.o >> collect2: ld returned 1 exit status >> make[2]: *** >> [/Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/ >> wxVTK/build/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget] >> Error 1 >> make[1]: *** [CMakeFiles/wxImagePlaneWidget.dir/all] Error 2 >> make: *** [all] Error 2 > > Ok then, let's try the solution suggested on: > > http://steel-wheels-project.blogspot.com/2008/02/build-doxygen-on-mac-os-x-1051-leopard.html > > Apparently using a recent cmake version you can do: > > export CMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk/usr/lib > > create an empty dir, and rerun cmake from scratch. It should now pick > "sysroot /Developer/SDKs/MacOSX10.4u.sdk/usr/lib" instead of the old > "sysroot /Developer/SDKs/MacOSX10.4u.sdk/" This is only for the link line. If I replace CMAKE_OSX_SYSROOT then nothing compiles because none of the headers can be found. I think the link line needs to change somehow not the whole CMAKE_OSX_SYSROOT. Doug |