Hello,
I am using fltk 1.3.x-r7677. I wanted to try FLTK on Mac OS (10.6) compiled
for x86_64. I used "configure" (not CMake) to compile fltk itself with a
modified configure.in (replaced i386 by x86_64, a temporary hack). fltk
compiles and the tests run well as far as I can tell.
I then tried to compile my own code against fltk/fluid. We use CMake for the
build process and pointing at the right header files and libraries I was able
to compile without any issue. The problem is that the code doesn't seem to
run, i.e. I have a blank screen with a spinning beach ball. I tried another
example I wrote with an OpenGL window and the OpenGL part gets refreshed but
the fltk widgets are still blank.
The CMake code looks like (I added objective C++ based on some posts but this
doesn't seem to do anything):
FLTK_WRAP_UI(multiTaskTutorialExample1 displayUI.fl)
ADD_EXECUTABLE(multiTaskTutorialExample1
sineTask.cpp
displayTask.cpp
main.cpp
${multiTaskTutorialExample1_FLTK_UI_SRCS}
)
if(APPLE)
set_source_files_properties(${multiTaskTutorialExample1_FLTK_UI_SRCS}
main.cpp
displayTask.cpp
PROPERTIES COMPILE_FLAGS "-x objective-c++")
endif(APPLE)
Also to note, our programs have their own event loop so we call Fl::check
periodically. Is this something broken on the recent Apple port?
Any clue? I compared the compilation and link options between the tests
provided with fltk and the makefiles generated by CMake but I can't find
anything obvious. Is this something related to "Rez"? I didn't see "Rez"
calls when building the fltk tests.
Anton
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk