DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2317
Version: 1.3-current


Michael, thanks for your continuing work and the new patch. I could easily
install it on my Ubuntu test system.

First test results:

(1) It doesn't work OOTB because I don't have the libXinerama headers
installed, but it should since this is optional. Shortened output:

$ cmake -G "Unix Makefiles" ../fltk-1.3-cmake/
...
-- Found X11: /usr/lib/libX11.so
...
-- Found JPEG: /usr/lib/libjpeg.so
-- Found ZLIB: /usr/lib/libz.so
-- 
cannot find system png library - using built-in

CMake Error: The following variables are used in this project, but they
are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
X11_Xinerama_LIB (ADVANCED)
    linked by target "fluid" in directory
/home/schloss/svn/fltk-1.3-cmake/fluid
... (lots of "linked by" messages following)

BTW.: It's good that it finds the correct image libraries and uses the
builtin png lib :-)

After a little trial and error I was able to fix the Xinerama problem
temporarily with ccmake or by:

$ cmake -G "Unix Makefiles" -DX11_Xinerama_LIB:string=""
../fltk-1.3-cmake/
-- Looking for POSIX compatible scandir
-- POSIX compatible scandir - not found
-- 
cannot find system png library - using built-in

-- Configuring done
-- Generating done
-- Build files have been written to: /home/schloss/svn/cm2
$ 

This is okay, and the build completes :-)

Q1: Can you fix the libXinerama problem?

Q2: Is it possible that there are similar problems with other optional
libs, such as OpenGL?

Q3: How would I do the equivalent of ./configure --disable-option or for
instance --enable-localjpeg --enable-localzlib ? Is it the normal way to
use -D "something" ? In these cases, is there a help to find out how?

-----

(2) Minor issues (I can fix these two myself): the example programs
test/device and test/utf8 are missing in the build.

(3) bin/fltk-config is not executable (-rw-r--r--). Other than that it
seems to be okay, but ...

(4) fltk-config uses a special trick to work when it's not installed (from
the build dir). Therefore, it should probably be generated in the root dir
instead of in bin/ (hint: copy it to the root dir and watch the different
output of fltk-config --cxxflags). [side note: see "Check for local
invocation" in fltk-congig. This should IMO not be changed!].

More tests to follow, but so far: Great work, thanks !

One more question though: What do I need to make a minimal ("hello world")
project that uses CMake and _uses_ FLTK? I'd like to test this too. I guess
it's something to do with UseFLTK.cmake ? Is there a recipe "Using FLTK
with CMake for dummies" ? ;-)

Note: I'd like to do more tests over the long Easter weekend, and maybe
commit your changes to svn, if the first impression can be confirmed and
the tests are working okay.


Link: http://www.fltk.org/str.php?L2317
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to