Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zjschrage

Pages: [1]
1
General / Re: Statically Link SFML Libraries
« on: March 02, 2023, 10:37:52 am »
Where can i find all those other dependencies, I found this:

https://github.com/SFML/SFML/tree/master/extlibs

but I cant find them all or i cant find the static ones here. I downloaded the current main static libraries somewhere online and it didn't have all this other stuff.

Thanks for the help  ;D

(also sorry about posting in the wrong place)

2
General / Statically Link SFML Libraries
« on: March 02, 2023, 02:24:32 am »
Hi,

PROBLEM:

I am trying to statically link my project so I can send it to my friend (dynamically linking works fine but I wont want to have to install sfml on their computer) but I am getting a symbol not defined linker error.

WHAT I HAVE DONE:

I created a folder called lib_sfml_static where i put 4 static libraries such as libsfml-system-s.a inside. I am using the following flags to indicate i want to do static linking:

-D SFML_STATIC -Llib_sfml_static -lsfml-system-s -lsfml-window-s -lsfml-audio-s -lsfml-graphics-s

I thought that the symbol not defined error means that I'm missing header files so I also tried copying the header files to another folder and adding another include directive -Isfml_static_headers but this seemed to not work, and I read online that I shouldn't actually have to specify headers with static libraries.

GITHUB

Here is the github link of the project, make snake-stat is the command that I run to make statically versus dynamically.

https://github.com/zjschrage/Snake/blob/main/src/Makefile


Pages: [1]