Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Thaddeous

Pages: [1]
1
Yep I just had to play with the properties of the project to get it working. thank you!

2
Graphics / Weird compile error involving "/SFML/lib/libsfml-graphics-s.a"
« on: January 17, 2014, 09:16:17 pm »
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:
Quote
"/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:
Quote
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..

Pages: [1]