Any advice regarding the following?

I'm using CMake and FLTK 1.1.7 to build cross-platform GUI apps on Linux and 
Windows.

We tell CMake to build our apps (on OS X) as MACOSX_BUNDLEs, because otherwise 
the menus don't work.  But this has a downside:  In order to supply 
command-line args to our apps, users have to invoke a version of the app that's 
buried deep in a directory tree.  I.e., "bin/foo.app/Contents/MacOS/foo arg1 
arg2 ...".

I thought maybe the way around this was to stop trying to build our apps as 
proper app bundles, and just build them as plain old X11 apps, even on OS X.  
So here was my (unsuccessful) approach:

1. When building FLTK, use ccmake to set "FLTK_APPLE_X11" to "ON".

2. In each of my apps' CMakeLists.txt file, stop specifing the "MACOSX_BUNDLE" 
option in my ADD_EXECUTABLE() statement.

So two questions:
First, is my approach the best one given what I'm trying to accomplish?

Second, when I tried to build FLTK with "FLTK_APPLE_X11" set to "ON", I get an 
error that Fl.cxx (line 1134) can't find a declaration for the function 
XUnionRectWithRegion.  Does anyone know why I'd be experiencing this?  I do 
have the X11 SDK installed, and I have several declarations of that function on 
my system.  One file containing it is:
   /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/X11/Xutil.h.

I could tweak FLTK's CMakeLists.txt files to find that file, but that sounds 
like I'm fighting FLTK's build system rather than use it properly.  Any 
suggestions?

Thanks,
Christian
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to