On Feb 24, 2015, at 1:20 AM, "Alan W. Irwin" <ir...@beluga.phys.uvic.ca> wrote:
> > >> >> I tested with wxWidgets 3.0 from MacPorts. >> >> CMake string: >> >> PATH=${PATH}:/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin >> cmake -DCMAKE_INSTALL_PREFIX=/opt/nuclear -DBUILD_TEST=ON ../plplot-plplot/ >> >& cmake.out >> >> N.B. I had to specify the path to wx-config >> >> I then tried to make and ran into an error >> >> [ 30%] Building CXX object >> bindings/wxwidgets/CMakeFiles/plplotwxwidgets.dir/wxPLplotstream.cpp.o >> Linking CXX shared library libplplotwxwidgets.dylib >> Undefined symbols for architecture x86_64: >> "_c_plsstrm", referenced from: >> plstream::set_stream() in wxPLplotstream.cpp.o >> ld: symbol(s) not found for architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> make[2]: *** [bindings/wxwidgets/libplplotwxwidgets.0.0.0.dylib] Error 1 >> make[1]: *** [bindings/wxwidgets/CMakeFiles/plplotwxwidgets.dir/all] Error 2 >> make: *** [all] Error 2 >> >> I have attached my cmake.out and make.out contents. > > I immediately noticed the mention of _c_plsstrm above which appears to > be a reference to a libplplot function (not libplplotcxx which is an > important difference) that is required by libplplotwxwidgets to set > the stream number. This direct dependence of libplplotwxwidgets on > libplplot is confirmed on Linux with the following nm result: > > software@raven> nm --undefined-only --demangle > bindings/wxwidgets/libplplotwxwidgets.so |grep plsstrm > U c_plsstrm > > I have now (commit id 67651bd) changed our build system so that > libplplotwxwidgets will be linked to both libplplot and libplplotcxx > now. > > I am virtually positive that will solve the above linking issue, but let > me know how it goes, and if that linking works how much further you get. I updated from the git repository and now got the following error: Linking CXX executable wxPLViewer ld: library not found for -lrt clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [utils/wxPLViewer] Error 1 make[1]: *** [utils/CMakeFiles/wxPLViewer.dir/all] Error 2 make: *** [all] Error 2 librt is not available on Mac OS X nor is it in MacPorts. Which function are we pulling in from librt? ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel