I'm using netbeans IDE 7.4 and CMake 2.8.12.1, and I'm using C++11
Here's my code:
/*
* File: main.cpp
* Author: User
*
* Created on January 16, 2014, 11:47 PM
*/
#define SFML_STATIC
#include <SFML/Graphics.hpp>
using namespace sf;
/*
*
*/
auto main () -> int
{
RenderWindow window (VideoMode(200,200), "SFML Works!");
CircleShape shape(100.f);
shape.setFillColor(Color::Green);
while(window.isOpen())
{
Event event;
while(window.pollEvent(event))
if(event.type == Event::Closed)
window.close();
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
And here is my compile error:
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/c/Users/User/Documents/NetBeansProjects/CppApplication_1'
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Release.mk dist/Release/MinGW-Windows/cppapplication_1.exe
make.exe[2]: Entering directory `/c/Users/User/Documents/NetBeansProjects/CppApplication_1'
make.exe[2]: *** No rule to make target `../../../../../Program Files \(x86\)/SFML/lib/libsfml-graphics-s.a', needed by `dist/Release/MinGW-Windows/cppapplication_1.exe'. Stop.
make.exe[2]: Leaving directory `/c/Users/User/Documents/NetBeansProjects/CppApplication_1'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/c/Users/User/Documents/NetBeansProjects/CppApplication_1'
make.exe": *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 2s)
How do i make this exe file? the one here:
make.exe[2]: *** No rule to make target `../../../../../Program Files \(x86\)/SFML/lib/libsfml-graphics-s.a', needed by `dist/Release/MinGW-Windows/cppapplication_1.exe'. Stop.
It should be stated that Im new to SFML and CMake..