FLTK logo

Re: [fltk.general] Re: 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: Re: Compiling under mingw - error with zlib.h Albrecht Schlosser Nov 16, 2022  
 
On 11/16/22 17:31 'Philip Rose' via fltk.general wrote:

I’ve manage to compile and run the demo – thanks – further comments in-line.


Great, thanks for the feedback.

 <PVR> I missed an important step which was to update MSYS2 after installing it – run:

pacman -Suy


Oh, yes, this is something one needs to remember (or look it up) every time one installs or updates the MSYS2/mingw64 installation.

I managed to get ‘-G “MinGW Makefiles”’ to work, ‘-G “MSYS Makefiles”’ still doesn’t find the generator.


I'd say this is OK. They work mostly the same but AFAICT "MSYS Makefiles" are *intended* to be used for building programs that are used for MSYS itself (or the MSYS DLL etc.) whereas "MinGW Makefiles" should be used for building "Windows executables". I'm not sure what flavor of build tools "Unix Makefiles" uses by default in an MSYS2 environment.

Thus, I'd say that it's OK if you have "MinGW Makefiles" working. Hint: you can always use `cmake --build` to execute the build command configured by CMake so you don't need to remember whether you need to run `make` or `mingw32-make` or whatever.

Further things to do:

The built executables should always run when started from the MSYS shell but may not work on a stock Windows system w/o MSYS2. If that's what you need, please look at my previous post regarding "CMAKE_EXE_LINKER_FLAGS" which should give you hints how to avoid MSYS2 dependencies *if needed*.

To find out whether you have non-Windows (MSYS2) dependencies use e.g. `ldd bin/test/hello.exe | grep -v Windows` or open a Windows explorer window and double-click on some .exe files. If it fails you'll get a message that one or more DLL's are missing. If it works you should be able to deploy such executables on other Windows systems w/o MSYS2 as well.

--
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/556ce4b5-8f57-5ab1-bdc3-3137c882569b%40online.de.
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'.