Dear readers,
I reinstalled my computer and reinstalled Qt and SFML.
I keep getting the error as described in the title when saving and running the program.
My .pro file at this moment:
QT += core gui
TARGET = Crystallibrium
TEMPLATE = app
SOURCES += main.cpp
HEADERS +=
FORMS +=
LIBS += -L"C:\Program Files (x86)\SFML\lib" -lsfml-window -lsfml-graphics -lsfml-system
INCLUDEPATH = "C:\Program Files (x86)\SFML\include"
#include <SFML/Graphics.hpp>
int main()
{
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
// Start the game loop
while (window.isOpen())
{
// Process events
sf::Event event;
while (window.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
window.close();
}
// Clear screen
window.clear();
// Update the window
window.display();
}
return 0;
}
The error(s) I am receiving:
:-1: error: LNK1104: cannot open file 'sfml-window.lib'
21:30:25: Running build steps for project Crystallibrium...
21:30:25: Configuration unchanged, skipping qmake step.
21:30:25: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
LINK : fatal error LNK1104: cannot open file 'sfml-window.lib'
link /LIBPATH:"c:\QtSDK\Desktop\Qt\4.8.1\msvc2010\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\Crystallibrium.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\Crystallibrium.exe @C:\Users\Angelo\AppData\Local\Temp\Crystallibrium.exe.4392.0.jom
C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug
jom: C:\Users\Angelo\Desktop\Projecten\Crystallibrium\Crystallibrium-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\Makefile.Debug [debug\Crystallibrium.exe] Error 1104
jom 1.0.8 - empower your cores
jom: C:\Users\Angelo\Desktop\Projecten\Crystallibrium\Crystallibrium-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\Makefile [debug] Error 2
21:30:25: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project Crystallibrium (target: Desktop)
When executing build step 'Make'
The files in my lib/ folder are called (example):
libsfml-window.a
libsfml-window.a
....
....
The files in my include/sfml/ folder are called (example):
Graphics
System
....
....
I am using the newest Qt SDK, running on Windows 7 Professional 64-bit.
Hope someone can help me out :)