Hi. I'm developing a GLUT based model-train sim (iRunTrains) and FLTK looks
perfect for the improved GUI it needs. Unfortunately I cannot get FLTK to build
and was hoping for some pointers.
I'm on a Mac (OS X 10.6.8) with xCode v3.2.6 (64 bit). I've downloaded the
fltk-1.3.1-source.tar.gz bundled and have been following the terminal build
instructions.
First autoconf gave me the following errorâ¦
autom4te: m4sugar/m4sugar.m4: no such file or directory
⦠so I worked around that by creating a soft link:
sudo ln -s /Developer/usr/share/autoconf /usr/share
Then ./configure gave me an errorâ¦
configure: error: C compiler cannot create executables
See `config.log' for more details.
⦠so my solution to that was some new search path environment variables in
~/.profile:
export C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.6.sdk/usr/include
export CPLUS_INCLUDE_PATH=/Developer/SDKs/MacOSX10.6.sdk/usr/include
export LIBRARY_PATH=/Developer/SDKs/MacOSX10.6.sdk/usr/lib
With the above paths, ./configure ran to completion.
Now "make" is failing and I'm stuck. It builds jpeg and png, but then fails on
FL_cocoa.mm and the transcript for that is below. I'm guessing this is search
path related, but I don't know how/where to fix it. Any advice is appreciated.
Thanks in advance!
--
Regards,
Paul at iRunTrains dot com
-----------------------------------------------------------
paul$ make
=== making jpeg ===
=== making png ===
=== making src ===
Compiling Fl_cocoa.mm...
Fl_cocoa.mm:36:21: error: pthread.h: No such file or directory
In file included from ../FL/Fl.H:30,
from Fl_cocoa.mm:40:
./FL/fl_utf8.h:33:19: error: stdio.h: No such file or directory
./FL/fl_utf8.h:34:20: error: string.h: No such file or directory
./FL/fl_utf8.h:35:20: error: stdlib.h: No such file or directory
./FL/fl_utf8.h:58:21: error: wchar.h: No such file or directory
./FL/fl_utf8.h:59:24: error: sys/stat.h: No such file or directory
In file included from ../FL/x.H:43,
from Fl_cocoa.mm:41:
./FL/mac.H:49:53: error: ApplicationServices/ApplicationServices.h: No such
file or directory
In file included from Fl_cocoa.mm:50:
flstring.h:28:25: error: strings.h: No such file or directory
flstring.h:30:21: error: ctype.h: No such file or directory
Fl_cocoa.mm:51:20: error: unistd.h: No such file or directory
Fl_cocoa.mm:53:18: error: math.h: No such file or directory
Fl_cocoa.mm:55:24: error: Cocoa/Cocoa.h: No such file or directory
Fl_cocoa.mm:3439:19: error: dlfcn.h: No such file or directory
In file included from ../FL/Fl.H:30,
from Fl_cocoa.mm:40:
./FL/fl_utf8.h:207: error: expected constructor, destructor, or type conversion
before â*â token
In file included from ../FL/x.H:43,
from Fl_cocoa.mm:41:
./FL/mac.H:52: error: âCGContextRefâ does not name a type
./FL/mac.H:56: error: ISO C++ forbids declaration of âCGRectâ with no type
./FL/mac.H:56: error: expected â;â before â*â token
In file included from ../FL/x.H:43,
from Fl_cocoa.mm:41:
./FL/mac.H:72: error: âCGRectâ does not name a type
./FL/mac.H: In function âflCocoaRegion* XRectangleRegion(int, int, int,
int)â:
./FL/mac.H:74: error: âmallocâ was not declared in this scope
./FL/mac.H:76: error: âstruct flCocoaRegionâ has no member named ârectsâ
./FL/mac.H:76: error: âCGRectâ was not declared in this scope
./FL/mac.H:76: error: expected primary-expression before â)â token
./FL/mac.H:76: error: expected `;' before âmallocâ
./FL/mac.H:77: error: âstruct flCocoaRegionâ has no member named ârectsâ
./FL/mac.H:77: error: âfl_cgrectmake_cocoaâ was not declared in this scope
./FL/mac.H: In function âvoid XDestroyRegion(flCocoaRegion*)â:
./FL/mac.H:82: error: âstruct flCocoaRegionâ has no member named ârectsâ
./FL/mac.H:82: error: âfreeâ was not declared in this scope
./FL/mac.H: At global scope:
./FL/mac.H:95: error: âFl_Offscreenâ does not name a type
./FL/mac.H:109: error: âCGContextRefâ does not name a type
./FL/mac.H:113: error: âCGRectâ has not been declared
./FL/mac.H:121: error: âWindowRefâ does not name a type
./FL/mac.H:124: error: âCGImageRefâ does not name a type
./FL/mac.H:127: error: âCGContextRefâ does not name a type
./FL/mac.H:128: error: âCGContextRefâ does not name a type
./FL/mac.H:129: error: âCGContextRefâ does not name a type
./FL/mac.H:130: error: âCGContextRefâ does not name a type
./FL/mac.H:131: error: âCGContextRefâ does not name a type
./FL/mac.H:119: error: âNULLâ was not declared in this scope
./FL/mac.H:159: error: âCGImageRefâ does not name a type
./FL/mac.H:161: error: âCGContextRefâ does not name a type
./FL/mac.H:168: error: âFl_Bitmaskâ does not name a type
./FL/mac.H:169: error: âFl_Bitmaskâ does not name a type
./FL/mac.H:170: warning: âfl_delete_bitmaskâ initialized and declared
âexternâ
./FL/mac.H:170: error: variable or field âfl_delete_bitmaskâ declared void
./FL/mac.H:170: error: âFl_Bitmaskâ was not declared in this scope
./FL/mac.H:171: error: âFl_Offscreenâ does not name a type
./FL/mac.H:172: error: âFl_Offscreenâ has not been declared
./FL/mac.H:173: warning: âfl_delete_offscreenâ initialized and declared
âexternâ
./FL/mac.H:173: error: variable or field âfl_delete_offscreenâ declared void
./FL/mac.H:173: error: âFl_Offscreenâ was not declared in this scope
./FL/mac.H:174: warning: âfl_begin_offscreenâ initialized and declared
âexternâ
./FL/mac.H:174: error: variable or field âfl_begin_offscreenâ declared void
./FL/mac.H:174: error: âFl_Offscreenâ was not declared in this scope
In file included from ../FL/Fl_Plugin.H:25,
from ../FL/Fl_Device.H:29,
from ../FL/Fl_Paged_Device.H:26,
from ../FL/Fl_Printer.H:27,
from Fl_cocoa.mm:45:
./FL/Fl_Preferences.H:215: error: âFILEâ has not been declared
In file included from ../FL/Fl_Paged_Device.H:26,
from ../FL/Fl_Printer.H:27,
from Fl_cocoa.mm:45:
./FL/Fl_Device.H:216: error: âFl_Offscreenâ has not been declared
./FL/Fl_Device.H:373: error: âFl_Offscreenâ has not been declared
./FL/Fl_Device.H: In destructor âvirtual
Fl_Graphics_Driver::~Fl_Graphics_Driver()â:
./FL/Fl_Device.H:401: error: âfreeâ was not declared in this scope
./FL/Fl_Device.H: At global scope:
./FL/Fl_Device.H:436: error: âFl_Offscreenâ does not name a type
./FL/Fl_Device.H:438: error: âFl_Offscreenâ has not been declared
In file included from ../FL/Fl_Printer.H:27,
from Fl_cocoa.mm:45:
./FL/Fl_Paged_Device.H:121: error: âNULLâ was not declared in this scope
./FL/Fl_Paged_Device.H:121: error: âNULLâ was not declared in this scope
./FL/Fl_Paged_Device.H: In constructor âFl_Paged_Device::Fl_Paged_Device()â:
./FL/Fl_Paged_Device.H:109: error: âNULLâ was not declared in this scope
In file included from Fl_cocoa.mm:45:
./FL/Fl_Printer.H: At global scope:
./FL/Fl_Printer.H:57: error: âPMPrintSessionâ does not name a type
./FL/Fl_Printer.H:58: error: âPMPageFormatâ does not name a type
./FL/Fl_Printer.H:59: error: âPMPrintSettingsâ does not name a type
./FL/Fl_Printer.H:75: error: âNULLâ was not declared in this scope
./FL/Fl_Printer.H:75: error: âNULLâ was not declared in this scope
./FL/Fl_Printer.H:152: error: âNULLâ was not declared in this scope
./FL/Fl_Printer.H:152: error: âNULLâ was not declared in this scope
In file included from Fl_cocoa.mm:50:
flstring.h:62: error: âsize_tâ has not been declared
flstring.h:67: error: âsize_tâ has not been declared
flstring.h:77: error: âsize_tâ does not name a type
flstring.h:82: error: âsize_tâ does not name a type
Fl_cocoa.mm:86: error: âsize_tâ has not been declared
Fl_cocoa.mm:89: error: variable or field âcocoaMouseHandlerâ declared void
Fl_cocoa.mm:89: error: âNSEventâ was not declared in this scope
Fl_cocoa.mm:89: error: âtheEventâ was not declared in this scope
Fl_cocoa.mm:97: error: âCGContextRefâ does not name a type
Fl_cocoa.mm: In function âunsigned int mods_to_e_state(NSUInteger)â:
Fl_cocoa.mm:145: error: âNSCommandKeyMaskâ was not declared in this scope
Fl_cocoa.mm:146: error: âNSAlternateKeyMaskâ was not declared in this scope
Fl_cocoa.mm:147: error: âNSControlKeyMaskâ was not declared in this scope
Fl_cocoa.mm:148: error: âNSShiftKeyMaskâ was not declared in this scope
Fl_cocoa.mm:149: error: âNSAlphaShiftKeyMaskâ was not declared in this scope
Fl_cocoa.mm: At global scope:
Fl_cocoa.mm:185: error: âpthread_tâ does not name a type
Fl_cocoa.mm:188: error: âpthread_mutex_tâ does not name a type
Fl_cocoa.mm:189: error: âfd_setâ does not name a type
Fl_cocoa.mm:226: error: âfd_setâ does not name a type
Fl_cocoa.mm:231: error: âfd_setâ has not been declared
Fl_cocoa.mm:231: error: âfd_setâ has not been declared
Fl_cocoa.mm:231: error: âfd_setâ has not been declared
Fl_cocoa.mm:232: error: âfd_setâ has not been declared
Fl_cocoa.mm:232: error: âfd_setâ has not been declared
Fl_cocoa.mm:232: error: âfd_setâ has not been declared
Fl_cocoa.mm: In constructor âDataReady::DataReady()â:
Fl_cocoa.mm:199: error: âtidâ was not declared in this scope
Fl_cocoa.mm:201: error: â_datalockâ was not declared in this scope
Fl_cocoa.mm:201: error: âNULLâ was not declared in this scope
Fl_cocoa.mm:201: error: âpthread_mutex_initâ was not declared in this scope
Fl_cocoa.mm:202: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:202: error: âFD_ZEROâ was not declared in this scope
Fl_cocoa.mm: In destructor âDataReady::~DataReady()â:
Fl_cocoa.mm:209: error: âNULLâ was not declared in this scope
Fl_cocoa.mm:210: error: âfreeâ was not declared in this scope
Fl_cocoa.mm: In member function âvoid DataReady::DataLock()â:
Fl_cocoa.mm:219: error: â_datalockâ was not declared in this scope
Fl_cocoa.mm:219: error: âpthread_mutex_lockâ was not declared in this scope
Fl_cocoa.mm: In member function âvoid DataReady::DataUnlock()â:
Fl_cocoa.mm:220: error: â_datalockâ was not declared in this scope
Fl_cocoa.mm:220: error: âpthread_mutex_unlockâ was not declared in this
scope
Fl_cocoa.mm: In member function âint DataReady::IsThreadRunning()â:
Fl_cocoa.mm:223: error: âtidâ was not declared in this scope
Fl_cocoa.mm: In member function âvoid DataReady::AddFD(int, int, void
(*)(int, void*), void*)â:
Fl_cocoa.mm:249: error: âmallocâ was not declared in this scope
Fl_cocoa.mm:250: error: âreallocâ was not declared in this scope
Fl_cocoa.mm:259: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:259: error: âFD_SETâ was not declared in this scope
Fl_cocoa.mm:260: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:260: error: âFD_SETâ was not declared in this scope
Fl_cocoa.mm:261: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:261: error: âFD_SETâ was not declared in this scope
Fl_cocoa.mm: In member function âvoid DataReady::RemoveFD(int, int)â:
Fl_cocoa.mm:286: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:286: error: âFD_CLRâ was not declared in this scope
Fl_cocoa.mm:287: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:287: error: âFD_CLRâ was not declared in this scope
Fl_cocoa.mm:288: error: â_fdsetsâ was not declared in this scope
Fl_cocoa.mm:288: error: âFD_CLRâ was not declared in this scope
Fl_cocoa.mm: At global scope:
Fl_cocoa.mm:293: error: âint DataReady::CheckDataâ is not a static member
of âclass DataReadyâ
Fl_cocoa.mm:293: error: âfd_setâ was not declared in this scope
Fl_cocoa.mm:293: error: ârâ was not declared in this scope
Fl_cocoa.mm:293: error: âfd_setâ was not declared in this scope
Fl_cocoa.mm:293: error: âwâ was not declared in this scope
Fl_cocoa.mm:293: error: âfd_setâ was not declared in this scope
Fl_cocoa.mm:293: error: âxâ was not declared in this scope
Fl_cocoa.mm:293: error: initializer expression list treated as compound
expression
Fl_cocoa.mm:294: error: expected â,â or â;â before â{â token
Fl_cocoa.mm:86: warning: âvoid convert_crlf(char*, int)â declared
âstaticâ but never defined
Fl_cocoa.mm:87: warning: âvoid createAppleMenu()â declared âstaticâ but
never defined
Fl_cocoa.mm:88: warning: âflCocoaRegion* MacRegionMinusRect(flCocoaRegion*,
int, int, int, int)â declared âstaticâ but never defined
Fl_cocoa.mm:90: warning: âint calc_mac_os_version()â declared âstaticâ
but never defined
Fl_cocoa.mm:109: warning: âgot_eventsâ defined but not used
Fl_cocoa.mm:110: warning: âresize_from_systemâ defined but not used
Fl_cocoa.mm:111: warning: âmain_screen_heightâ defined but not used
Fl_cocoa.mm:137: warning: âmacKeyLookUpâ defined but not used
Fl_cocoa.mm:142: warning: âunsigned int mods_to_e_state(NSUInteger)â
defined but not used
make[1]: *** [Fl_cocoa.o] Error 1
make: *** [all] Error 1
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk