Hi Ty,

you can get rid of the tk warnings by gettting rid of the tk driver,  
which you don't need anyway by setting the cmake option - 
DENABLE_tk=OFF and -DENABLE-tcl=OFF. The other warnings you get are  
since there is a mixup between the png/jpeg libraries installed by  
macport to /opt/local/ and the ones provided by the wxWidgets library.  
I actually have similar problems and need to find a way how I tell  
cmake which library/headers it should use. In the shared case this is  
not a problem, since the wxWidgets library knows which dylib to use,  
but if you link all together many symbols are twice in the linked  
object.

So I would suggest to stick to the shared case, since you can link  
against the dylib anyways. If you look at how an example is compiled  
(use make VERBOSE=1):

cd /Users/smekal/Development/plplot/build/examples/c && /usr/bin/ 
gcc    -headerpad_max_install_names -fPIC "CMakeFiles/x14c.dir/ 
x14c.o"   -o x14c  -L/Users/smekal/Development/plplot/build/src -L/ 
Users/smekal/Development/plplot/build/lib/csa -lplplotd -lm -lltdl - 
ldl -lcsirocsa -lm

You can see that it tells gcc to look in /Users/smekal/Development/ 
plplot/build/src and link against plplotd. Since there are in this  
directory only dylibs I suppose gcc can link against them, as can gcc  
for Windows (which I'm sure can link against dlls).

So don't tell xcode the link against libplplotd.a, just tell it to  
link against plplotd. gcc should figure it out on its own.

Regards,
Werner

On 03.02.2008, at 18:42, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] 
 > wrote:

> Hi All,
>
> I am still trying to incorporate PLplot in some of my code and had a
> question on building without the shared libraries.  I've been  
> getting alot
> of good help from Werner and I've hit a snag that I thought would be  
> better
> to post to the group.  I'm trying to add the Plplot libraries to  
> xcode but
> only have the *.dylibs in the source tree.  Werner suggested I try
> compiling and building with the shared libraries off.  When I do  
> this I get
> an error in the build.  I have attached a copy of what I get when I  
> 'make'
> with the Shared libraries off.
>
> Any ideas what is going wrong?  My goal is to build the libraries  
> with *.a
> extension to add to my xcode.
>
> Cheers,
> Ty
> < 
> make_results 
> .out 
> .tbz 
> > 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
> Plplot-general mailing list
> Plplot-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general

--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to