Emulator Issues #5960
closedSFML in Externals is old+broken - should update to SFML 2.0 RC
0%
Description
This is somewhat related to issue 5585. Dolphin won't build against SFML 2.0 which is the default in Arch Linux.
We have an AUR package which installs SFML 1.6 in these dirs for compatibility issues: http://pastebin.com/DZEUHzzT.
CMake won't find the include dir by itself, I have to pass this:
-DSFML_INCLUDE_DIR=/usr/include/sfml1.6
The build process starts fine but leads to this error:
/home/alucryd/Packages/dolphin-emu-git/src/dolphin-emu/Source/Core/Core/Src/NetPlay.h:9:28: fatal error: SFML/Network.hpp: No such file or directory
compilation terminated.
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/Src/NetPlay.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
It seems to be looking in /usr/include instead of /usr/include/sfml1.6. I can tell because it finds the files when SFML 2.0 is installed in /usr/include, however it is not compatible yet and the build fails too.
Updated by alucryd almost 12 years ago
Okay, I have found a workaround:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-2.9 -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.9 -DSFML_INCLUDE_DIR=/usr/include/sfml1.6 -DCMAKE_CXX_FLAGS=" -I/usr/include/sfml1.6"
sed -i 's|-lsfml-network|-lsfml1.6-network|g' Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/link.txt
This allows dolphin to be built against the 1.6 libs. BTW, while trying to figure out what was wrong, I noticed SFML includes in 3 files were defined within "", and not <>. I have uploaded a git patch here: http://pastebin.com/WG04HvRM
Updated by alucryd almost 12 years ago
Nevermind that, I have had some reports (which I could confirm) that using 1.6 screws up the build, games will freeze as soon as 3D things show up (safety launch screen are fine). I'll stick with building 1.5 from the externals.
Updated by alucryd almost 12 years ago
Hmm weird thing is, it doesn't happen with all games. Super Mario Galaxy will hang right after the white info page, before the logo appears, SMG2 too, however Zelda Skyward Sword is absolutely fine.
Updated by Billiard26 over 11 years ago
- Status changed from New to Questionable
Is SFML still breaking its API every 3 days or can we safely switch to 2.0 RC now?
hmm, I'd rather replace SFML with some other lib, anyways. :/
Updated by alucryd over 11 years ago
I believe you can safely switch, but you're right, you'd probably be better off with sth else.
Updated by danialhorton about 11 years ago
If you choose to do so Billard, can you get in touch with bgK to organise continued joybus compatibility.
Updated by frostwork1 about 10 years ago
just wanted to emerge dolphin after a long time and noticed that this bug is still open. a quick google search brought be to this very own dolphin forum thread, where a friendly guy "WinterKnight" uploaded a patch which finally gets rid of the old sfml-1.6 stuff. would rock if this is going into upstream:
https://forums.dolphin-emu.org/Thread-patch-use-sfml-2-1
Updated by frostwork1 about 10 years ago
me again :}
I updated above patch to apply against 4.0.2 (haven't checked current master).
the 2nd patch adds sfml-system to the linked libraries, else I got several undefinded references. probably would be better to also look with cmake if sfml-system is available though.
with both patches applied 4.0.2 builds fine, the resulting binary seems to work
Updated by ZephyrSurfer almost 9 years ago
This should probably be labeled as fixed as Dolphin now uses SFML 2.1
Updated by JosJuice almost 9 years ago
- Status changed from Questionable to Fixed