Re: [wxVTK] [OSX] cocoa wx2.9 and vtk
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2013-10-02 06:05:58
|
Hi, On Wed, Oct 2, 2013 at 7:57 AM, Hiroshi Abe <ha...@gm...> wrote: > 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. That's not enough :) > /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) In static linking you have to duplicate libraries name on the link line (case of loop). I see vtkCommon after vtkWidgets, so I am *guessing* that vtkCommon should also be listed before vtkWidgets 2cts |