From: Alan W. I. <ir...@be...> - 2008-06-06 17:55:49
|
On 2008-06-05 17:13+0200 Werner Smekal wrote: > Hi Alan, > > with the latest svn version of plplot I'm unable to compile the > wxwidgets bindings of plplot. If I run "wx-config --libs" which > returns the linker options I get > > -framework QuickTime -framework IOKit -framework Carbon -framework > Cocoa -framework System -lwx_macud-2.8 Hi Werner: I have made a small test project (as of revision 8467) for the cmake_link_flags macro which can be obtained as follows: svn checkout https://plplot.svn.sourceforge.net/svnroot/plplot/branches/test_cmake/test_cmake_link_flags test_cmake_link_flags On Linux, here are the current results of running cmake on test_cmake_link_flags. [...] flags_in = -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework System -lIDL-2 flags_out = -framework;QuickTime;-framework;IOKit;-framework;Carbon;-framework;Cocoa;-framework;System;/usr/lib/libIDL-2.so flags_in = -pthread -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6 flags_out = -pthread;/usr/lib/libwx_gtk2u_xrc-2.6.so;/usr/lib/libwx_gtk2u_qa-2.6.so;/usr/lib/libwx_gtk2u_html-2.6.so;/usr/lib/libwx_gtk2u_adv-2.6.so;/usr/lib/libwx_gtk2u_core-2.6.so;/usr/lib/libwx_baseu_xml-2.6.so;/usr/lib/libwx_baseu_net-2.6.so;/usr/lib/libwx_baseu-2.6.so [...] For the first string I used your string with substitution of a valid library on Linux which had a name in similar style to the Mac's -lwx_macud-2.8 just in case the hyphen in the name was causing problems, but that turned out to be no problem. For the second string I used the actual results of "wx-config --libs" on my Linux platform. For both strings, everything seems to be working fine on Linux so the problem you have found appears to be platform-dependent. Thus,it is going to take some debugging effort from you on your Mac OS X platform to figure out the cause of the problem. I will help as much as I can from the sidelines. Once you can get to your Mac platform next week, I will be most interested in whether the results returned from "wx-config --libs" differ any from the wxWidgets_LIBRARIES variable returned from find_package(wxWidgets QUIET). (The (1) and (2) results requested in my previous post). When doing the comparison of the two strings I would be especially careful of any special characters that might be embedded in either string. I will also be interested in the results for the above simple test using your "wx-config --libs" results string as input (and also the string result from wxWidgets_LIBRARIES if that varies in any way from the other). N.B. you must edit the CMakeLists.txt file in the simple test to change the strings you are testing. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |