I Have a problem...
I was able to create the .a files with --disable-shared

When I run the executable on the same system than the one on which the .a have 
been created,
It works --> It compiles and when I check with lld what are the shared library 
linked to my executable, I do not see anymore: png, jpeg, zlib

        libglut.so.3 => /usr/lib/libglut.so.3 (0x00417000)
        libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x03e08000)
        libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x00883000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00abe000)
        
/nfs/home/0/q/quertenmont/Visualisation/FROG_SVN/FROG_V3/trunk/frog/Lib/libfrog.so
 (0x00145000)
        libcurl.so.3 => /usr/lib/libcurl.so.3 (0x00111000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00bb5000)
        libm.so.6 => /lib/tls/libm.so.6 (0x00a4c000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a9d000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00a77000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0091b000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00ba5000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x00def000)
        libdl.so.2 => /lib/libdl.so.2 (0x00a71000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0x03fbb000)
        libssl.so.4 => /lib/libssl.so.4 (0x0072f000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x0019d000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00719000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x006b2000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00dea000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00287000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00aa9000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00a8b000)
        /lib/ld-linux.so.2 (0x00901000)



BUT when I try to compile the code on an other system, I have the following 
error:


g++ -Wall -o frog frog.cpp -DFROG_OPENGL -DFROG_ZLIB -DFROG_LIGHTING 
-DFROG_CURL -IIncludes/FLTK/ -O3 -funroll-loops -s -Dlinux  
-L/tmp/querten/FROG/frog/Lib -lglut -L/usr/lib64 -L/usr/X11/lib64 
-L/usr/X11R6/lib64 -lGLU -lGL -LIncludes/FLTK/lib -lfltk_images -lfltk_png 
-lfltk_z -lfltk_jpeg -lfltk -lfltk_forms -lfltk_gl -lm -lX11 -lfrog -pthread 
-LIncludes/CURL/Lib -lcurl -LIncludes/FLTK/lib -lfltk_png -lfltk_z -lfltk_gl 
-lfltk_jpeg
/usr/bin/ld: skipping incompatible Includes/FLTK/lib/libfltk_images.a when 
searching for -lfltk_images
/usr/bin/ld: skipping incompatible Includes/FLTK/lib/libfltk_images.a when 
searching for -lfltk_images
/usr/bin/ld: cannot find -lfltk_images
collect2: ld returned 1 exit status
make: *** [all] Error 1

Any Idea?

It is ofcourse really needed to make it running on different 
system/distribution  (that's actually why I'd like to move to static library)

In advance, thanks
Loic,


> Thanks for your quick answer,
> I think I succeed to create the static .lib/.a
>
> now I have to modify my code to see if it really works...
>
> Thanks again,
> Loic
>
>
> > > In my software I am using since a long time the pnglib
> > > (together with the libpng13.dll).  I am both reading and
> > > writting png files.
> > >
> > > Since FLTK is shipped with the pnglib, it sounds logical to
> > > use the FLTKImageLib instead of the pnglib (I will get for
> > > free the jpeg compatibility ;) )
> > >
> > > My first question is:
> > > 1) are fltkimages.lib, fltkpng.lib and fltkz.lib statically linked
> > > or will I need to load also the .dll associated to them (what
> > > I am doing now)...
> > > I would prefer to have statical library
> >
> > If you build fltk to use the built-in image libs rather than the system
> > ones, and you don't not enable support for shared libraries, then you
> > will get the static versions and they will be linked into your app at
> > compile time, removing the need for the dll entirely.
> >
> >
> > > 2) just to be sure, I guess I can also write .png file with
> > > the fltk lib isn't it?
> >
> > The lib distributed as the fltk built-in is just a copy of the png
> > distribution (1.1.x svn seems to have png-1.2.35 built in), and has all
> > the functionality of that.
> > Similarly the jpeg lib (which is jpeg-6b).
> >
> >
> >
> > SELEX Sensors and Airborne Systems Limited
> > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex 
> > SS14 3EL
> > A company registered in England & Wales.  Company no. 02426132
> > ********************************************************************
> > This email and any attachments are confidential to the intended
> > recipient and may also be privileged. If you are not the intended
> > recipient please delete it from your system and notify the sender.
> > You should not copy it or use it for any purpose nor disclose or
> > distribute its contents to any other person.
> > ********************************************************************
> >
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to