| [ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
STR #2092
Application: | FLTK Library |
Status: | 5 - New |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | Unassigned |
Summary: | With MAC OSX Leopard, I had to hack into Makefiles to complete --enable-shared option |
Version: | 2.0-current |
Created By: | pgurumur |
Assigned To: | Unassigned |
Fix Version: | Unassigned |
Update Notification: | |
Trouble Report Files:
[ Post File ]No files
Trouble Report Comments:
[ Post Text ]
|
#1 | pgurumur 00:33 Nov 16, 2008 |
| 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. | |
[ Return to Bugs & Features | Post Text | Post File ]
|
| |