How to configure "CodeLite" IDE for being able to develop in C++ with the library SFML?
Here below is my complete solution...
ENJOY
This complete solution is described within Windows but this also works in Linux
https://www.sfml-dev.org/download/sfml/2.5.1/
Pay attention to :
The compiler and the version of SFML have to match 100%!!!
From top menu "Settings/Build Settings..."
In "Compiler" section ...
C:\SFML-2.5.1\include
SFML_STATIC
7) Linker settings (within the project)
In "Linker" section ...
C:\SFML-2.5.1\lib
sfml-graphics
sfml-window
sfml-audio
sfml-network
sfml-system
#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;
}
This will not compile cause you have to copy/paste some .dll files into the compilation folder
INFO : some additionnal .dll files would be needed (eventually some from /bin of the compiler directory)
If it works...