You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On an Ubuntu 19.10 (Eoan Ermine) system, the following command: CGO_ENABLED=1 CC=i686-w64-mingw32-gcc GOOS=windows GOARCH=386 go build -v -tags static -ldflags "-s -w"
fails to build https://github.com/20kdc/CCUpdaterUI (Please be noted: If you wish to test this specific application, it expects my fork of CCUpdaterCLI) with:
/usr/bin/i686-w64-mingw32-ld: ../../veandco/go-sdl2/sdl/../.go-sdl2-libs/libSDL2_windows_386.a(SDL_mouse.o):(.text+0xa1): undefined reference to `GetDoubleClickTime'
Note: This issue mostly exists to document the workaround, which is:
Overwriting the .go-sdl2-libs files with the relevant MinGW static libraries (not the .dll-postfixed ones) from https://www.libsdl.org/download-2.0.php works.
Specifically:
If an issue occurred with GetDoubleClickTime:
Hi @20kdc, thanks for the workaround. It does work! I tested it by compiling the library (e.g. cd $GOPATH/src/github.com/veandco/go-sdl2/sdl then run CGO_ENABLED=1 CC=i686-w64-mingw32-gcc GOOS=windows GOARCH=386 go install -v -tags static -ldflags "-s -w".
Do you think we could simply update the Windows 32-bit .a files with the ones from the website, @gen2brain? Or did you compile the static libraries yourself with a special way?
Hi @veeableful , libs are compiled with minimal dependencies (i.e. without smpeg, flac, mikmod, modplug etc.) and made to work by default with libmpg123. All libs are cross-compiled on Linux (except for darwin but I can now also cross-compile for darwin on Linux).
I don't have any automatic procedure for the build, just some notes, will try to compile and update everything again, not sure when will I find time to do that though.
btw. that GetDoubleClickTime is strange, that is in user32 and it does link that lib, maybe order is important for that one.
On an Ubuntu 19.10 (Eoan Ermine) system, the following command:
CGO_ENABLED=1 CC=i686-w64-mingw32-gcc GOOS=windows GOARCH=386 go build -v -tags static -ldflags "-s -w"
fails to build https://github.com/20kdc/CCUpdaterUI (Please be noted: If you wish to test this specific application, it expects my fork of CCUpdaterCLI) with:
Note: This issue mostly exists to document the workaround, which is:
Overwriting the .go-sdl2-libs files with the relevant MinGW static libraries (not the .dll-postfixed ones) from https://www.libsdl.org/download-2.0.php works.
Specifically:
If an issue occurred with GetDoubleClickTime:
The text was updated successfully, but these errors were encountered: