Page 1 of 2

Trying to use FLTK on Mac...

Posted: Mon Jul 20, 2020 5:13 am
by Johnnywz00
Hi! A rookie here just trying to get set up to start dabbling. I’ve downloaded CodeLite, installed command line developer tools (without XCode), successfully ran a C++ Hello World using just the Stdlib header. I’d like to start piddling with a GUI from the get-go, so I downloaded FLTK, and I think I successfully built it... at least I was able to run the demo apps by clicking on them in the Finder. However, I tried to copy-paste FLTK’s Hello World sample code into a CodeLite workspace, but when I try to run it from the IDE it says Failed to locate gdb! At ‘gdb’. In a dialog. The shell says
Make[1]: Nothing to be done for ‘all’.
Can anyone tell me what I need to do to include FLTK headers in my source code and have everything work normally?

Re: Trying to use FLTK on Mac...

Posted: Mon Jul 20, 2020 9:33 am
by eranif
On macOS you should be using lldb and not gdb.
Change the debugger to lldb:
project settings -> general page -> debugger

Also, "think I have successfully built it" is vague :)
Try posting here the build output

Re: Trying to use FLTK on Mac...

Posted: Mon Jul 20, 2020 9:21 pm
by Johnnywz00
Thanks, I got rid of the gdb dialog box.

I apologize if this is somewhere obvious in the docs or wikis, but...
How do I get FLTK to work with CodeLite? What kind of 'New Project' should I select when setting up?
If I use

Code: Select all

#include <FL/Fl.H>
how do I get CodeLite to make use of it? I notice that when you click a new project with wxWidgets, your project has an 'include' folder as well as a 'src' folder. Do I need to manually set up something like that for FLTK? Or is wxWidgets something equivalent that is more easy to use in conjunction with CodeLite?
When I have a single source file containing:

Code: Select all

#include <iostream>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>

int main(int argc, char **argv) {
  std::cout << "Hello World" << std::endl;
  	// pasted in example from FTLK documentation...
  Fl_Window *window = new Fl_Window(340,180);
  Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
  box->box(FL_UP_BOX);
  box->labelfont(FL_BOLD+FL_ITALIC);
  box->labelsize(36);
  box->labeltype(FL_SHADOW_LABEL);
  window->end();
  window->show(argc, argv);
  return Fl::run(); 
}
and attempted to fill in the project settings->Linker->Libraries Search Path with 'johnrebekah/Programming/fltk-1.3.5', this is my build output:

Code: Select all

/bin/sh -c 'make -j4 -e -f  Makefile'
----------Building project:[ Cons - Debug ]----------
/usr/bin/clang++ -o ./Debug/Cons @"Cons.txt" -L. -Ljohnrebekah/Programming/fltk-1.3.5
ld: warning: directory not found for option '-Ljohnrebekah/Programming/fltk-1.3.5'
Undefined symbols for architecture x86_64:
  "fl_define_FL_SHADOW_LABEL()", referenced from:
      _main in main.cpp.o
  "Fl::run()", referenced from:
      _main in main.cpp.o
  "Fl_Box::Fl_Box(int, int, int, int, char const*)", referenced from:
      _main in main.cpp.o
  "Fl_Group::end()", referenced from:
      _main in main.cpp.o
  "Fl_Window::show(int, char**)", referenced from:
      _main in main.cpp.o
  "Fl_Window::Fl_Window(int, int, char const*)", referenced from:
      _main in main.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Debug/Cons] Error 1
make: *** [All] Error 2
====1 errors, 0 warnings====

Re: Trying to use FLTK on Mac...

Posted: Mon Jul 20, 2020 9:29 pm
by Johnnywz00
Sorry, my CodeLite version is 12.0.3 (not self-compiled)
Apple LLVM version 10.0.1 (clang-1001.0.46.4) my compiler, I think?
Mac OSX 10.14.2

Re: Trying to use FLTK on Mac...

Posted: Tue Jul 21, 2020 3:30 am
by Johnnywz00
Still just as stuck... a different build error output when I changed the library path to Users/johnrebekah/programming/fltk-1.3.5 and typed 'fltk' in the Libraries field...

Code: Select all

