2

I set up sfml and csfml in my environment and then tried installing go-sfml, which started returning tons of deprecation warnings. I think I have the right sfml versions, so I don't know what is wrong or how to fix it.

I used winbuilds to set up gcc.

What I did:

go get -u gopkg.in/teh-cmc/go-sfml.v24/...

Returns multiple warnings like:

Graphics_wrap.c:6614:3: warning: 'sfShader_setCurrentTextureParameter' is deprecated (declared at c:\users\****\documents\winbuilds\x86_64-w64-mingw32\include\sfml\graphics\shader.h:646) [-Wdeprecated-declarations]
   sfShader_setCurrentTextureParameter(arg1,(char const *)arg2); 

It also fails to install/build (at least I think that is what it is saying):

C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
c:/users/****/documents/winbuilds/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: unrecognized option '--high-entropy-va'
c:/users/****/documents/winbuilds/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: use the --help option for usage information
collect2.exe: error: ld returned 1 exit status```
gearDev
  • 29
  • 1
  • 8
  • 1
    Did `go-sfml` successfully install? Deprecation warnings don't necessarily result in build errors (note they are *warnings* and not *errors*). You should be able to disable warnings with the `-w` flag ([source](https://stackoverflow.com/a/1452674/6069012)). – Gavin Jul 20 '21 at 18:23
  • 1
    what is the sfml version in your local setup. is it above 2.4.0 ? – Wishwa Perera Jul 20 '21 at 18:46
  • I realized I was using csfml 2.5.1 when you told me that, so I thought that was what was wrong and changed the version. Turns out, it still showed the same stuff when I changed the files. – gearDev Jul 20 '21 at 19:34

1 Answers1

1

so I thought that was what was wrong and changed the version.

But this was deprecated in commit 16ea259, Aug. 2016, CSFML 2.4

Since teh-cmc/go-sfml:

You always will have that warning, unless you patch go-sfml itself.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250