Comments (4)
@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.
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.
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 :
- CSFML 2.5.1 64 bits
- GCC x86_64-13.2.0-release-win32-seh-ucrt-rt_v11-rev0
- Ran the
build.bat
script in the example's folder, after adjusting theCSFML_PATH
and adding gcc to my system Path
If you don't run the bat script, please make sure :
- You have properly set
CGO_ENABLED
,CGO_CFLAGS
andCGO_LDFLAGS
environment variables - You have copied the CSFML 64 bits DLL next to your exe
from go-sfml.
Perfect, I'm glad it's working, thanks for letting me know!
from go-sfml.
Related Issues (7)
- Consider renaming examples/go HOT 2
- graphics.SfRenderWindow_drawText should accept a nil parameter for RenderStates HOT 2
- GO example crashed on linux
- Please open wiki for documentation HOT 2
- A lot of compilation warnings on Ubuntu 20.04 HOT 1
- "Undefined reference to" errors when compiling basic_window example on Ubuntu 22.04 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-sfml.