On 2008-06-10 14:47+0200 Werner Smekal wrote:

> Hi Alan,
>
> I'm sorry, it was only today, that I had time to do these tests:
>
>> (1) The command-line results of wx-config --libs.  You have already
>> printed those out.
>
> -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa 
> -framework System  -lwx_macud-2.8
>> 
>> 
>> (2) What is reported by FindwxWidgets.cmake to wxwidgets.cmake.  That is
>> stored in the variable wxWidgets_LIBRARIES, but please print it out to
>> make sure it is identical to (1).
>
> wxWidgets_LIBRARIES = -framework QuickTime;-framework IOKit;-framework 
> Carbon;-framework Cocoa;-framework System;;-lwx_macud-2.8
>> 
>> 
>> (3) The results from cmake_link_flags.  Please print out those results
>> which are in the variable wxwidgets_LINK_FLAGS.
>> 
>
> wxwidgets_LINK_FLAGS = -framework;QuickTime;-framework;IOKit;- 
> framework;Carbon;-framework;Cocoa;-framework;System;/usr/lib/libwx_m
>
>> (4) The actual link line that CMake uses for builds which may transform
>> wxwidgets_LINK_FLAGS some more.  Please use make VERBOSE=1 to see the
>> actual link command being used.
>
> /usr/bin/c++    -g -dynamiclib -headerpad_max_install_names -single_module -o 
> libplplotwxwidgetsd.0.0.0.dylib -install_name /Users/ 
> smekal/Development/plbuild/bindings/wxwidgets/libplplotwxwidgetsd.0.dylib 
> "CMakeFiles/plplotwxwidgetsd.dir/wxPLplotstream.o" "CMakeFiles/ 
> plplotwxwidgetsd.dir/wxPLplotwindow.o" -L/Users/smekal/Development/ 
> plbuild/bindings/c++ -L/Users/smekal/Development/plbuild/src -L/Users/ 
> smekal/Development/plbuild/lib/csa -lplplotcxxd -framework -lQuickTime 
> -framework -lIOKit -framework -lCarbon -framework -lCocoa -framework -lSystem 
> -lwx_macud-2.8 -lplplotd -lltdl -ldl -lcsirocsa -lm

Thanks for that detailed information.  It appears from above that
cmake_link_flags transforms the single element "-framework QuickTime" of the
list from (2) into two separate list elements, -framework;QuickTime of (3)
(and similarly for the other frameworks).  This confuses cmake when it
attempts to assemble the link command.  Instead of processing -framework
QuickTime as a whole it processes -framework and QuickTime separately.  I am
guessing here that when it sees QuickTime alone it doesn't really know what
to do, and it bails out by prepending -l to it and hoping for the best.  The
cure for this issue is for cmake_link_flags to pass on whitespace-delimited
flags such as "-framework QuickTime" without splitting them into two
separate elements. I will have to think about the best way to implement that
fix.

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
__________________________

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to