/bin/sh -c 'make -j4 -e -f  Makefile'
----------Building project:[ Cons - Debug ]----------
/usr/bin/clang++ -o ./Debug/Cons @"Cons.txt" -L. -LUsers/johnrebekah/Programming/fltk-1.3.5  -lfltk
ld: warning: directory not found for option '-LUsers/johnrebekah/Programming/fltk-1.3.5'
Undefined symbols for architecture x86_64:
  "_CFAbsoluteTimeGetCurrent", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
      Fl::repeat_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
  "_CFAttributedStringCreate", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CFDataCreate", referenced from:
      Fl::copy(char const*, int, int, char const*) in libfltk.a(Fl_cocoa.o)
      Fl_X::dnd(int) in libfltk.a(Fl_cocoa.o)
  "_CFDictionaryCreateMutable", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_CFDictionarySetValue", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CFGetRetainCount", referenced from:
      bmProviderRelease(void*, void const*, unsigned long) in libfltk.a(Fl_Double_Window.o)
      fl_delete_offscreen(CGContext*) in libfltk.a(Fl_Double_Window.o)
  "_CFNumberCreate", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_CFRelease", referenced from:
      delete_timer(MacTimeout&) in libfltk.a(Fl_cocoa.o)
      -[FLAppDelegate applicationDidUpdate:] in libfltk.a(Fl_cocoa.o)
      -[FLView performDragOperation:] in libfltk.a(Fl_cocoa.o)
      q_set_window_title(NSWindow*, char const*, char const*) in libfltk.a(Fl_cocoa.o)
      Fl_Copy_Surface::complete_copy_pdf_and_tiff() in libfltk.a(Fl_cocoa.o)
      Fl::copy(char const*, int, int, char const*) in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      ...
  "_CFRetain", referenced from:
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
  "_CFRunLoopAddTimer", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
  "_CFRunLoopGetCurrent", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
      delete_timer(MacTimeout&) in libfltk.a(Fl_cocoa.o)
  "_CFRunLoopRemoveTimer", referenced from:
      delete_timer(MacTimeout&) in libfltk.a(Fl_cocoa.o)
  "_CFRunLoopTimerCreate", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
  "_CFRunLoopTimerGetNextFireDate", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
  "_CFRunLoopTimerSetNextFireDate", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
      Fl::repeat_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
  "_CFStringCreateByCombiningStrings", referenced from:
      -[FLView performDragOperation:] in libfltk.a(Fl_cocoa.o)
  "_CFStringCreateMutableWithExternalCharactersNoCopy", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CFStringCreateWithBytes", referenced from:
      Fl::paste(Fl_Widget&, int, char const*) in libfltk.a(Fl_cocoa.o)
  "_CFStringCreateWithCString", referenced from:
      q_set_window_title(NSWindow*, char const*, char const*) in libfltk.a(Fl_cocoa.o)
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_CFStringCreateWithCharacters", referenced from:
      q_set_window_title(NSWindow*, char const*, char const*) in libfltk.a(Fl_cocoa.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
  "_CFStringCreateWithCharactersNoCopy", referenced from:
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
  "_CFStringGetCString", referenced from:
      -[FLView performDragOperation:] in libfltk.a(Fl_cocoa.o)
  "_CFStringGetCharacters", referenced from:
      cocoaKeyboardHandler(NSEvent*) in libfltk.a(Fl_cocoa.o)
  "_CFStringGetLength", referenced from:
      -[FLView performDragOperation:] in libfltk.a(Fl_cocoa.o)
  "_CFStringGetMaximumSizeForEncoding", referenced from:
      -[FLView performDragOperation:] in libfltk.a(Fl_cocoa.o)
  "_CFUUIDCreate", referenced from:
      Fl_Preferences::newUUID() in libfltk.a(Fl_Preferences.o)
  "_CFUUIDGetUUIDBytes", referenced from:
      Fl_Preferences::newUUID() in libfltk.a(Fl_Preferences.o)
  "_CGBitmapContextCreate", referenced from:
      -[FLViewLayer displayLayer:] in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha(int, int) in libfltk.a(Fl_Double_Window.o)
      fl_create_offscreen(int, int) in libfltk.a(Fl_Double_Window.o)
  "_CGBitmapContextCreateImage", referenced from:
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      -[FLViewLayer displayLayer:] in libfltk.a(Fl_cocoa.o)
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
  "_CGBitmapContextGetAlphaInfo", referenced from:
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
  "_CGBitmapContextGetBitsPerPixel", referenced from:
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
      fl_read_image(unsigned char*, int, int, int, int, int) in libfltk.a(fl_read_image.o)
  "_CGBitmapContextGetBytesPerRow", referenced from:
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
      fl_read_image(unsigned char*, int, int, int, int, int) in libfltk.a(fl_read_image.o)
  "_CGBitmapContextGetData", referenced from:
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      fl_delete_offscreen(CGContext*) in libfltk.a(Fl_Double_Window.o)
      fl_read_image(unsigned char*, int, int, int, int, int) in libfltk.a(fl_read_image.o)
  "_CGBitmapContextGetHeight", referenced from:
      Fl_X::q_fill_context() in libfltk.a(Fl_cocoa.o)
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      fl_read_image(unsigned char*, int, int, int, int, int) in libfltk.a(fl_read_image.o)
  "_CGBitmapContextGetWidth", referenced from:
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      fl_read_image(unsigned char*, int, int, int, int, int) in libfltk.a(fl_read_image.o)
  "_CGColorCreate", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CGColorSpaceCreateDeviceGray", referenced from:
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*) in libfltk.a(fl_draw_image.o)
  "_CGColorSpaceCreateDeviceRGB", referenced from:
      -[FLViewLayer displayLayer:] in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_X::CGImage_from_window_rect(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha(int, int) in libfltk.a(Fl_Double_Window.o)
      fl_create_offscreen(int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      ...
  "_CGColorSpaceCreateWithName", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CGColorSpaceRelease", referenced from:
      -[FLViewLayer displayLayer:] in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_X::CGImage_from_window_rect(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha(int, int) in libfltk.a(Fl_Double_Window.o)
      fl_create_offscreen(int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      ...
  "_CGContextAddArc", referenced from:
      Fl_Graphics_Driver::circle(double, double, double) in libfltk.a(fl_vertex.o)
      Fl_Graphics_Driver::arc(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
      Fl_Graphics_Driver::pie(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
  "_CGContextAddArcToPoint", referenced from:
      Fl_X::clip_to_rounded_corners(CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGContextAddLineToPoint", referenced from:
      Fl_X::clip_to_rounded_corners(CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::xyline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      ...
  "_CGContextClearRect", referenced from:
      -[FLViewLayer displayLayer:] in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGContextClip", referenced from:
      Fl_X::clip_to_rounded_corners(CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGContextClipToMask", referenced from:
      Fl_Window::draw() in libfltk.a(Fl_Window_shape.o)
  "_CGContextClipToRect", referenced from:
      Fl_Window::make_current() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_begin_image(CGRect&, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::draw_scaled(Fl_Image*, int, int, int, int) in libfltk.a(Fl_Image.o)
  "_CGContextClipToRects", referenced from:
      Fl_Graphics_Driver::restore_clip() in libfltk.a(fl_rect.o)
  "_CGContextClosePath", referenced from:
      Fl_Graphics_Driver::loop(int, int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::loop(int, int, int, int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::polygon(int, int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::polygon(int, int, int, int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::end_polygon() in libfltk.a(fl_vertex.o)
      Fl_Graphics_Driver::end_complex_polygon() in libfltk.a(fl_vertex.o)
      Fl_Graphics_Driver::pie(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
      ...
  "_CGContextDrawImage", referenced from:
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*) in libfltk.a(fl_draw_image.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_Bitmap*, int, int, int, int, int, int) in libfltk.a(Fl_Bitmap.o)
      Fl_System_Printer::print_window_part(Fl_Window*, int, int, int, int, int, int) in libfltk.a(Fl_Quartz_Printer.o)
  "_CGContextEndPage", referenced from:
      Fl_Copy_Surface::complete_copy_pdf_and_tiff() in libfltk.a(Fl_cocoa.o)
  "_CGContextFillPath", referenced from:
      Fl_Graphics_Driver::polygon(int, int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::polygon(int, int, int, int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::end_polygon() in libfltk.a(fl_vertex.o)
      Fl_Graphics_Driver::end_complex_polygon() in libfltk.a(fl_vertex.o)
      Fl_Graphics_Driver::circle(double, double, double) in libfltk.a(fl_vertex.o)
      Fl_Graphics_Driver::pie(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
  "_CGContextFillRect", referenced from:
      Fl_X::draw_layer_to_context(void*, CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::rectf(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int) in libfltk.a(fl_rect.o)
      ...
  "_CGContextFlush", referenced from:
      Fl::flush() in libfltk.a(Fl.o)
      Fl_X::q_release_context(Fl_X*) in libfltk.a(Fl_cocoa.o)
      fl_end_offscreen() in libfltk.a(Fl_Double_Window.o)
      Fl_System_Printer::end_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_CGContextGetCTM", referenced from:
      Fl_X::q_fill_context() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_begin_image(CGRect&, int, int, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGContextMoveToPoint", referenced from:
      Fl_X::clip_to_rounded_corners(CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::xyline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      ...
  "_CGContextRelease", referenced from:
      -[FLViewLayer viewFrameDidChange] in libfltk.a(Fl_cocoa.o)
      -[FLViewLayer dealloc] in libfltk.a(Fl_cocoa.o)
      Fl_Copy_Surface::complete_copy_pdf_and_tiff() in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      fl_delete_offscreen(CGContext*) in libfltk.a(Fl_Double_Window.o)
  "_CGContextRestoreGState", referenced from:
      Fl_X::q_release_context(Fl_X*) in libfltk.a(Fl_cocoa.o)
      Fl_X::q_clear_clipping() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_end_image() in libfltk.a(Fl_cocoa.o)
      Fl_Copy_Surface::complete_copy_pdf_and_tiff() in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_X::draw_layer_to_context(void*, CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Window::draw() in libfltk.a(Fl_Window_shape.o)
      ...
  "_CGContextRotateCTM", referenced from:
      Fl_Quartz_Graphics_Driver::draw(int, char const*, int, int, int) in libfltk.a(fl_font.o)
      Fl_System_Printer::origin(int, int) in libfltk.a(Fl_Quartz_Printer.o)
      Fl_System_Printer::scale(float, float) in libfltk.a(Fl_Quartz_Printer.o)
      Fl_System_Printer::rotate(float) in libfltk.a(Fl_Quartz_Printer.o)
  "_CGContextSaveGState", referenced from:
      Fl_Window::make_current() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_clear_clipping() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_begin_image(CGRect&, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_X::draw_layer_to_context(void*, CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Window::draw() in libfltk.a(Fl_Window_shape.o)
      fl_begin_offscreen(CGContext*) in libfltk.a(Fl_Double_Window.o)
      ...
  "_CGContextScaleCTM", referenced from:
      Fl_Window::make_current() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_fill_context() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_begin_image(CGRect&, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::draw_scaled(Fl_Image*, int, int, int, int) in libfltk.a(Fl_Image.o)
      Fl_Graphics_Driver::arc(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
      Fl_Graphics_Driver::pie(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
      ...
  "_CGContextSetLineCap", referenced from:
      fl_quartz_restore_line_style_() in libfltk.a(fl_line_style.o)
  "_CGContextSetLineDash", referenced from:
      fl_quartz_restore_line_style_() in libfltk.a(fl_line_style.o)
  "_CGContextSetLineJoin", referenced from:
      fl_quartz_restore_line_style_() in libfltk.a(fl_line_style.o)
  "_CGContextSetLineWidth", referenced from:
      fl_quartz_restore_line_style_() in libfltk.a(fl_line_style.o)
  "_CGContextSetRGBFillColor", referenced from:
      Fl_Quartz_Graphics_Driver::color(unsigned int) in libfltk.a(fl_color.o)
      Fl_Quartz_Graphics_Driver::color(unsigned char, unsigned char, unsigned char) in libfltk.a(fl_color.o)
      Fl_X::dnd(int) in libfltk.a(Fl_cocoa.o)
      Fl_X::draw_layer_to_context(void*, CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGContextSetRGBStrokeColor", referenced from:
      Fl_Quartz_Graphics_Driver::color(unsigned int) in libfltk.a(fl_color.o)
      Fl_Quartz_Graphics_Driver::color(unsigned char, unsigned char, unsigned char) in libfltk.a(fl_color.o)
      Fl_X::dnd(int) in libfltk.a(Fl_cocoa.o)
  "_CGContextSetShouldAntialias", referenced from:
      Fl_Window::make_current() in libfltk.a(Fl_cocoa.o)
      Fl_X::draw_layer_to_context(void*, CGContext*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::rect(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int) in libfltk.a(fl_rect.o)
      ...
  "_CGContextSetTextMatrix", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CGContextSetTextPosition", referenced from:
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CGContextStrokePath", referenced from:
      Fl_Graphics_Driver::xyline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::xyline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::yxline(int, int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::line(int, int, int, int) in libfltk.a(fl_rect.o)
      ...
  "_CGContextStrokeRect", referenced from:
      Fl_Graphics_Driver::rect(int, int, int, int) in libfltk.a(fl_rect.o)
  "_CGContextTranslateCTM", referenced from:
      Fl_Window::make_current() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_fill_context() in libfltk.a(Fl_cocoa.o)
      Fl_X::q_begin_image(CGRect&, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::draw(int, char const*, int, int, int) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::draw_scaled(Fl_Image*, int, int, int, int) in libfltk.a(Fl_Image.o)
      Fl_Graphics_Driver::arc(int, int, int, int, double, double) in libfltk.a(fl_arci.o)
      ...
  "_CGDataProviderCreateWithData", referenced from:
      Fl_X::CGImage_from_window_rect(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Window::shape_bitmap_(Fl_Image*) in libfltk.a(Fl_Window_shape.o)
      Fl_Window::shape_alpha_(Fl_Image*, int) in libfltk.a(Fl_Window_shape.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*) in libfltk.a(fl_draw_image.o)
      fl_create_bitmask(int, int, unsigned char const*) in libfltk.a(Fl_Bitmap.o)
      ...
  "_CGDataProviderRelease", referenced from:
      Fl_X::CGImage_from_window_rect(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*) in libfltk.a(fl_draw_image.o)
      fl_create_bitmask(int, int, unsigned char const*) in libfltk.a(Fl_Bitmap.o)
  "_CGDisplayBounds", referenced from:
      screen_init() in libfltk.a(screen_xywh.o)
  "_CGDisplayScreenSize", referenced from:
      screen_init() in libfltk.a(screen_xywh.o)
  "_CGEventSourceKeyState", referenced from:
      Fl::get_key(int) in libfltk.a(Fl_get_key.o)
  "_CGGetActiveDisplayList", referenced from:
      screen_init() in libfltk.a(screen_xywh.o)
  "_CGImageCreate", referenced from:
      Fl_X::CGImage_from_window_rect(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
      innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*) in libfltk.a(fl_draw_image.o)
  "_CGImageCreateWithImageInRect", referenced from:
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGImageGetShouldInterpolate", referenced from:
      Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image*, int, int, int, int, int, int) in libfltk.a(Fl_Image.o)
  "_CGImageMaskCreate", referenced from:
      Fl_Window::shape_bitmap_(Fl_Image*) in libfltk.a(Fl_Window_shape.o)
      Fl_Window::shape_alpha_(Fl_Image*, int) in libfltk.a(Fl_Window_shape.o)
      fl_create_bitmask(int, int, unsigned char const*) in libfltk.a(Fl_Bitmap.o)
  "_CGImageRelease", referenced from:
      Fl_Window::~Fl_Window() in libfltk.a(Fl_Window.o)
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      -[FLViewLayer displayLayer:] in libfltk.a(Fl_cocoa.o)
      Fl_Quartz_Graphics_Driver::copy_offscreen(int, int, int, int, CGContext*, int, int) in libfltk.a(Fl_Double_Window.o)
      Fl_RGB_Image::~Fl_RGB_Image() in libfltk.a(Fl_Image.o)
      Fl_RGB_Image::uncache() in libfltk.a(Fl_Image.o)
      innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*) in libfltk.a(fl_draw_image.o)
      ...
  "_CGImageRetain", referenced from:
      Fl_X::CGImage_from_window_rect(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGRectContainsRect", referenced from:
      Fl_Widget::damage(unsigned char, int, int, int, int) in libfltk.a(Fl.o)
  "_CGRectEqualToRect", referenced from:
      -[FLWindow checkSubwindowFrame] in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::clip_box(int, int, int, int, int&, int&, int&, int&) in libfltk.a(fl_rect.o)
  "_CGRectIntersection", referenced from:
      -[FLWindow checkSubwindowFrame] in libfltk.a(Fl_cocoa.o)
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_X::intersect_region_and_rect(flCocoaRegion*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::not_clipped(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::clip_box(int, int, int, int, int&, int&, int&, int&) in libfltk.a(fl_rect.o)
  "_CGRectIsEmpty", referenced from:
      Fl_X::intersect_region_and_rect(flCocoaRegion*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_Graphics_Driver::not_clipped(int, int, int, int) in libfltk.a(fl_rect.o)
      Fl_Graphics_Driver::clip_box(int, int, int, int, int&, int&, int&, int&) in libfltk.a(fl_rect.o)
  "_CGRectIsNull", referenced from:
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
  "_CGRectOffset", referenced from:
      Fl_Window::make_current() in libfltk.a(Fl_cocoa.o)
  "_CGRectUnion", referenced from:
      Fl_Graphics_Driver::clip_box(int, int, int, int, int&, int&, int&, int&) in libfltk.a(fl_rect.o)
  "_CGShieldingWindowLevel", referenced from:
      modal_window_level() in libfltk.a(Fl_cocoa.o)
      non_modal_window_level() in libfltk.a(Fl_cocoa.o)
  "_CTFontCreateForString", referenced from:
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
  "_CTFontCreateWithName", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_CTFontGetAdvancesForGlyphs", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
  "_CTFontGetAscent", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_CTFontGetDescent", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_CTFontGetGlyphsForCharacters", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
  "_CTLineCreateWithAttributedString", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CTLineDraw", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_CTLineGetImageBounds", referenced from:
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
  "_CTLineGetOffsetForStringIndex", referenced from:
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
  "_CTLineGetTypographicBounds", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_NSApp", referenced from:
      fl_open_display() in libfltk.a(Fl_cocoa.o)
      DataReady::DataReadyThread(void*) in libfltk.a(Fl_cocoa.o)
      fl_ready() in libfltk.a(Fl_cocoa.o)
      -[FLWindow waitForExpose] in libfltk.a(Fl_cocoa.o)
      fl_wait(double) in libfltk.a(Fl_cocoa.o)
      drain_dropped_files_list() in libfltk.a(Fl_cocoa.o)
      -[FLTextView insertText:] in libfltk.a(Fl_cocoa.o)
      ...
  "_NSBeep", referenced from:
      fl_beep(int) in libfltk.a(fl_ask.o)
  "_NSDefaultRunLoopMode", referenced from:
      fl_open_display() in libfltk.a(Fl_cocoa.o)
      fl_ready() in libfltk.a(Fl_cocoa.o)
      fl_wait(double) in libfltk.a(Fl_cocoa.o)
      Fl_Window::wait_for_expose() in libfltk.a(Fl_cocoa.o)
  "_NSDeviceRGBColorSpace", referenced from:
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
      Fl_X::set_cursor(Fl_RGB_Image const*, int, int) in libfltk.a(Fl_cocoa.o)
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
  "_NSDeviceWhiteColorSpace", referenced from:
      Fl_X::set_cursor(Fl_RGB_Image const*, int, int) in libfltk.a(Fl_cocoa.o)
  "_NSDisableScreenUpdates", referenced from:
      fl_mac_flush_and_wait(double) in libfltk.a(Fl_cocoa.o)
  "_NSDragPboard", referenced from:
      Fl_X::dnd(int) in libfltk.a(Fl_cocoa.o)
  "_NSEnableScreenUpdates", referenced from:
      fl_mac_flush_and_wait(double) in libfltk.a(Fl_cocoa.o)
  "_NSEqualRects", referenced from:
      -[FLWindow setSubwindowFrame] in libfltk.a(Fl_cocoa.o)
  "_NSFilenamesPboardType", referenced from:
      -[FLView performDragOperation:] in libfltk.a(Fl_cocoa.o)
      Fl_X::make(Fl_Window*) in libfltk.a(Fl_cocoa.o)
  "_NSFontAttributeName", referenced from:
      Fl_Paged_Device::print_window(Fl_Window*, int, int) in libfltk.a(Fl_cocoa.o)
  "_NSGraphicsContextDestinationAttributeName", referenced from:
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
  "_NSPDFPboardType", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSPICTPboardType", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSPasteboardTypePDF", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSPasteboardTypeString", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSPasteboardTypeTIFF", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSRectFill", referenced from:
      rect_to_NSBitmapImageRep(Fl_Window*, int, int, int, int) in libfltk.a(Fl_cocoa.o)
  "_NSStringPboardType", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSTIFFPboardType", referenced from:
      __GLOBAL__sub_I_Fl_cocoa.mm in libfltk.a(Fl_cocoa.o)
  "_NSWindowDidMoveNotification", referenced from:
      -[FLAppDelegate applicationDidChangeScreenParameters:] in libfltk.a(Fl_cocoa.o)
  "_NSWindowWillCloseNotification", referenced from:
      fl_open_display() in libfltk.a(Fl_cocoa.o)
  "_NSZeroPoint", referenced from:
      Fl_X::make(Fl_Window*) in libfltk.a(Fl_cocoa.o)
  "_NSZeroSize", referenced from:
      CGBitmapContextToNSImage(CGContext*) in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSApplication", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSArray", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSAttributedString", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSBitmapImageRep", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSBundle", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSColor", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSCursor", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSDate", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSDictionary", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSEvent", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSFont", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSGraphicsContext", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSImage", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSMenu", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSMenuItem", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSMutableArray", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSNotificationCenter", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSObject", referenced from:
      _OBJC_CLASS_$_FLWindowDelegate in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLAppDelegate in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLApplication in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLTextInputContext in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLaboutItemTarget in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSOpenGLContext", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSOpenGLPixelFormat", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSPasteboard", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSPrintInfo", referenced from:
      objc-class-ref in libfltk.a(Fl_Quartz_Printer.o)
  "_OBJC_CLASS_$_NSPrintPanel", referenced from:
      objc-class-ref in libfltk.a(Fl_Quartz_Printer.o)
  "_OBJC_CLASS_$_NSProcessInfo", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSScreen", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSString", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSTextView", referenced from:
      _OBJC_CLASS_$_FLTextView in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSThread", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSView", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLView in libfltk.a(Fl_cocoa.o)
  "_OBJC_CLASS_$_NSWindow", referenced from:
      objc-class-ref in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLWindow in libfltk.a(Fl_cocoa.o)
  "_OBJC_METACLASS_$_NSObject", referenced from:
      _OBJC_METACLASS_$_FLWindow in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLTextView in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLWindowDelegate in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLWindowDelegateBefore10_6 in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLWindowDelegateBefore10_5 in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLAppDelegate in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLAppDelegateBefore10_5 in libfltk.a(Fl_cocoa.o)
      ...
  "_OBJC_METACLASS_$_NSTextView", referenced from:
      _OBJC_METACLASS_$_FLTextView in libfltk.a(Fl_cocoa.o)
  "_OBJC_METACLASS_$_NSView", referenced from:
      _OBJC_METACLASS_$_FLView in libfltk.a(Fl_cocoa.o)
  "_OBJC_METACLASS_$_NSWindow", referenced from:
      _OBJC_METACLASS_$_FLWindow in libfltk.a(Fl_cocoa.o)
  "_PMGetAdjustedPageRect", referenced from:
      Fl_System_Printer::printable_rect(int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
      Fl_System_Printer::start_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMGetFirstPage", referenced from:
      Fl_System_Printer::start_job(int, int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
  "_PMGetLastPage", referenced from:
      Fl_System_Printer::start_job(int, int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
  "_PMGetOrientation", referenced from:
      Fl_System_Printer::margins(int*, int*, int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
      Fl_System_Printer::start_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMGetPageFormatPaper", referenced from:
      Fl_System_Printer::margins(int*, int*, int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
      Fl_System_Printer::start_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMPaperGetMargins", referenced from:
      Fl_System_Printer::margins(int*, int*, int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
      Fl_System_Printer::start_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMSessionBeginCGDocumentNoDialog", referenced from:
      Fl_System_Printer::start_job(int, int*, int*) in libfltk.a(Fl_Quartz_Printer.o)
  "_PMSessionBeginPageNoDialog", referenced from:
      Fl_System_Printer::start_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMSessionEndDocumentNoDialog", referenced from:
      Fl_System_Printer::end_job() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMSessionEndPageNoDialog", referenced from:
      Fl_System_Printer::end_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMSessionError", referenced from:
      Fl_System_Printer::end_job() in libfltk.a(Fl_Quartz_Printer.o)
  "_PMSessionGetCGGraphicsContext", referenced from:
      Fl_System_Printer::start_page() in libfltk.a(Fl_Quartz_Printer.o)
  "_TransformProcessType", referenced from:
      fl_open_display() in libfltk.a(Fl_cocoa.o)
  "___CFConstantStringClassReference", referenced from:
      CFString in libfltk.a(Fl_cocoa.o)
      CFString in libfltk.a(Fl_cocoa.o)
      CFString in libfltk.a(Fl_cocoa.o)
      CFString in libfltk.a(Fl_cocoa.o)
      CFString in libfltk.a(Fl_cocoa.o)
      CFString in libfltk.a(Fl_cocoa.o)
      CFString in libfltk.a(Fl_cocoa.o)
      ...
  "__objc_empty_cache", referenced from:
      _OBJC_CLASS_$_FLWindow in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLWindow in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLTextView in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLTextView in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLWindowDelegate in libfltk.a(Fl_cocoa.o)
      _OBJC_METACLASS_$_FLWindowDelegateBefore10_6 in libfltk.a(Fl_cocoa.o)
      _OBJC_CLASS_$_FLWindowDelegate in libfltk.a(Fl_cocoa.o)
      ...
  "_kCFAllocatorDefault", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
      Fl::copy(char const*, int, int, char const*) in libfltk.a(Fl_cocoa.o)
      Fl_X::dnd(int) in libfltk.a(Fl_cocoa.o)
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
      ...
  "_kCFAllocatorNull", referenced from:
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_kCFRunLoopDefaultMode", referenced from:
      Fl::add_timeout(double, void (*)(void*), void*) in libfltk.a(Fl_cocoa.o)
      delete_timer(MacTimeout&) in libfltk.a(Fl_cocoa.o)
  "_kCFTypeDictionaryKeyCallBacks", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_kCFTypeDictionaryValueCallBacks", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_kCGColorSpaceGenericRGB", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_kCTFontAttributeName", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
      fl_mac_width(unsigned short const*, int, Fl_Font_Descriptor*) in libfltk.a(fl_font.o)
      Fl_Quartz_Graphics_Driver::text_extents(char const*, int, int&, int&, int&, int&) in libfltk.a(fl_font.o)
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_kCTForegroundColorAttributeName", referenced from:
      fl_mac_draw(char const*, int, float, float, Fl_Graphics_Driver*) in libfltk.a(fl_font.o)
  "_kCTKernAttributeName", referenced from:
      Fl_Font_Descriptor::Fl_Font_Descriptor(char const*, int) in libfltk.a(fl_font.o)
  "_objc_msgSend", referenced from:
      Fl_X::calc_mac_os_version() in libfltk.a(Fl_cocoa.o)
      fl_open_display() in libfltk.a(Fl_cocoa.o)
      DataReady::DataReadyThread(void*) in libfltk.a(Fl_cocoa.o)
      fl_ready() in libfltk.a(Fl_cocoa.o)
      -[FLWindow convertBaseToScreen:] in libfltk.a(Fl_cocoa.o)
      -[FLWindow initWithFl_W:contentRect:styleMask:] in libfltk.a(Fl_cocoa.o)
      -[FLWindow recursivelySendToSubwindows:] in libfltk.a(Fl_cocoa.o)
      ...
  "_objc_msgSendSuper2", referenced from:
      -[FLWindow initWithFl_W:contentRect:styleMask:] in libfltk.a(Fl_cocoa.o)
      -[FLWindowDelegateBefore10_5 windowDidDeminiaturize:] in libfltk.a(Fl_cocoa.o)
      -[FLWindowDelegateBefore10_5 windowWillMiniaturize:] in libfltk.a(Fl_cocoa.o)
      -[FLGLViewLayer did_view_resolution_change] in libfltk.a(Fl_cocoa.o)
      -[FLViewLayer did_view_resolution_change] in libfltk.a(Fl_cocoa.o)
      -[FLViewLayer dealloc] in libfltk.a(Fl_cocoa.o)
      -[FLView initWithFrame:] in libfltk.a(Fl_cocoa.o)
      ...
  "_objc_msgSendSuper2_stret", referenced from:
      -[FLWindow constrainFrameRect:toScreen:] in libfltk.a(Fl_cocoa.o)
  "_objc_msgSend_stret", referenced from:
      Fl_X::calc_mac_os_version() in libfltk.a(Fl_cocoa.o)
      fl_open_display() in libfltk.a(Fl_cocoa.o)
      -[FLWindow convertBaseToScreen:] in libfltk.a(Fl_cocoa.o)
      -[FLWindow setSubwindowFrame] in libfltk.a(Fl_cocoa.o)
      -[FLWindowDelegate windowDidMove:] in libfltk.a(Fl_cocoa.o)
      update_e_xy_and_e_xy_root(NSWindow*) in libfltk.a(Fl_cocoa.o)
      -[FLWindowDelegate windowDidResize:] in libfltk.a(Fl_cocoa.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Debug/Cons] Error 1
make: *** [All] Error 2
====1 errors, 0 warnings====

Re: Trying to use FLTK on Mac...

Posted: Tue Jul 21, 2020 1:16 pm
by DavidGH
Hi,

(Warning: I use wxWidgets on Linux, not FLTK/OSX. However...)

IIUC the path that follows an '-L' should be a full path e.g. -L/usr/lib/x86_64-linux-gnu rather than something like -Ljohnrebekah/Programming/fltk-1.3.5. In other words, it should start with a '/'.
How do I get FLTK to work with CodeLite? What kind of 'New Project' should I select when setting up?
You're breaking new ground here; I've not seen FLTK mentioned for >15 years, let alone used with CodeLite. However I'd suggest
Category: Console
Type: Simple executable (clang++)
and then add the FLTK bits yourself to get the gui.

Regards,

David

Re: Trying to use FLTK on Mac...

Posted: Tue Jul 21, 2020 11:49 pm
by Johnnywz00
David, thanks for weighing in... in the field following "Project Settings->Linker->Libraries Search Path"
I have typed
/Macintosh HD/Users/johnrebekah/Programming/fltk-1.3.5/lib
I still get the line

Code: Select all

ld: warning: directory not found for option '-L/Macintosh HD/Users...etc...'
followed by a huge list of

Code: Select all

Undefined symbols for architecture x86-64: 
I filled up the "Libraries" field with all of the .a files that I saw in the fltk-1.3.5/lib folder, not knowing if I only need one or all of them, or what.
It seems to compile if I #include <FL/Fl.H>, without making use of the header, but if I start using functions that are supposed to come from FLTK, I get the above results.

I also dowloaded wxWidgets 3.1.3, can you explain how I would set that up on CodeLite? Simply selecting one of the wxW template projects still won't find the wxW files it needs, and I've tried shifting the locating around, but I really don't know what I'm doing or which specific files in the whole sea of the wxW folder I need to target in my settings...

Thanks if you can help, I've spent probably 10 hours or more just trying to get set up and still no dice!

Re: Trying to use FLTK on Mac...

Posted: Wed Jul 22, 2020 12:46 am
by DavidGH
I have typed
/Macintosh HD/Users/johnrebekah/Programming/fltk-1.3.5/lib
Presumably that's the correct filepath; in which case maybe <Mac ignorance showing> it's the space between Macintosh and HD that's the problem. Try -L"/Macintosh HD/Users/johnrebekah/Programming/fltk-1.3.5/lib". Or, perhaps safer, create a symlink (e.g. MacintoshHD) that points to 'Macintosh HD', then use that in the -L statement.
I also dowloaded wxWidgets 3.1.3, can you explain how I would set that up on CodeLite?
In brief, you use the wx-config script. On Linux that would probably be in /usr/bin (which is easy to prove by doing, in a terminal,
which wx-config
but I don't know if that translates to OSX).
Having found it (adjust its filepath appropriately below) you can find the correct compiler settings by:
/path/to/wx-config --cxxflags
and linker settings:
/path/to/wx-config --libs all

Better though is to make the CodeLite project call wx-config itself. You can probably see that action in one of the wx-related template projects; it will look something like:
-g;-O0;-Wall;$(shell wx-config --cflags --debug)
and
$(shell wx-config --libs --debug)
(cflags works but is officially wrong; it should be cxxflags. --libs without the 'all' will work for 90% of situations.)

Re: Trying to use FLTK on Mac...

Posted: Wed Jul 22, 2020 3:00 am
by Johnnywz00
I really appreciate your taking time to give me some guidance, thanks. I haven't got it solved though...
If I try to use a wx CodeLite template straight up and build it (such as Simple executable (wxWidgets enabled), although I have tried other wx templates with similar results), the fist three lines say

Code: Select all

make[1]: wx-config: Command not found
as well as

Code: Select all

'wx/init.h' file not found     (or any other wx header from the other templates)
Do I need to locate the main wxWidgets-3.1.3 folder somewhere specific for the CodeLite command lines to find it?
Also my file says wx-config.in. Does the extension mean anything different or is that what I'm looking for?

And back to FLTK... I removed the /Macintosh HD/ section from my paths and just did /Users/etc., and my FTLK project now builds without giving me any lines about not finding a directory. However, there is still a huge list of "Undefined symbols for architecture x86-64"... is that a separate configuration thing, or is that just another way of saying that it's not actually finding the right library files that define all of the FLTK functions?

Re: Trying to use FLTK on Mac...

Posted: Wed Jul 22, 2020 7:57 am
by Johnnywz00
David, I think I have finally gotten over the hurdle to getting started. For some reason leaving the

Code: Select all

$(shell wx-config --libs --debug)
lines as is didn't work, but when I typed wx-config --cxxflags (etc.) in the terminal, I simply copy pasted the output into the Linker options etc. and I think I'm good to go!
Thanks so much!!