Hello Guys,

My post is not strictly related to FLTK in itself, but is linked to it...

My software has to work on both linux and macos.
And on computer that do not necessary have FLTK installed on.

So I included in my project the FLTK source tree (only necessary files to build 
the library).
I then created an configure.ac and makefile.am in order to compile the project 
and their dependencies (if not installed on the computers)
Dependencies are : PNG, JPEG, Z and CURL libraries.
FLTK is always compiled for the moment.

Everything just works fine on linux.

But when compiling FLTK on macOs, I have many warnings during FLTK 
compilations: see at the end of the mail

These are just warnings, so it compile up to the end.
But I have again error in the linking
/bin/sh ./libtool --silent --mode=link --tag=CXX g++  -g -O2   -o frog -LLib/ 
-static -L/usr/X11R6/lib 
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
 -g -prebind -dynamiclib  -framework AGL -framework OpenGL -framework Carbon 
-framework ApplicationServices -framework -lGL -lGLU -framework System  -lcurl 
-lz  frog-frog.o Includes/FROG/libfrog.la Includes/GL2PS/libfrog_gl2ps.la 
Includes/FLTK/src/libfrog_fltk_images.la Includes/FLTK/src/libfrog_fltk.la 
Includes/FLTK/src/libfrog_fltk_forms.la Includes/FLTK/src/libfrog_fltk_gl.la 
Includes/PNGLIB/libfrog_png.la Includes/JPEGLIB/libfrog_jpeg.la
ld: framework not found -lGL
ld: framework not found -lGLU

(Saw Just edit the makefile to remove -lGL and -lGLU)

in that case, the error is :
/bin/sh ./libtool --silent --mode=link --tag=CXX g++  -g -O2   -o frog
-LLib/ -static -L/usr/X11R6/lib -Wl,-dylib_file,/System/Library/
Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/
Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -
g -prebind -dynamiclib  -framework AGL -framework OpenGL -framework
Carbon -framework ApplicationServices -framework -framework  -lcurl -
lz  frog-frog.o Includes/FROG/libfrog.la Includes/GL2PS/
libfrog_gl2ps.la Includes/FLTK/src/libfrog_fltk_images.la Includes/
FLTK/src/libfrog_fltk.la Includes/FLTK/src/libfrog_fltk_forms.la
Includes/FLTK/src/libfrog_fltk_gl.la Includes/PNGLIB/libfrog_png.la
Includes/JPEGLIB/libfrog_jpeg.la
ld: framework not found -Xlinker
collect2: ld returned 1 exit status
make[1]: *** [frog] Error 1
make: *** [all-recursive] Error 1


I have to say, that I am really not an autotools expert (it's actually the 
first time I am using it).  Moreover, I don't know anything about the MacOS 
compilig/building/linking environement.

In case, you know more than me about macOS, and you wana help me, here is the 
project tar ball.  I am really desesparate, I spent already more than 10 days 
on this problem... :(

wget 
http://www.fynu.ucl.ac.be/users/l.quertenmont/TEMP/ForMichael/frog_autotools_working5.tar.gz
tar -zxf frog_autotools_working5.tar.gz
cd frog
./configure
make
./frog



Many thanks in advance,
I am sure that, Any comments will make me progress.

Cheers,
Loic


-----------------------------------------------------------------
Making all in FLTK/src
if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ 
-DHAVE_CONFIG_H -I. -I. -I../../../Includes/CURL/lib 
-I../../../Includes/CURL/curl -I../../../Includes/FLTK/FL  
-I../../../Includes/FLTK/   -g -O2 -MT libfrog_fltk_la-Fl.lo -MD -MP -MF 
".deps/libfrog_fltk_la-Fl.Tpo" -c -o libfrog_fltk_la-Fl.lo `test -f 'Fl.cxx' || 
echo './'`Fl.cxx; \
        then mv -f ".deps/libfrog_fltk_la-Fl.Tpo" 
".deps/libfrog_fltk_la-Fl.Plo"; else rm -f ".deps/libfrog_fltk_la-Fl.Tpo"; exit 
1; fi
Fl.cxx: In static member function ‘static void Fl::flush()’:
Fl.cxx:489: warning: ‘GetPort’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:307)
Fl.cxx:489: warning: ‘GetPort’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:307)
Fl.cxx:491: warning: ‘QDFlushPortBuffer’ is deprecated (declared 
at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:5709)
Fl.cxx:491: warning: ‘QDFlushPortBuffer’ is deprecated (declared 
at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:5709)
Fl_mac.cxx: In function ‘double do_queued_events(double)’:
Fl_mac.cxx:673: warning: ‘GetMouse’ is deprecated (declared at 
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h:384)
Fl_mac.cxx:673: warning: ‘GetMouse’ is deprecated (declared at 
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h:384)
Fl_mac.cxx: In function ‘OSStatus 
carbonMouseHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)’:
Fl_mac.cxx:1036: warning: ‘GetPort’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:307)
Fl_mac.cxx:1036: warning: ‘GetPort’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:307)
Fl_mac.cxx:1037: warning: ‘SetPort’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:292)
Fl_mac.cxx:1037: warning: ‘SetPort’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:292)
Fl_mac.cxx:1038: warning: ‘SetOrigin’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:429)
Fl_mac.cxx:1038: warning: ‘SetOrigin’ is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:429)
-----------------------------------------------------------------




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

Reply via email to