SFML.Net icon indicating copy to clipboard operation
SFML.Net copied to clipboard

Problem with mkbundle if you use --simple --library libcsfml-(XXXX).so than bundled executable can't show background and shapes

Open DeafMan1983 opened this issue 4 years ago • 2 comments

Hello everyone,

I have found bug if I want bundle into mono bundled executable with mkbundle on Ubuntu 18.04 mkbundle --simple --cross mono-5.20.1-ubuntu-16.04-x64 SFML_Test.exe --library libcsfml-audio.so --library libsfml-audio.so --library libcsfml-graphics.so --library libsfml-graphics.so --library libcsfml-system.so --library libsfml-system.so --library libcsfml-window.so --library libsfml-window.so -o SFML_Test -v Result: image

Wordaround: without libcsfml-(XXXX).so into bundled executable mkbundle --simple --cross mono-5.20.1-ubuntu-16.04-x64 SFML_Test.exe --library libsfml-audio.so --library libsfml-graphics.so --library libsfml-system.so --library libsfml-window.so -o SFML_Test -v Result: image

PS: Please fix normal extern "C" { ... } for public methods of library so for Linux, dll for Windows and dylib for MacOS 10.1x

But I am surprised because you force against objdump -TC libsfml-(XXXX).so But I can't get public methods from libsfml-(XXXX).so - I understand but it is not SF::CreateWindow() and It should be sf_create_window(void* handle) for example.

Thanks!

DeafMan1983 avatar Mar 06 '21 13:03 DeafMan1983

Can you describe a bit more what you think needs changing?

I don't know mkbundle and don't fully understand why CSFML seems to cause issues when it's bundled.

CSFML is just a C interface for the C++ SFML library.

eXpl0it3r avatar Mar 06 '21 19:03 eXpl0it3r

mkbundle is makebundle of Mono Project ( C#. Visual Basic and F# for Linux and MacOS successor of Net Frameworks for Windows. See www.mono-project.com and Github has also https://github.com/mono/mono

csfml-(XXXX).so bundle into mono bundled executable but shapes and backgrounds don't show up since SFML Window if it is already running.

Sorry my bad English. I am German.

DeafMan1983 avatar Mar 06 '21 21:03 DeafMan1983

With native dotnet support, having just updated CSFML as well as SFML.Net, and not really wanting to investigate some bundling behavior. I'll close this issue for now.

Make sure to try the latest SFML.Net / CSFML package and see if the issue persists.

eXpl0it3r avatar Jun 15 '23 21:06 eXpl0it3r