2001-12-04 06:03:17 +03:00
|
|
|
README.mac - 12/03/2001 - Building FLTK under MacOS and OS X
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
2001-12-06 03:17:47 +03:00
|
|
|
CONTENTS
|
|
|
|
--------
|
|
|
|
- Introduction
|
|
|
|
- gcc (Carbon) - how to build
|
|
|
|
- scripts
|
|
|
|
- known MacFLTK bugs
|
|
|
|
- test suite status
|
|
|
|
- other stuff
|
|
|
|
- FLTK 1.0.x for Mac
|
|
|
|
|
|
|
|
|
2001-12-04 06:03:17 +03:00
|
|
|
INTRODUCTION
|
|
|
|
------------
|
|
|
|
|
2001-12-18 14:00:09 +03:00
|
|
|
FLTK for Mac OS X is in beta stage. Expect rapid changes to the
|
|
|
|
source code and build environment.
|
2001-12-04 06:03:17 +03:00
|
|
|
|
|
|
|
FLTK currently supports the following development environment on the
|
|
|
|
Mac OS X platform:
|
|
|
|
|
|
|
|
- gcc (Carbon)
|
|
|
|
|
|
|
|
- (Metrowerks CodeWarrior - future releases)
|
|
|
|
|
|
|
|
- (Apple Project Builder - future releases)
|
|
|
|
|
|
|
|
- (MPW - future releases)
|
|
|
|
|
2001-12-06 03:17:47 +03:00
|
|
|
FLTK for Mac is carbonized, i.e. all applications should run on Mac
|
2001-12-04 06:03:17 +03:00
|
|
|
OS 8.1 and higher and OS X without changes.
|
|
|
|
|
|
|
|
|
2001-12-06 03:17:47 +03:00
|
|
|
gcc (Carbon) - how to build
|
2001-12-04 06:03:17 +03:00
|
|
|
--------------------------
|
|
|
|
|
|
|
|
Since the Max OS X command line build environment is based on BSD
|
|
|
|
Unix, the normal Unix build procedure as described in 'README'
|
2001-12-18 14:00:09 +03:00
|
|
|
applies.
|
2001-12-04 06:03:17 +03:00
|
|
|
|
2001-12-18 14:00:09 +03:00
|
|
|
A 'resource fork' will be attached to applications to make
|
|
|
|
them visible in the Finder. Thedefault resource file is ./FL/mac.r .
|
2001-12-04 06:03:17 +03:00
|
|
|
|
2001-12-18 14:00:09 +03:00
|
|
|
A possible way to add a resource fork is:
|
2001-12-04 06:03:17 +03:00
|
|
|
> Rez -t APPL -c Fltk ../FL/mac.r -o hello
|
|
|
|
|
|
|
|
|
|
|
|
scripts
|
|
|
|
-------
|
|
|
|
|
|
|
|
When using Finder applications on source files (i.e. FileMerge)
|
|
|
|
I found the following script very useful. It adds resource forks to
|
|
|
|
all text files.
|
|
|
|
|
|
|
|
#!/bin/tcsh
|
|
|
|
setenv SET_MAC_TYPE "SetFile -t TEXT -c ttxt "
|
|
|
|
setenv F1MAC_N 7
|
|
|
|
echo "Setting Mac File Types. Please wait..."
|
|
|
|
echo "[1/"$F1MAC_N"]"
|
|
|
|
find . -name '*.H' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "[2/"$F1MAC_N"]"
|
|
|
|
find . -name '*.h' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "[3/"$F1MAC_N"]"
|
|
|
|
find . -name '*.c' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "[4/"$F1MAC_N"]"
|
|
|
|
find . -name '*.cxx' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "[5/"$F1MAC_N"]"
|
|
|
|
find . -name '*.fl' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "[6/"$F1MAC_N"]"
|
|
|
|
find . -name 'make*' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "[7/"$F1MAC_N"]"
|
|
|
|
find . -name 'Make*' -exec $SET_MAC_TYPE {} \;
|
|
|
|
echo "done."
|
|
|
|
|
|
|
|
|
2001-12-06 03:17:47 +03:00
|
|
|
known MacFLTK bugs
|
|
|
|
------------------
|
|
|
|
|
2001-12-18 14:00:09 +03:00
|
|
|
- file handles not supported
|
|
|
|
- timing not fully supported
|
|
|
|
- line styles not fully supported
|
2001-12-06 03:17:47 +03:00
|
|
|
- cut, copy, paste
|
2001-12-18 14:00:09 +03:00
|
|
|
- sub-sub-subwindow not tested
|
2001-12-06 03:17:47 +03:00
|
|
|
- modal windows are not modal
|
2001-12-18 14:00:09 +03:00
|
|
|
- overlay not complete
|
|
|
|
- image transparency not implemented
|
|
|
|
- 'shiny' needs work (flush/aglFlush)
|
|
|
|
- threads not implemented
|
2001-12-06 03:17:47 +03:00
|
|
|
|
|
|
|
|
|
|
|
test suite status
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
OS X:
|
|
|
|
|
|
|
|
CubeView(++), adjuster(++), arc(++), ask(++), bitmap(++),
|
|
|
|
boxtype(++), browser(++), button(++), buttons(++), checkers(++),
|
2001-12-18 14:00:09 +03:00
|
|
|
clock(++), colbrowser(++), color_chooser(++), cube(++), cursor(++),
|
2001-12-06 03:17:47 +03:00
|
|
|
curve(++), demo(++), doublebuffer(++), editor(++), fast_slow(++),
|
2001-12-18 14:00:09 +03:00
|
|
|
file_chooser(++), fonts(++), forms(++), fractals(++), fullscreen(++),
|
2001-12-19 12:10:00 +03:00
|
|
|
gl_overlay(++), glpuzzle(++), hello(++), help(++), iconize(++), image(+),
|
2001-12-06 03:17:47 +03:00
|
|
|
inactive(++), input(++), keyboard(+), label(++), line_style(+),
|
|
|
|
mandelbrot(++), menubar(++), message(++), minimum(++), navigation(++),
|
2001-12-18 14:00:09 +03:00
|
|
|
output(++), overlay(-), pack(++), pixmap(++), pixmap_browser(++),
|
|
|
|
radio(++), resizebox(++), scroll(++), shape(++), shiny(-), subwindow(++),
|
2001-12-06 03:17:47 +03:00
|
|
|
symbols(++), tabs(++), tile(++), tiled_image(++), valuators(++),
|
|
|
|
fluid(++)
|
|
|
|
|
|
|
|
(o)=minor bugs, (+)=usable, (++)=running perfectly, (-)=major
|
|
|
|
bugs, (--)=crashes
|
|
|
|
|
|
|
|
|
2001-12-04 06:03:17 +03:00
|
|
|
other stuff
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The following creator ID's 'FLTK', 'Fltk', 'FLID' and 'Flid' are
|
2001-12-06 03:17:47 +03:00
|
|
|
officially registered with Apple Computers and can be used for
|
2001-12-04 06:03:17 +03:00
|
|
|
FLTK applications ('FLTK') and fluid files ('Flid').
|
|
|
|
|
2001-12-06 03:17:47 +03:00
|
|
|
All applications should be ended with exit(0); or they might
|
2001-12-04 06:03:17 +03:00
|
|
|
hang until killed.
|
|
|
|
|
2001-12-06 03:17:47 +03:00
|
|
|
Under OS X, all windows are doublebuffered anyway. Using Fl_Window
|
|
|
|
has the same effect as using Fl_Double_Window on OS X.
|
|
|
|
|
2001-12-04 06:03:17 +03:00
|
|
|
|
|
|
|
FLTK 1.0.x for Mac
|
|
|
|
------------------
|
|
|
|
|
|
|
|
FLTK 1.0.6 for Mac OS 8.x and OS 9.x is in beta stage and can be
|
|
|
|
downloaded from http://www.matthiasm.com/fltk/mac.shtml. The
|
|
|
|
archive contains build files for Metrowerks CodeWarrior 5 and 6.
|
|
|
|
|
|
|
|
FLTK 1.0.6 for Mac is not supported by the FLTK team and will not
|
|
|
|
be further developed by the author. Instead it will be replaced
|
|
|
|
by FLTK 1.1.x for Mac in the near future.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|