Linking with the Tcl/Tk frameworks in the build tree (works):

Linking C shared library libplplottcltkd.dylib
cd /Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/bindings/ 
tcl && /usr/local/bin/cmake -P CMakeFiles/plplottcltkd.dir/ 
cmake_clean_target.cmake
cd /Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/bindings/ 
tcl && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/ 
plplottcltkd.dir/link.txt --verbose=1
/usr/bin/gcc   -dynamiclib -headerpad_max_install_names - 
single_module -o libplplottcltkd.9.2.0.dylib -install_name /Users/ 
hbabcock/Documents/OpenSource/PLplot/plplot-CBS-1/bindings/tcl/ 
libplplottcltkd.9.dylib "CMakeFiles/plplottcltkd.dir/tclAPI.o"  
"CMakeFiles/plplottcltkd.dir/tclMain.o" "CMakeFiles/plplottcltkd.dir/ 
Users/hbabcock/Documents/OpenSource/PLplot/plplot-cvs/bindings/tk/ 
Pltk_Init.o" "CMakeFiles/plplottcltkd.dir/Users/hbabcock/Documents/ 
OpenSource/PLplot/plplot-cvs/bindings/tk/plframe.o" "CMakeFiles/ 
plplottcltkd.dir/Users/hbabcock/Documents/OpenSource/PLplot/plplot- 
cvs/bindings/tk/plr.o" "CMakeFiles/plplottcltkd.dir/Users/hbabcock/ 
Documents/OpenSource/PLplot/plplot-cvs/bindings/tk/tcpip.o"  
"CMakeFiles/plplottcltkd.dir/Users/hbabcock/Documents/OpenSource/ 
PLplot/plplot-cvs/bindings/tk/tkMain.o" -L/Users/hbabcock/Documents/ 
OpenSource/PLplot/plplot-CBS-1/bindings/tcl -L/Users/hbabcock/ 
Documents/OpenSource/PLplot/plplot-CBS-1/src -L/Users/hbabcock/ 
Documents/OpenSource/PLplot/plplot-CBS-1/lib/csa -L/Users/hbabcock/ 
Documents/OpenSource/PLplot/plplot-CBS-1/lib/nn -L/usr/X11R6/lib -L/ 
usr/local/lib -ltclmatrixd -lplplotd -framework tcl -framework tk -L/ 
usr/X11R6/lib -lSM -lICE -lX11 -lXext -lltdl -ldl -lm -lcsirocsa - 
lcsironn -lqhull


Linking with the Tcl/Tk frameworks in the install tree (doesn't work):

iMac /usr/local/lib/pkgconfig : PKG_CONFIG_PATH=/usr/local/lib/ 
pkgconfig pkg-config --cflags --libs plplotd-tcl
-I/usr/local/include/plplot -I/System/Library/Frameworks/ 
Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/ 
Headers  /System/Library/Frameworks/tcl.framework /System/Library/ 
Frameworks/tk.framework /usr/X11R6/lib/libX11.dylib /usr/X11R6/lib/ 
libXext.dylib /usr/lib/libltdl.dylib /usr/lib/libdl.dylib -L/usr/ 
local/lib -L/usr/X11R6/lib -lplplottcltkd -ltclmatrixd -lSM -lICE - 
lplplotd -lm -lcsirocsa -lcsironn -lqhull

Making all in tk
/usr/bin/gcc xtk01.c -o xtk01  `PKG_CONFIG_PATH=/usr/local/lib/ 
pkgconfig pkg-config --cflags --libs plplotd-tcl`
/usr/bin/ld: can't map file: /System/Library/Frameworks/tcl.framework  
((os/kern) invalid argument)
collect2: ld returned 1 exit status


This also does not work (I edited the plplotd-tcl.pc to be closer to  
the build tree linking command).

iMac /usr/local/lib/pkgconfig : more plplotd-tcl.pc
libdir=/usr/local/lib
includedir=/usr/local/include/plplot
drvdir=/usr/local/lib/plplot5.6.1/driversd

Name: PLplot Tcl/Tk
Description: Scientific plotting library (Tcl/Tk bindings, double  
precision)
Requires: plplotd
Version: 5.6.1
Libs: -L${libdir} -lplplottcltkd -ltclmatrixd -framework tcl - 
framework tk -L/usr/X11R6/lib -lSM -lICE /usr/X11R6/lib/libX11
.dylib /usr/X11R6/lib/libXext.dylib
Cflags: -I${includedir} -I/System/Library/Frameworks/Tcl.framework/ 
Headers -I/System/Library/Frameworks/Tk.framework/Headers
-I/usr/include -I/usr/include -I/usr/include


Making all in tk
/usr/bin/gcc xtk01.c -o xtk01  `PKG_CONFIG_PATH=/usr/local/lib/ 
pkgconfig pkg-config --cflags --libs plplotd-tcl`
powerpc-apple-darwin8-gcc-4.0.0: tk: No such file or directory
make[1]: *** [xtk01] Error 1


iMac /usr/local/lib/pkgconfig : PKG_CONFIG_PATH=/usr/local/lib/ 
pkgconfig pkg-config --cflags --libs plplotd-tcl
-I/usr/local/include/plplot -I/System/Library/Frameworks/ 
Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/ 
Headers  -framework tk tcl /usr/X11R6/lib/libX11.dylib /usr/X11R6/lib/ 
libXext.dylib /usr/lib/libltdl.dylib /usr/lib/libdl.dylib -L/usr/ 
local/lib -L/usr/X11R6/lib -lplplottcltkd -ltclmatrixd -lSM -lICE - 
lplplotd -lm -lcsirocsa -lcsironn -lqhull

It looks like the problem might be that pkg-config decided to roll  
the 2 -frameworks into one (i.e. "-framework tcl -framework tk"  
became "-framework tcl tk"). Assuming that this this is the problem,  
how does one prevent pkg-config from being quite so clever?

thanks,
-Hazen


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to