![]() |
#21 |
Swordsman
Join Date: Oct 2021
Location: WA
Posts: 322
![]() |
My MSYS2 install seems to have something called pkgconf instead of pkg-config; when I tell it to install pkg-config, it says it could conflict with pkgconf. Here's what I get using pkgconf on the SDL2 packages:
smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --cflags sdl2 -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include/SDL2 -Dmain=SDL_main smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --cflags sdl2_image -IC:/msys64/mingw64/include/SDL2 -IC:/msys64/mingw64/include -Dmain=SDL_main -IC:/msys64/mingw64/include/libpng16 -DHWY_SHARED_DEFINE smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --cflags sdl2_mixer -IC:/msys64/mingw64/include/SDL2 -IC:/msys64/mingw64/include -Dmain=SDL_main -IC:/msys64/mingw64/include/opus smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --cflags sdl2_ttf -IC:/msys64/mingw64/include/SDL2 -IC:/msys64/mingw64/include -Dmain=SDL_main -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --libs sdl2 -LC:/msys64/mingw64/lib -lmingw32 -mwindows -lSDL2main -lSDL2 smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --libs sdl2_image -LC:/msys64/mingw64/lib -lSDL2_image -lmingw32 -mwindows -lSDL2main -lSDL2 smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --libs sdl2_mixer -LC:/msys64/mingw64/lib -lSDL2_mixer -lmingw32 -mwindows -lSDL2main -lSDL2 smbhax@DESKTOP-64GQN1N MINGW64 ~/angband $ pkgconf --libs sdl2_ttf -LC:/msys64/mingw64/lib -lSDL2_ttf -lmingw32 -mwindows -lSDL2main -lSDL2 Some of those linker flags aren't in the Makefile, like -lmingw32, -mwindows, -lSDL2main and -lSDL2. But I have no idea if that's relevant. There are quite a few flags in the SDL2 flag sections of the Makefile that weren't listed by pkgconf, but I don't know if those are just other things Angband needs to support its use of SDL2. And I don't know where to look for the cflags exactly; I see some things like -harfbuzz in the Makefile ("-freetype" is in twice for some reason--Oh maybe that has to do with "# freetype and harfbuzz has Circular dependency"), but not others like libpng16 or glib-2.0 (and -DHWY_SHARED_DEFINE?). (Oh realized Angband doesn't use SDL2_gfx; removed that.)
__________________
My Angband videos Last edited by smbhax; November 20, 2022 at 01:51. |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Angband 4.2.4 Windows SDL2 Build Issue | docrobot | Vanilla | 4 | February 24, 2022 01:43 |
4.2.0 windows sdl2 frontend | Adriankhl | Development | 10 | June 11, 2020 15:55 |
SDL2 port when ? | shirish | Development | 89 | September 2, 2019 11:59 |
Latest Nightly release, SDL2 crashing with 8 terms | EducatedNoob | Development | 3 | June 24, 2019 22:17 |
v4.1.2 Sound? | Imzy | Vanilla | 1 | January 27, 2018 22:45 |