I hope this is the right place for this message.I have been attempting to build fltk using MSYS2-Mingw64 console. ……
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/9743eb15-a550-462f-acc6-c508eb0df3f7n%40googlegroups.com.
Hi Manolo,I have made some progress with using the Windows cmake instead of the Mingw cmake (The current instructions state to use the cmake from Mingw)..
I have the MSVC development version in my home folder. When I installed MSYS2, I fetched a new git version of fltk. I used the Mingw64 console and ran the following from the /home/fltk/build-mingw64 folder:$ /c/"Program FIles"/CMake/bin/cmake.exe -G "MSYS Makefiles" ..
CMake Error: The current CMakeCache.txt directory C:/msys64/home/olive/fltk/build-mingw64/CMakeCache.txt is different than the directory /home/olive/fltk/build-mingw64 where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "C:/msys64/home/olive/fltk/CMakeLists.txt" does not match the source "/home/olive/fltk/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
On 8/6/26 23:40, Manolo wrote:
Le jeudi 6 août 2026 à 22:38:49 UTC+2, oliver.h....@gmail.com a écrit :Hi Manolo,I have made some progress with using the Windows cmake instead of the Mingw cmake (The current instructions state to use the cmake from Mingw)..
I don't understand what you mean here because I'm not aware it exists a Windows cmake distinct from a Mingw cmake.
I ran into this recently; there's one cmake with msys2,
and another that comes with mingw64.
The separate 'pacman' package names being:
- cmake (MSYS2 package)
- mingw-w64-x86_64-cmake (mingw package)
You should use only THE cmake program downloaded from https://cmake.org/download/ and then installed on your computer, by default at "C:/Program Files/CMake/". In subdirectory "bin" of this directory you'll find "cmake.exe" you can use for the command line interface to CMake and "cmake-gui.exe" you should use to pilot CMake via a GUI.
On 8/7/26 01:49, Greg Ercolano wrote:
The separate 'pacman' package names being:
- cmake (MSYS2 package)
I've only had luck with the latter, where 'cmake -G "MSYS Makefiles" ..'
- mingw-w64-x86_64-cmake (mingw package)
works to build FLTK with regular 'make'.
[..snip..]I took your advice (Manolo) and installed cmake.org's cmake, and used that to build fltk using e.g.
[ 40%] Building CXX object src/CMakeFiles/fltk.dir/Fl_get_key_win32.cxx.obj
[ 41%] Building CXX object src/CMakeFiles/fltk.dir/drivers/WinAPI/fl_WinAPI_platform_init.cxx.obj
[ 41%] Building CXX object src/CMakeFiles/fltk.dir/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx.obj
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx:309:37: error: 'POINTER_INFO' doe
s not name a type; did you mean 'PRINTER_INFO_9'?
309 | const POINTER_INFO &pointer_info) {
| ^~~~~~~~~~~~
| PRINTER_INFO_9
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx: In function 'void update_position(PenDevice*,
HWND, const int&)':
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx:313:27: error: request for member 'ptPixelLocat
ion' in 'pointer_info', which is of non-class type 'const int'
313 | POINT pt = pointer_info.ptPixelLocation;
| ^~~~~~~~~~~~~~~
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx: At global scope:
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx:343:38: error: 'POINTER_PEN_INFO' does not name
a type; did you mean 'POINTER_64_INT'?
343 | static State compute_pen_state(const POINTER_PEN_INFO &pi) {
| ^~~~~~~~~~~~~~~~
| POINTER_64_INT
[..many errors snipped..]
On 8/6/26 23:40, Manolo wrote:
Le jeudi 6 août 2026 à 22:38:49 UTC+2, oliver.h....@gmail.com a écrit :Hi Manolo,I have made some progress with using the Windows cmake instead of the Mingw cmake (The current instructions state to use the cmake from Mingw)..
I don't understand what you mean here because I'm not aware it exists a Windows cmake distinct from a Mingw cmake.
I ran into this recently; there's one cmake with msys2,
and another that comes with mingw64.
The separate 'pacman' package names being:- cmake (MSYS2 package)
I've only had luck with the latter, where 'cmake -G "MSYS Makefiles" ..'
- mingw-w64-x86_64-cmake (mingw package)
works to build FLTK with regular 'make'.
At one point it was a big deal to rip out the msys2 cmake and replace it with the mingw cmake,
as there were conflicting interleaving libraries and such.. very messy to fix.
You should use only THE cmake program downloaded from https://cmake.org/download/ and then installed on your computer, by default at "C:/Program Files/CMake/". In subdirectory "bin" of this directory you'll find "cmake.exe" you can use for the command line interface to CMake and "cmake-gui.exe" you should use to pilot CMake via a GUI.
I recall needing to use cmake from cmake.org as a separate package a year or three ago,
but not needing it recently when setting up a new machine, as the above 'pacman' installed
mingw cmake worked OK.
On 8/7/26 01:49, Greg Ercolano wrote:
The separate 'pacman' package names being:
- cmake (MSYS2 package)
I've only had luck with the latter, where 'cmake -G "MSYS Makefiles" ..'
- mingw-w64-x86_64-cmake (mingw package)
works to build FLTK with regular 'make'.
FWIW I just did a 'git pull' for fltk current on that Windows machine and rebuilt,
and was able to replicate the "tablet related errors" the OP reported.
The problems kick in about 41% into the 'make' build, which is when it hits the Fl_WinAPI_Pen_Driver.cxx file:[..snip..]
[ 40%] Building CXX object src/CMakeFiles/fltk.dir/Fl_get_key_win32.cxx.obj
[ 41%] Building CXX object src/CMakeFiles/fltk.dir/drivers/WinAPI/fl_WinAPI_platform_init.cxx.obj
[ 41%] Building CXX object src/CMakeFiles/fltk.dir/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx.obj
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx:309:37: error: 'POINTER_INFO' doe
s not name a type; did you mean 'PRINTER_INFO_9'?
309 | const POINTER_INFO &pointer_info) {
| ^~~~~~~~~~~~
| PRINTER_INFO_9
The problems kick in about 41% into the 'make' build, which is when it hits the Fl_WinAPI_Pen_Driver.cxx file:[..snip..]
[ 40%] Building CXX object src/CMakeFiles/fltk.dir/Fl_get_key_win32.cxx.obj
[ 41%] Building CXX object src/CMakeFiles/fltk.dir/drivers/WinAPI/fl_WinAPI_platform_init.cxx.obj
[ 41%] Building CXX object src/CMakeFiles/fltk.dir/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx.obj
C:/temp/fltk-1.5.x.git/src/drivers/WinAPI/Fl_WinAPI_Pen_Driver.cxx:309:37: error: 'POINTER_INFO' doe
s not name a type; did you mean 'PRINTER_INFO_9'?
309 | const POINTER_INFO &pointer_info) {
| ^~~~~~~~~~~~
| PRINTER_INFO_9This is a known issue I'm just working on. For some configurations we don't raise the required Windows version macros correctly, hence the required Pen driver related symbols are not defined. I think that I can push an update later today.
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/01592cff-147b-4a22-8f03-883029ee7ade%40aljus.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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/c23376be-7d4a-4d6c-bb4c-358c89c16c63n%40googlegroups.com.
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/781124b5-4248-4275-b245-72aec1f14264%40aljus.de.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/CAD186y%2BHcX2RDrRtBsa-TygJDDyV9fyZ6%2BgTSRkFSd0SNTdSmg%40mail.gmail.com.
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/987b95ac-1a31-43e8-bc20-61cd50ca22c0%40aljus.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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6dbxHFKohUCVZOzMWPnA5V2vOF%3DTLu7ZGJZDTkixQpGJ9Q%40mail.gmail.com.
I built the VS2022 and 2026 libraries first and tested fltk, fluid, demo and test. When a GNU build was requested, I installed MSYS2, and copied the folder structure that worked for VS over to the MinGW64 console environment. Since it had already compiled and worked on VS, it should,, in theory, work on MYSY2, I thought.
- fltk-root
|- build
|- Visual Studio
|- MinGW
|- MSYS2/MINGW64
|- ...
This way I can share the FLTK root folder by old build systems. You
can even have the build folders anywhere else on your disk, i.e.
totally outside the FLTK root, and the FLTK source folder can even
be read-only.One of the README files, I believe it was Windows, suggested using alias to point to the CMake Windows Program Files Cmake program.
When I installed the MSYS2 Mingw64 mingw-w6-x86_64 toolchain, the [c]make versions between MSYS2 and Windows Cmake were both at 4.4.2. The only difference was file size AND available make base scripts -G "MinGW Makefiles".
There are six different sets of instructions on how to build fltk outside of VS with Cygwin, MSYS2, and several different methods for MinGW64.
I only made the mistake of adding Windows or MSYS to the other path and then doing a build once.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/933ba7d0-a7ce-41f9-9491-e1ec4ae33cf2%40aljus.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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/c23376be-7d4a-4d6c-bb4c-358c89c16c63n%40googlegroups.com.
Hi Ian,Thank you, you've given me insight and I'll try your work arounds. This is for a client who wants VS compatibility,
GNU freedom from VS, and the target platform is a Windows 11 Tablet that uses a pen. Jackpot! One of the biggest issues with MinGW is how many different "MinGW" branded toolchains there are. And that is a rabbit hole all its own. I will try your Msys2/mingw64 suggestion. Microsoft isn't helping with where they are trying to take Windows either. I'll give these a try and report back.Thank you so very much.Oliver
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6dZhb8vuNRrwj35oJ6%2Ba459ryBJOOw1Rs1hj1mdw8wFyfQ%40mail.gmail.com.