Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_DEPRECATED DECLSPEC int SDLCALL SDL_GetRevisionNumber(void) #2

Open
WillianBR opened this issue Sep 27, 2023 · 2 comments
Open

Comments

@WillianBR
Copy link

Build Failed

go install -v -x .

WORK=C:\Users\WillianBR\AppData\Local\Temp\go-build949060971
cat "C:\\Users\\WillianBR\\AppData\\Local\\go-build\\15\\15cc83c26bac6f56bc9ae5a20d722dff8183a5707eda0f0fc388291784434bf4-d"  # internal
# github.com/veandco/go-sdl2/sdl
cgo-gcc-prolog: In function '_cgo_bedd2742e4d6_Cfunc_SDL_GetRevisionNumber':
cgo-gcc-prolog:69:2: warning: 'SDL_GetRevisionNumber' is deprecated [-Wdeprecated-declarations]
In file included from C:\Temp\GOLang_UI\x86_64-w64-mingw32\include/SDL2/SDL.h:62,
                 from vendor\github.com\veandco\go-sdl2\sdl/sdl_wrapper.h:2,
                 from vendor\github.com\veandco\go-sdl2\sdl\version.go:3:
C:\Temp\GOLang_UI\x86_64-w64-mingw32\include/SDL2/SDL_version.h:193:44: note: declared here
  193 | extern SDL_DEPRECATED DECLSPEC int SDLCALL SDL_GetRevisionNumber(void);
      |                                            ^~~~~~~~~~~~~~~~~~~~~

Revion: d82ef0b

Do you have any hints?

@WillianBR
Copy link
Author

# git.kirsle.net/go/ui/eg/hello-world
C:\DESENV\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
C:/DESENV/TDM-GCC-64_v10.3.0/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2
C:/DESENV/TDM-GCC-64_v10.3.0/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2
C:/DESENV/TDM-GCC-64_v10.3.0/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDL2_ttf
collect2.exe: error: ld returned 1 exit status

@kirsle
Copy link
Collaborator

kirsle commented Sep 30, 2023

Hey there!

I'm not sure what these errors are about. A couple of ideas I have to try are:

Per the cannot find -lSDL2 errors I would guess you don't have the SDL2 C libraries installed locally, and veandco/go-sdl2 may have some instructions how to set it up.

I haven't tried building go/ui from a Windows environment, but I'm able to cross-compile a Windows program from Linux by using the mingw SDL2 libraries and especially the version linked above (in my SketchyMaze/vendor git repo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants