Qt Forum

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

    No Rule to make target Error

    General and Desktop
    error new platform
    2
    5
    7446
    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.
    • E
      Ericode last edited by Ericode

      Hello, I am moving my project over from being developed on a windows 8 computer to a windows 7 64 bit computer. When I do, I am receiving the error

      ":-1: error: No rule to make target 'C:/Qt/Qt5.4.1new/5.4/Src/qtbase/lib/libQt5Widgetsd.a', needed by 'debug\GUI.exe'. Stop.".
      (The name of the application is GUI, the entire path to the project has no spaces or unusual characters)
      I have deleted my GUI.pro.user when I moved it to the new computer.
      If you need any other files or information please let me know. Thanks.
      The GUI.pro looks like this:
      <pre><code>
      #-------------------------------------------------

      Project created by QtCreator 2015-04-11T18:13:33

      #-------------------------------------------------

      QT += core gui sql

      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

      TARGET = GUI
      TEMPLATE = app

      SOURCES += main.cpp
      mainwindow.cpp
      mydialog.cpp

      HEADERS += mainwindow.h
      mydialog.h

      FORMS += mainwindow.ui
      mydialog.ui
      </pre></code>

      Also, what is the correct way of putting this in a code block?

      1 Reply Last reply Reply Quote 0
      • M
        mcosta last edited by

        Hi and welcome to devnet,

        the error message says there is a missing library. Have you installed the right Qt version on the new machine??

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        E 1 Reply Last reply Reply Quote 0
        • E
          Ericode @mcosta last edited by Ericode

          @mcosta What I did was I installed the same version but I installed a static build. The application I developed was on a non static build. Would this make a difference?

          1 Reply Last reply Reply Quote 0
          • M
            mcosta last edited by

            have you built also the DEBUG version of Qt? The missing library is a libQt5**d.a

            Once your problem is solved don't forget to:

            • Mark the thread as SOLVED using the Topic Tool menu
            • Vote up the answer(s) that helped you to solve the issue

            You can embed images using (http://imgur.com/) or (http://postimage.org/)

            E 1 Reply Last reply Reply Quote 0
            • E
              Ericode @mcosta last edited by

              @mcosta I am not sure if I have but I built it with the command line "configure -static -release -opengl desktop -opensource" and after that I used "mingw32-make sub-scr"

              1 Reply Last reply Reply Quote 0
              • First post
                Last post