Hi,
I am a programming beginner and am learning gui from Programming: Principles and Practice Using C++ 2nd from Bjarne Stroustrup.
I have some problems installing fltk on the xcode. More specifically, I managed to run the demo using fltk 1.3.4. But I am not entirely sure about 4.7 in readme.osx:
"When distributing FLTK applications, the FLTK frameworks should be made part of
the application package. For development however, it is very convenient to have
the Release-mode Frameworks in a standard location.
For Xcode project template use, all FLTK frameworks should be built using
"Build for Archiving" and then copied from
"./(Organizer->Derived Data Path)/Release/" to "/Library/Frameworks/".
The FLTK header files for all FLTK frameworks will then be at
"/Library/Frameworks/fltk.framework/Headers/". Add this path to the header
search path of your projects.
sudo rm -f -r /Library/Frameworks/fltk*
sudo cp -R (Organizer->Derived Data Path)/Release/fltk*.framework /Library/Frameworks/"
I cannot find "./(Organizer->Derived Data Path)/Release/" and I cannot find "Build for Archiving" option in xcode.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Regardless, I proceed with the testing using sample code from the book:
#include <FL/Fl.h>
#include <FL/Fl_Box.h>
#include <FL/Fl_Window.h>
int main()
{
Fl_Window window(200, 200, "Window title");
Fl_Box box(0,0,200,200, "Hey, I mean, Hello, World!");
window.show();
return Fl::run();
}

But it does not compile. The error message is <FL/Fl.h> is not found. I searched online and tried to add header files in FL folder in the xcode header search path. This time, xcode manage to find all three header file, but it cannot find "#include <FL/Fl_Export.H>" mentioned in <Fl.h>. So, I suppose I did not add header search path correctly.
In addition, when I create a whole new project, I have no idea how to "include fltk environment", and I have no idea how to include all fltk libraries at a new xcode projects.



A more senior programmer has tried to fix the problem, but failed. So, I suppose it is not trivial. Any help is much appreciated! Thank you.
Regards
JY