Git Product home page Git Product logo

Comments (4)

brus-fabrika avatar brus-fabrika commented on August 19, 2024 1

@Telroshan hello!

After your comment I decided to make a fresh re-install of the building setup from the beginning and it just went fully fine at the end :) . My mistake was in CSFML version mismatch, somehow first time I downloaded 2.5 version, not the 2.5.1. With the latter it compiles and builds with no errors (except of deprecation warnings).

I will close the issue.

Thank you!

from go-sfml.

brus-fabrika avatar brus-fabrika commented on August 19, 2024

Update to the above - after manual update of the Graphics_wrap.c to pass the correct argument to underlying function sfRenderTexture_createWithSettings, I've got the linker errors:

C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
D:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\brusa\AppData\Local\Temp\go-link-4052965474\000002.o:Graphics_wrap.:(.text+0x624a): undefined reference to `__imp_sfRenderTexture_createWithSettings'
D:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\brusa\AppData\Local\Temp\go-link-4052965474\000002.o:Graphics_wrap.:(.text+0x6b41): undefined reference to `sfRenderTexture_getMaximumAntialiasingLevel'
D:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\brusa\AppData\Local\Temp\go-link-4052965474\000002.o:Graphics_wrap.:(.text+0xbeef): undefined reference to `__imp_sfTexture_updateFromTexture'
collect2.exe: error: ld returned 1 exit status

I do believe this is neither the compiler nor the CSFML lib versions issues, because I was able to build and run corresponding C version of the basic example correctly.

from go-sfml.

Telroshan avatar Telroshan commented on August 19, 2024

Hey!
Just ran a fresh install as I had formatted my computer since then, and it worked just fine for me 😕
Could you tell me what your setup is? With versions and so on, so I can investigate, hopefully recreating the same bug in the same conditions!

I personnally ran :

If you don't run the bat script, please make sure :

  • You have properly set CGO_ENABLED, CGO_CFLAGS and CGO_LDFLAGS environment variables
  • You have copied the CSFML 64 bits DLL next to your exe

from go-sfml.

Telroshan avatar Telroshan commented on August 19, 2024

Perfect, I'm glad it's working, thanks for letting me know!

from go-sfml.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.