Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. No Rule to make target Error
QtWS25 Last Chance

No Rule to make target Error

Scheduled Pinned Locked Moved General and Desktop
errornew platform
5 Posts 2 Posters 7.9k Views
  • 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 Offline
    E Offline
    Ericode
    wrote on last edited by Ericode
    #1

    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
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      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
      0
      • M mcosta

        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??

        E Offline
        E Offline
        Ericode
        wrote on last edited by Ericode
        #3

        @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
        0
        • M Offline
          M Offline
          mcosta
          wrote on last edited by
          #4

          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
          0
          • M mcosta

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

            E Offline
            E Offline
            Ericode
            wrote on last edited by
            #5

            @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
            0

            • Login

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