Error using the lib in Windows
Caue-Aron opened this issue · comments
Cauê commented
I built the moonsdl2 library on windows using mingw64 and msys2. Thing is, running the example gives this:
`C:\Lua\5.4\lua54.exe: error loading module 'moonsdl2' from file '.\moonsdl2.dll':
%1 is not a valid Win32 application.
stack traceback:
[C]: in ?
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in ?`
Important to note that i dont think i properly built it, it gave this error many times:
Stefano Trettel commented
Hi.
It seems like pkg-config is not installed on your system. To install it, this should do:
$ pacman -S ${MINGW_PACKAGE_PREFIX}-pkg-config
Once installed, try rebuilding moonsdl2.
Let me know if this fixes the issue, thank you!
Ste.