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

Author Topic: Error while installing under QTCreator  (Read 1751 times)

0 Members and 1 Guest are viewing this topic.

Bedda

  • Newbie
  • *
  • Posts: 7
    • View Profile
Error while installing under QTCreator
« on: March 30, 2020, 03:36:54 pm »
Hello
Im new to SFML and C++ und try to Link the Library with QTCreator.
I use this tutorial:
https://github.com/SFML/SFML/wiki/Tutorial%3A-Link-SFML-with-Qt-Creator
the CompilerVersion fix to the  SFML Verion.
But when i try to compile a little test.
QTCreator say this to me:

C:\Qt\5.13.1\mingw73_64\bin\qmake.exe -o Makefile ..\SFML-Test\SFML-Test.pro -spec win32-g++ "CONFIG+=qtquickcompiler"
/usr/bin/sh: -c: line 3: syntax error: unexpected end of file
mingw32-make: *** [Makefile:248: Makefile] Error 258
14:47:27: Der Prozess "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" wurde mit dem Rückgabewert 2 beendet.
Fehler beim Erstellen/Deployment des Projekts SFML-Test (Kit: Desktop Qt 5.13.1 MinGW 64-bit)
Bei der Ausführung von Schritt "Make"

I dont know what to do next...
Please,can you help me ??
Thanks

Bedda

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Error while installing under QTCreator
« Reply #1 on: August 30, 2020, 06:09:53 pm »
Problem solved...

Bedda

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Error while installing under QTCreator
« Reply #2 on: August 30, 2020, 06:32:45 pm »
For all who have the same problems with SFML under QtCreator (Win)
here is my ***.pro File

My mistake was thaht i make a blank between LC in the Libs += -LC Collum...
Hope i can help...

TEMPLATE = app
CONFIG += console c++14
CONFIG -= app_bundle
CONFIG -= qt
TARGET +=SFML-Test
SOURCES += \
        Game.cpp \
        main.cpp
LIBS += -LC:\Users\Peter\Documents\C++\SFML-2.5.1-32-bit\SFML-2.5.1/lib
LIBS += -LC:\Users\Peter\Documents\C++\SFML-2.5.1-32-bit\SFML-2.5.1/bin
CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-main -lsfml-network -lsfml-window -lsfml-system
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-main-d -lsfml-network-d -lsfml-window -lsfml-system-d


INCLUDEPATH += C:\Users\Peter\Documents\C++\SFML-2.5.1-32-bit\SFML-2.5.1/include
DEPENDPATH += C:\Users\Peter\Documents\C++\SFML-2.5.1-32-bit\SFML-2.5.1/include

HEADERS += \
    Game.h