Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTCreator refuses to compile although everything looks fine
Forum Updated to NodeBB v4.3 + New Features

QTCreator refuses to compile although everything looks fine

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mpror
    wrote on last edited by
    #1

    Hi everybody,

    At first I installed the precompiled qt5 binaries, but since I didn't want to use the vs-compiler I built qt5 with mingw myself (thanks to http://qt-project.org/wiki/Building_Qt_5_from_Git ) and everything looks fine.
    "screenshot1":http://img802.imageshack.us/img802/7927/qt1.png
    I can add the binaries I compiled to a new kit and add mingw as compiler. No error is shown in the options tab.
    "screenshot2":http://img831.imageshack.us/img831/6227/qt2.png
    But when I try to compile a project I get an error:

    :-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.

    What am I doing wrong?

    Best Regards and thanks in advance,
    mpror

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Click on the "Projects" button on the left (below "Debug", above "Analyze")

      Under "Build & Run", click "Add Kit" and add your "QT5 mingw" kit

      Click on the "Test \ Release" button on the lower left (above the green arrow), and make sure you're using the "QT5 mingw" kit

      Try compiling again

      Does that work?

      (P.S. It's "Qt", not "QT" -- "QT" stands for QuickTime :) )

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mpror
        wrote on last edited by
        #3

        Thank you, this works now :)

        My new problem is, that the Makefile is now created using \ where a / is needed

        e.g.:
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\mainwindow.o ..\test\mainwindow.cpp

        works when I change it to

        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/mainwindow.o ../test/mainwindow.cpp

        still looking for where I can change this setting (or whatever it is)

        mpror

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Why is the back slash '' a problem in the makefile?
          The back slash is used traditionally on windows, while linux is using the forward slash. Noadays you may use the back and the forward slash on windows. For qmake you have to use the forward slash, since the backward slash has a special meaning (line continuation). Since qmake is generating the makefile it is ok. For changing to a linux system it is most likely required to regenerate the makefiles anyhow. There they should have the forward slashes.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved