Thanks, I add the Makefile to the CVS sources. Did you have success with using the widget opcodes ? Those often tend to be problematic when used from a GUI frontend, so reports on how well they work are interesting (note that you need to disable performing in a separate thread). The widgets and graphs are usable on Linux and Windows, but the FLTK library should be compiled as a shared, and not a static library. On Sunday 30 April 2006 04:13, David Akbari wrote: > Thank you to Michael, Istvan, and Graham. > > I have successfully compiled csound5gui and tested it on Mac OS X. > http://www.csounds.com/akbari/csound5gui_test.png > > Here's the Makefile I used - perhaps this could be added to the CVS > tree as "Makefile-osx" ? This is made assuming that the csound5gui > source tree should nominally live two levels down from the csound5 > source tree, as indicated by Istvan and the CFLAGS parameter in the > Makefile. > > ## don't add this line ## > > PROGRAM = csound5gui > CXX = g++ > CXXFLAGS = -Wall -W -ansi -pedantic -g -O -I. -I../../H > -I../../interfaces > LIBS = -L/usr/local/lib -lfltk -lpthread -framework Carbon -framework > ApplicationServices -lsupc++ -L../.. -L/usr/X11R6/lib -lX11 > ../../libcsound.a -lstdc++ -lsndfile -lpthread > > # > ------------------------------------------------------------------------ > ----- > > include Makefile.base > > ## EOF ## > > Note that the -framework flags and the -lsupc++ were indicated by the > fltk-config program as the proper flags to link with on OS X. > > A few notes about what Michael and Istvan reported about the FL::lock > and FL::unlock function - > > I downloaded FLTK 1.1.7 (stable release) from fltk.org and ./configured > it however for whatever reason, it did **NOT** add the required > -lstdc++ in the makeinclude !! Thus it was throwing undefined symbol > errors until I tossed the symbols in Google and realized they belong to > -lstdc++. > > * OS X users have to manually edit the makeinclude file for FLTK 1.1.7 > and add -lstdc++ to get FLTK 1.1.7 to compile properly with > --enable-threads and --enable-shared. Previously I just compiled it > without thread support as a shared library because I guess it didn't > have symbols referenced in libstdc++. > > Anyway, nice work and thanks for the advice! > > > -David >