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 imm Nov 16, 2022  
 
So, as "luck" would have it, I was spinning up fltk on a Win11 box for
some tests... So I used MSYS2/mingw64, here's some results and
notes...

On Tue, 15 Nov 2022 at 21:44, 'pvrose' via fltk.general wrote:
>
> I am trying to compile the latest from scratch under MSYS/MINGW64.

> >>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?
> >
> Sorry it said "MinGW Makefiles" wasn't available.

Uh - that's unexpected... What list do you get if you do a "cmake -G"
with no option set? It *should* print a long list (well, about 60
lines on my set-up) of all the generators it knows about.

The "interesting" ones for Msys use are:

MSYS Makefiles               = Generates MSYS makefiles.
MinGW Makefiles              = Generates a make file for use with
Unix Makefiles                  = Generates standard UNIX makefiles.

All of which I have tried, at one time or another, and as best I can
tell they work "about the same" for my configurations.

This time around I opted for MSYS Makefiles; here's the foot of my
history buffer after the build, so all can see what was done:


git clone https://github.com/fltk/fltk.git fltk-1.4
cd fltk-1.4/
mkdir build-64
cmake -G
cd build-64/
cmake -G "MSYS Makefiles" -D 'CMAKE_BUILD_TYPE=Release'
-DCMAKE_SYSTEM_NAME="Windows" -DOPTION_USE_SYSTEM_ZLIB=OFF
-DOPTION_USE_SYSTEM_LIBJPEG=OFF -DOPTION_USE_SYSTEM_LIBPNG=OFF ..
make -j2

And that Just Worked.

As is traditional now, at the end of the build I remembered I had
forgotten (once again) to enable GLEW and the building of the
examples, so I fired up cmake-gui and turned on GLEW and the examples,
regenerated, and rebuilt. Still OK.

-- 
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/CAGFM6dZKAH%2Bc4a5Jek7DFAc0qwpw5Vg-LV_ynWewoeG4gNSckw%40mail.gmail.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'.