Everything is working fine so far in CodeBlocks. Thanks again.
Just to go through the steps in case someone else lands on this page. Here is how I had to install SFML and get it working with CodeBlocks.
1.Download the src from the main download page:
http://www.sfml-dev.org/download.php2make sure you have all dependencies installed. Best way to check on Fedora is by running the following command in terminal
sudo yum deplist sfml
Just yum install the provider name in the list
You will also need to install cmake. You can install cmake-gui. I found it helpful to use.
Alternatively if you are on Ubuntu, to list all the dependencies, you can run:
apt-get build-dep libsfml
3Unzip that SFML-master file you just downloaded in step 1. Create a directory called sfml-build or whatever name you wish to call it. I used the cmake-gui as I found it a little easy for me to use. So in Terminal run this:
cmake-gui
4When the cmake window pops up you will have to pick two destinations to work with.
- Where is the source code? This is the SFML-master folder that was unzipped earlier
- Where to build the binaries? This is the sfml-build directory you had created earlier
5Click on the configure button and pick your IDE. For me it was CodeBlocks - Unix Makefiles
6Click on the generate button to run the process.
If you see any red errors make sure you have all the dependencies installed. The errors will give you hints to which ones you missed as I missed a few.7Once it has completed jump into the terminal again and cd into the sfml-build director and run these commands:
make
sudo make install
Setting up SFML in CodeBlocks8You can basically follow the guide on the SFML website at this point here:
http://sfml-dev.org/tutorials/2.0/start-cb.phpI hope that helps anyone else that may have the same issues as me and thanks again LaurenT for the quick responses.