I have a self-set-up automatic build system for Windows and Linux on my VPS (it fetches the latest commit on master on BitBucket repo, compiles it for boh Linux and Windows and uploads it to my page).
The Windows version is linked statically (using MXE), so everything works just fine, even under Wine.
What bothers me, is the Linux version. In this case, I am linking the binary dynamically.
- On the VPS, I have downloaded the precompiled 64-bit binaries and moved the lib/ and include/ files to the appropriate folders.
- On my home computer, the SFML is self-compiled, (again, I used the official stable link from the download page)
However, when trying to run the downloaded example, this pops up:
./leyes: symbol lookup error: ./leyes: undefined symbol: _ZN2sf7Texture12loadFromFileERKSsRKNS_4RectIiEE
c++filt _ZN2sf7Texture12loadFromFileERKSsRKNS_4RectIiEE
sf::Texture::loadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Rect<int> const&)
I am guessing the only way of working around this is linking the SFML against the binary statically.
How do I do that? From the official tutorial it seems static SFML builds on Linux are not meant to work at all.