|
|
I am trying to compile the latest from scratch under
MSYS/MINGW64.
Isn't this "MSYS2" ? Just to be clear that this is (not) a typo.
The mingw64 installation has system zlib. The compile fails
as this has ZLIB_VERNUM = 0x12d0 wheras FLTK PNG requires
0x12b0.
I have tried to run Cmake with OPTION_USE_SYSTEM_OFF=OFF and
it still fails.
I have moved the MINGSW zlib.h out of the way and it fails
not being able to find zlib.h as if the include library is still
looking in the mingw64 directory rather than in the fltk files.
In my MINGW window I gave run
mkdir -p build/Debug
cd build/Debug
cmake -G "Unix Makefiles" -D 'CMAKE_BUILD_TYPE=Debug'
-DCMAKE_SYSTEM_NAME="Windows" -DOPTION_USE_SYSTEM_ZLIB=OFF
-DOPTION_USE_SYSTEM_LIBJPEG=OFF -DOPTION_USE_SYSTEM_LIBPNG=OFF
../..
make
and it fails in make. After compiling fltk_zlib and fltk_jpeg
it fails on the first png file.
This *should* work if your build system is set up correctly.
I just tried the slightly modified commands (the first command is
one long line):
/mingw64/bin/cmake -G "Unix Makefiles" -D
'CMAKE_BUILD_TYPE=Debug' -DCMAKE_SYSTEM_NAME="Windows"
-DOPTION_USE_SYSTEM_ZLIB=OFF -DOPTION_USE_SYSTEM_LIBJPEG=OFF
-DOPTION_USE_SYSTEM_LIBPNG=OFF ../..
make -j3
... and this worked fine for me.
If this doesn't work for you then you can try to use -G "MinGW
Makefiles" instead. This needs "mingw32-make" instead of simple
"make" to run the build. Can you please try this and report if it
makes a difference?
I found the order of the defines to be sigificant - setting
zLIB after the other two was ignored and the mingsw zlib found
instead.
If you mean the CMake options then the order should NOT be
significant. Please check your syntax again. I see several typos
(like "OPTION_USE_SYSTEM_OFF=OFF" in your post, so maybe there was
one in your commands as well ? (just guessing)
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/7aa1dfba-e514-3d4f-8e43-3d192b6294e1%40online.de.
[ Direct Link to Message ] | |
|
| |