Re: [wxVTK] [OSX] cocoa wx2.9 and vtk
Brought to you by:
malat
From: Hiroshi A. <ha...@gm...> - 2013-10-02 05:57:11
|
Dear Mathieu, As you pointed, my project is static linking. I did "make VERBOSE=1" and got long message, as is shown in the following, with some snap out. If you point out the problem, it would be so nice. I'm stacked in these couple of days. The library vtkCommon is surely listed in the linkage command. ... [ 8%] Building CXX object CMakeFiles/wxImagePlaneWidget.dir/Sample/wxImagePlaneWidget.cxx.o /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -Wno-deprecated -mlong-branch -I/usr/local/include/wx-2.9 -I/usr/local/include/vtk-5.4 -I/usr/local/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/usr/local/include/wx-2.9 -I/Users/hiroshi/NetSofts/wxWidgets/wxVTK/src -o CMakeFiles/wxImagePlaneWidget.dir/Sample/wxImagePlaneWidget.cxx.o -c /Users/hiroshi/NetSofts/wxWidgets/wxVTK/Sample/wxImagePlaneWidget.cxx "/Applications/CMake 2.8-6.app/Contents/bin/cmake" -E cmake_progress_report /Users/hiroshi/NetSofts/wxWidgets/wxVTK/build/CMakeFiles 2 [ 16%] Building CXX object CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.cxx.o /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -Wno-deprecated -mlong-branch -I/usr/local/include/wx-2.9 -I/usr/local/include/vtk-5.4 -I/usr/local/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/usr/local/include/wx-2.9 -I/Users/hiroshi/NetSofts/wxWidgets/wxVTK/src -ObjC++ -o CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.cxx.o -c /Users/hiroshi/NetSofts/wxWidgets/wxVTK/src/wxVTKRenderWindowInteractor.cxx Linking CXX executable bin/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget "/Applications/CMake 2.8-6.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/wxImagePlaneWidget.dir/link.txt --verbose=1 /usr/bin/c++ -Wno-deprecated -mlong-branch -I/usr/local/include/wx-2.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/wxImagePlaneWidget.dir/Sample/wxImagePlaneWidget.cxx.o CMakeFiles/wxImagePlaneWidget.dir/src/wxVTKRenderWindowInteractor.cxx.o -o bin/wxImagePlaneWidget.app/Contents/MacOS/wxImagePlaneWidget -L/usr/local/lib/vtk-5.4 -L/usr/local/lib -lvtkRendering -L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime /usr/local/lib/libwx_osx_cocoau_adv-2.9.a /usr/local/lib/libwx_osx_cocoau_core-2.9.a /usr/local/lib/libwx_baseu-2.9.a -L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lpng -ljpeg -framework WebKit -lwxregexu-2.9 -lz -lpthread -liconv -lvtkWidgets -lvtkHybrid -lvtkRendering -framework Cocoa -lvtkGraphics -lvtkverdict -lvtkImaging -lvtkftgl -lvtkfreetype -framework ApplicationServices -framework CoreServices -framework OpenGL -lvtkIO -lvtkFiltering -lvtkCommon -lpthread -lm -lvtkDICOMParser -lvtkmetaio -lvtksqlite -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -lvtksys -lvtkexoIIc -lvtkNetCDF Undefined symbols: "std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)", referenced from: vtkImagePlaneWidget::PrintSelf(std::basic_ostream<char, std::char_traits<char> >&, vtkIndent)in libvtkWidgets.a(vtkImagePlaneWidget.o) ....[same kind messages..] 2013/10/2 Mathieu Malaterre <mat...@gm...> > On Tue, Oct 1, 2013 at 2:34 PM, Hiroshi Abe <ha...@gm...> wrote: > > "std::basic_ostream<char, std::char_traits<char> >& > > std::__ostream_insert<char, std::char_traits<char> > >>(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)", > > referenced from: > > > > vtkOStreamWrapper::operator<<(unsigned char)in > > libvtkCommon.a(vtkOStreamWrapper.o) > > > > vtkOStreamWrapper::operator<<(char)in > > libvtkCommon.a(vtkOStreamWrapper.o) > > > > vtkOStreamWrapper::operator<<(char const*)in > > libvtkCommon.a(vtkOStreamWrapper.o) > > > > vtkRenderWindow::PrintSelf(std::basic_ostream<char, > > std::char_traits<char> >&, vtkIndent)in > libvtkRendering.a(vtkRenderWindow.o) > > > > vtkRenderWindow::PrintSelf(std::basic_ostream<char, > > std::char_traits<char> >&, vtkIndent)in > libvtkRendering.a(vtkRenderWindow.o) > > > > ..... > > > I have not compiled wxVTK in a while, but I suspect this is a static > linking issue. If you try to build with VTK shared libs on, do you get > the same error ? > I am guessing vtkCommon is missing from the explicit linking, but I > would need to see the compilation line to tell (make VERBOSE=1). > > 2cts > -- ABE Hiroshi from Tokorozwa, JAPAN |