On Tuesday, November 15, 2022 at 4:01:15 PM UTC pvr...@btinternet.com wrote:
I am trying to compile the latest from scratch under MSYS/MINGW64.
It appears I had installed an incompatible version of cmake.
I have reinstalled MYSYS2 and using MINGW64 terminal:
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-gdb
pacman -S git
cd /c/users/pvros/
cd dev
git clone https://github.com/fltk/fltk.git
cd fltk
mkdir -p build/Debug
cd build/Debug
cmake -DCMAKE_BUILD_TYPE=Debug -DOPTION_USE_SYSTEM_ZLIB=OFF ../..
ninja
Now gets me a bit further.
cmake -G offered me many more targets, but when I tried "MinGW Makefiles" got:
$ cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CME_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/pvros/dev/fltk/build/Debug/CMakeFiles/CMakeOutput.log".
So I went with the default: Ninja
I now fail at:
$ ninja
[556/582] Generating fast_slow.cxx, fast_slow.h
FAILED: test/fast_slow.cxx test/fast_slow.h C:/Users/pvros/dev/fltk/build/Debug/test/fast_slow.cxx C:/Users/pvros/dev/fltk/build/Debug/test/fast_slow.h
cmd.exe /C "cd /D C:\Users\pvros\dev\fltk\build\Debug\test && C:\Users\pvros\dev\fltk\build\Debug\bin\fluid-cmd.exe -c C:/Users/pvros/dev/fltk/test/fast_slow.fl"
[560/582] Linking CXX executable bin\test\radio.exe
Where it appears to have stopped.
I shall persevere. Phil.