STR #2092

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#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.
 
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.