1
General / Re: Warning libGLEW.so.1.5 needed.....
« on: November 29, 2013, 01:28:58 pm »
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.php
2
make sure you have all dependencies installed. Best way to check on Fedora is by running the following command in terminal
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:
3
Unzip 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:
4
When the cmake window pops up you will have to pick two destinations to work with.
5
Click on the configure button and pick your IDE. For me it was CodeBlocks - Unix Makefiles
6
Click 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.
7
Once it has completed jump into the terminal again and cd into the sfml-build director and run these commands:
Setting up SFML in CodeBlocks
8
You can basically follow the guide on the SFML website at this point here:
http://sfml-dev.org/tutorials/2.0/start-cb.php
I hope that helps anyone else that may have the same issues as me and thanks again LaurenT for the quick responses.
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.php
2
make 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 listYou 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
3
Unzip 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
4
When 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
5
Click on the configure button and pick your IDE. For me it was CodeBlocks - Unix Makefiles
6
Click 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.
7
Once it has completed jump into the terminal again and cd into the sfml-build director and run these commands:
make
sudo make install
sudo make install
Setting up SFML in CodeBlocks
8
You can basically follow the guide on the SFML website at this point here:
http://sfml-dev.org/tutorials/2.0/start-cb.php
I hope that helps anyone else that may have the same issues as me and thanks again LaurenT for the quick responses.