DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2092
Version: 2.0-current


With MAC OSX, I had to hack into the Makefiles, to complete he
--enable-shared option.

The following changes were made to makeinclude file:

DSOCOMMAND  = $(CXX) -shared -dynamiclib -dynamic -o

Instead of using ld,

In makefiles for opengl and glut, I had to add the following:

../lib/$(DSONAME): $(OBJECTS)   echo $(DSOCOMMAND) $@ ...
   $(DSOCOMMAND) $@ $(OBJECTS) -L../lib -L/usr/X11/lib -lfltk2 -lGL
-dylib_file 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/Sy
stem/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-frame
work CoreFoundation -framework OpenGL -framework AGL -framework Carbon
   $(RM) ../lib/$(DSOLINK)
   $(LN) $(DSONAME) ../lib/$(DSOLINK)

to make it to work, and libjpeg/libpng/libzlib where lacking the DSONAME
compile options with --enable-shared, so I had to add the following to
them..

For jpeg:

DSONAME  =  $(DSOPREFIX)fltk2_jpeg$(DSOSUFFIX)
DSOLINK  =  $(DSOPREFIX)fltk2_jpeg$(DSOSYMLINK)

all:     $(LIBTARGET) $(DSOTARGET)

static:     ../../lib/$(LIBNAME)

shared:     ../../lib/$(DSONAME)

#
# Make static libraries...
#

../../lib/$(LIBNAME): $(OBJECTS)
   $(RM) $@
   echo $(LIBCOMMAND) $@ ...
   $(LIBCOMMAND) $@ $(OBJECTS)
   $(RANLIB) $@
   $(DSOCOMMAND) ../../lib/$(DSONAME) $(OBJECTS)
   $(RM) ../../lib/$(DSOLINK)
   $(LN) $(DSONAME) ../../lib/$(DSOLINK)


If wanted, I can send the new tar ball.


Link: http://www.fltk.org/str.php?L2092
Version: 2.0-current

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

Reply via email to