FLTK logo

Re: [fltk.general] Compiling under mingw - error with zlib.h

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Compiling under mingw - error with zlib.h "'pvrose' via fltk.general" Nov 15, 2022  
 

On 15 November 2022, at 17:44, Albrecht Schlosser <AlbrechtS.fltk@online.de> wrote:

>
>
>On 11/15/22 17:01 'pvr...@btinternet.com' via fltk.general wrote:
>
>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.

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
>
>git clone https://github.com/fltk/fltk.git
>
>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.

This has actually shown up I have a bigger problem. It can't find <FL/Fl.H>.
>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?
>

No difference. Given the above problem, I'll reinstall msys2 tomorrow.
>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)

I triple checked it at the time.
>
>--

Phil.
>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.

--
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/usya8vlhleku611o4wle8dfn.1668548465836%40email.android.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.