This is what I have now done, I entered it manually with -Dxxx
, note the last 2 lines.
cmake -S ../SDL_ttf -B . \
-DCMAKE_CXX_COMPILER="/usr/bin/x86_64-w64-mingw32-g++" \
-DCMAKE_C_COMPILER="/usr/bin/x86_64-w64-mingw32-gcc" \
-DCMAKE_RC_COMPILER="/usr/bin/x86_64-w64-mingw32-windres" \
-DCMAKE_FIND_ROOT_PATH="/usr/x86_64-w64-mingw32" \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" \
-DCMAKE_SYSTEM_NAME="Windows" \
-DFREETYPE_INCLUDE_DIR_freetype2="/usr/local/include/freetype2" \
-DFREETYPE_INCLUDE_DIR_ft2build="/usr/local/include/freetype2"
I have now done this, I entered it manually with -Dxxx
, note the last 2 lines.
But the error still occurs as described here: Build SDL3_ttf.DLL from Linux
But when I check it with cmake-gui
, the changes have been applied. Now I just have to click [Generate] without changing anything and there is a working Makefile