Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QTCreator refuses to compile although everything looks fine

    Tools
    3
    4
    2231
    Loading More Posts
    • 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
      mpror last edited by

      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 Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        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 Reply Quote 0
        • M
          mpror last edited by

          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 Reply Quote 0
          • K
            koahnig last edited by

            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 Reply Quote 0
            • First post
              Last post