Hm I did not need to install libudev-dev
You , didn't need to , because you are not using the development version of 2.1 , it has changed recently , so you may specify that if someone downloads the source from github , then they might have to install udev. (although it's an easy guess , cmake error clearly says udev is not installed ...)
For the library path, I had no problem with linking although my sfml libs reside in /usr/local/lib. Maybe Code::Blocks 13.11 added it to the standard search path. Will check it also.
That's because you are directly specifying the libraries by their full path.
What I mean is using the linker you can specify
-lsfml-<module>[-d] to gcc , so that you compile it as it's given in the official tutorial or from command line without caring where exactly are those shared libraries.
Or maybe in 14.04 /usr/local/lib is added to ld search path.
Well , can you compile this SFML Hello World example :
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
using these commands on a terminal :
$ gcc -o foo foo.cpp -lsfml-graphics -lsfml-system
And yeah... I forgot to say
" Great work Sonkun !!!"