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. Static Qt build Console app linking libQt5xxxxx.a error
Forum Updated to NodeBB v4.3 + New Features

Static Qt build Console app linking libQt5xxxxx.a error

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 391 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.
  • A Offline
    A Offline
    anil_arise
    wrote on last edited by anil_arise
    #1

    I have installed static qt 5.9.1 successful with gcc.exe (x86_64-win32-sjlj-rev0, Built by MinGW-W64 project) 8.1.0 on Window 10 system

    After create simple project its search for libQt5Cored.a not for libQt5Core.a..

    ############# staticQtConsole.pro ###########

    QT += core
    QT -= gui

    CONFIG += c++11
    CONFIG -= app_bundle

    DEFINES += QT_DEPRECATED_WARNINGS

    SOURCES += main.cpp

    ###################### main.cpp ##########

    #include <QCoreApplication>
    #include <QDebug>

    int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv);
    qDebug()<<"staticQtConsole";

    return a.exec();
    

    }

    ############# Build results #############
    10:11:22: Running steps for project staticQtConsole...
    10:11:22: Starting: "C:\mingw64\bin\mingw32-make.exe" clean
    C:/mingw64/bin/mingw32-make -f Makefile.Debug clean
    mingw32-make[1]: Entering directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
    rm -f debug/moc_predefs.h
    rm -f debug/main.o
    mingw32-make[1]: Leaving directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
    C:/mingw64/bin/mingw32-make -f Makefile.Release clean
    mingw32-make[1]: Entering directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
    rm -f release/moc_predefs.h
    rm -f release/main.o
    mingw32-make[1]: Leaving directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
    10:11:26: The process "C:\mingw64\bin\mingw32-make.exe" exited normally.
    10:11:26: Configuration unchanged, skipping qmake step.
    10:11:26: Starting: "C:\mingw64\bin\mingw32-make.exe"
    C:/mingw64/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
    mingw32-make[1]: Leaving directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
    mingw32-make[1]: *** No rule to make target 'D:/StaticQt/Static/lib/libQt5Cored.a', needed by 'debug/staticQtConsole.exe'. Stop.
    mingw32-make: *** [Makefile:36: debug] Error 2
    10:11:27: The process "C:\mingw64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project staticQtConsole (kit: StaticQt)
    When executing step "Make"
    10:11:27: Elapsed time: 00:05.

    Is there anything missing to add or modification ?

    All static libs are correctly installed..
    StaticQt_libs.png

    jsulmJ 1 Reply Last reply
    0
    • A anil_arise

      I have installed static qt 5.9.1 successful with gcc.exe (x86_64-win32-sjlj-rev0, Built by MinGW-W64 project) 8.1.0 on Window 10 system

      After create simple project its search for libQt5Cored.a not for libQt5Core.a..

      ############# staticQtConsole.pro ###########

      QT += core
      QT -= gui

      CONFIG += c++11
      CONFIG -= app_bundle

      DEFINES += QT_DEPRECATED_WARNINGS

      SOURCES += main.cpp

      ###################### main.cpp ##########

      #include <QCoreApplication>
      #include <QDebug>

      int main(int argc, char *argv[])
      {
      QCoreApplication a(argc, argv);
      qDebug()<<"staticQtConsole";

      return a.exec();
      

      }

      ############# Build results #############
      10:11:22: Running steps for project staticQtConsole...
      10:11:22: Starting: "C:\mingw64\bin\mingw32-make.exe" clean
      C:/mingw64/bin/mingw32-make -f Makefile.Debug clean
      mingw32-make[1]: Entering directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
      rm -f debug/moc_predefs.h
      rm -f debug/main.o
      mingw32-make[1]: Leaving directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
      C:/mingw64/bin/mingw32-make -f Makefile.Release clean
      mingw32-make[1]: Entering directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
      rm -f release/moc_predefs.h
      rm -f release/main.o
      mingw32-make[1]: Leaving directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
      10:11:26: The process "C:\mingw64\bin\mingw32-make.exe" exited normally.
      10:11:26: Configuration unchanged, skipping qmake step.
      10:11:26: Starting: "C:\mingw64\bin\mingw32-make.exe"
      C:/mingw64/bin/mingw32-make -f Makefile.Debug
      mingw32-make[1]: Entering directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
      mingw32-make[1]: Leaving directory 'C:/Users/System3/Documents/build-staticQtConsole-StaticQt-Debug'
      mingw32-make[1]: *** No rule to make target 'D:/StaticQt/Static/lib/libQt5Cored.a', needed by 'debug/staticQtConsole.exe'. Stop.
      mingw32-make: *** [Makefile:36: debug] Error 2
      10:11:27: The process "C:\mingw64\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project staticQtConsole (kit: StaticQt)
      When executing step "Make"
      10:11:27: Elapsed time: 00:05.

      Is there anything missing to add or modification ?

      All static libs are correctly installed..
      StaticQt_libs.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @anil_arise said in Static Qt build Console app linking libQt5xxxxx.a error:

      After create simple project its search for libQt5Cored.a not for libQt5Core.a

      Apparently you're building your project in debug mode. Try to build in release mode.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 2 Replies Last reply
      2
      • jsulmJ jsulm

        @anil_arise said in Static Qt build Console app linking libQt5xxxxx.a error:

        After create simple project its search for libQt5Cored.a not for libQt5Core.a

        Apparently you're building your project in debug mode. Try to build in release mode.

        A Offline
        A Offline
        anil_arise
        wrote on last edited by
        #3

        @jsulm
        I have switched from debug to edit mode then rebuild but result was same.

        StaticQterror002.png

        jsulmJ 1 Reply Last reply
        0
        • A anil_arise

          @jsulm
          I have switched from debug to edit mode then rebuild but result was same.

          StaticQterror002.png

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @anil_arise said in Static Qt build Console app linking libQt5xxxxx.a error:

          I have switched from debug to edit mode

          This is not what I mean!
          You can build an application either in debug or release mode, has nothing to do with Edit.
          So, please on the left bottom side (bellow "Projects") click on your project name and select "Release" there.
          Note: without debug versions of Qt libraries (they have a trailing "d" in their names) you will not be able to build your project in debug mode to debug it.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @anil_arise said in Static Qt build Console app linking libQt5xxxxx.a error:

            After create simple project its search for libQt5Cored.a not for libQt5Core.a

            Apparently you're building your project in debug mode. Try to build in release mode.

            A Offline
            A Offline
            anil_arise
            wrote on last edited by
            #5

            @jsulm I got it and it's Resolved ,
            Thank you

            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