Last active
October 29, 2021 23:31
-
-
Save PoetaKodu/bc7b2120346c54fccd9a9c1f22392492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to properly setup SFML 2.4.2 (works on 2.0 and later) in Code::Blocks using GCC? | |
# NOTE: this document is updated to work with 2.5.0 which does not include libjpeg. | |
======================================================= | |
=== Project variables you need to set: | |
======================================================= | |
===================== | |
Name: "SFMLDirectory" | |
Usage: "$$(SFMLDirectory)" | |
Value: "C:\path\to\SFML\" <-- add backslash or slash at the end! | |
===================== | |
===================== | |
Name: "SFMLLibrariesStaticDebug" | |
Usage: "$$(SFMLLibrariesStaticDebug)" | |
Value: "-lsfml-graphics-s-d -lsfml-window-s-d -lsfml-audio-s-d -lsfml-network-s-d -lsfml-system-s-d" | |
===================== | |
===================== | |
Name: "SFMLLibrariesStaticRelease" | |
Usage: "$$(SFMLLibrariesStaticRelease)" | |
Value: "-lsfml-graphics-s -lsfml-window-s -lsfml-audio-s -lsfml-network-s -lsfml-system-s" | |
===================== | |
===================== | |
Name: "SFMLLibrariesDynamicDebug" | |
Usage: "$$(SFMLLibrariesDynamicDebug)" | |
Value: "-lsfml-graphics-d -lsfml-window-d -lsfml-audio-d -lsfml-network-d -lsfml-system-d" | |
===================== | |
===================== | |
Name: "SFMLLibrariesDynamicRelease" | |
Usage: "$$(SFMLLibrariesDynamicRelease)" | |
Value: "-lsfml-graphics -lsfml-window -lsfml-audio -lsfml-network -lsfml-system" | |
===================== | |
===================== | |
Name: "SFMLDependencies" | |
Usage: "$$(SFMLDependencies)" | |
Value: "-lfreetype -lglu32 -lopengl32 -lopenal32 -logg -lflac -lvorbis -lvorbisfile -lvorbisenc -lgdi32 -lwinmm -lws2_32" | |
===================== | |
// Project requires to link those libraries. Above macros will help you to easily link them. | |
// Do not add anything from following lists to the project. Do it using above macros. | |
===== Static Debug ===== | |
-lsfml-graphics-s-d | |
-lsfml-window-s-d | |
-lsfml-audio-s-d | |
-lsfml-network-s-d | |
-lsfml-system-s-d | |
====== Static release ======= | |
-lsfml-graphics-s | |
-lsfml-window-s | |
-lsfml-audio-s | |
-lsfml-network-s | |
-lsfml-system-s | |
======= Dynamic debug ======= | |
-lsfml-graphics-d | |
-lsfml-window-d | |
-lsfml-audio-d | |
-lsfml-network-d | |
-lsfml-system-d | |
====== Dynamic release ====== | |
-lsfml-graphics | |
-lsfml-window | |
-lsfml-audio | |
-lsfml-network | |
-lsfml-system | |
===== SFML Dependencies ===== | |
-lfreetype | |
-lglu32 | |
-lopengl32 | |
-lopenal32 | |
-logg | |
-lflac | |
-lvorbis | |
-lvorbisfile | |
-lvorbisenc | |
-lgdi32 | |
-lwinmm | |
-lws2_32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks man.