Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Build problem "cannot find -lqtmaind" and so on
Forum Updated to NodeBB v4.3 + New Features

[Solved] Build problem "cannot find -lqtmaind" and so on

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 3 Posters 12.3k 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.
  • T Offline
    T Offline
    telcy
    wrote on last edited by
    #1

    Hello coders,

    Thats my first problem which I cant handle myself. I used google and didn't find a topic which is similar to this case.

    So I decided to create one.

    My Problem is that i cant compile my project anymore. It gone well for months.. and now it won't work.

    whole compile log:

    bq. mingw32-make[1]: Entering directory 'C:/Users/Jascha/Desktop/MainSVN_3/'
    Makefile.Debug:2436: warning: overriding recipe for target 'debug/Sha1.o'
    Makefile.Debug:2433: warning: ignoring old recipe for target 'debug/Sha1.o'
    g++ -Wl,-subsystem,windows -mthreads -o debug/
    .exe object_script..Debug -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmaind lua5.1.lib FASM.OBJ CrashRpt1402.lib "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\comctl32.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\winmm.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Comdlg32.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Wininet.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Psapi.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Kernel32.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Gdi32.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Ole32.lib" "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\oleaut32.lib " "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\uuid.lib" -lws2_32 zdll.lib -LC:\Qt\Qt5.2.1\5.2.1\mingw48_32\lib -lQt5Widgetsd -lQt5Xmld -lQt5Networkd -lQt5Sqld -lQt5Guid -lQt5Cored debug/_res.o
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lqtmaind
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Widgetsd
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Xmld
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Networkd
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Sqld
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Guid
    c:/qt/qt5.2.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Cored
    collect2.exe: error: ld returned 1 exit status
    Makefile.Debug:156: recipe for target 'debug/.exe' failed
    mingw32-make[1]: Leaving directory 'C:/Users/Jascha/Desktop/MainSVN_3/
    '
    makefile:34: recipe for target 'debug' failed
    mingw32-make[1]: *** [debug/***.exe] Error 1
    mingw32-make: *** [debug] Error 2
    22:06:30: The process "C:\Qt\Qt5.2.1\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project *** (kit: Qt 5.2.1)
    When executing step 'Make'
    22:06:30: Elapsed time: 00:02.

    in addition:
    reinstalling of qt does not fix the problem

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

      Hi, and welcome to the Qt Dev Net!

      [quote]
      Makefile.Debug:2436: warning: overriding recipe for target ‘debug/Sha1.o’
      [/quote]I suspect that your Makefile is corrupted.

      What happens if you delete your build tree and try again? If it still doesn't work, could you provide the contents of your .pro file?

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        telcy
        wrote on last edited by
        #3

        Thank you for the fast response!
        Deleted makefiles and cleared debug/release folder.

        Problem still occurs :/

        my .pro file:

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

        Project created by QtCreator 2014-01-08T21:47:36

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

        QT += core gui
        QT += widgets
        QT += sql
        QT += network
        QT += xml

        CONFIG += c++11

        TARGET = Qt5***
        TEMPLATE = app

        TRANSLATIONS = gui.ts

        SOURCES += main.cpp
        mainwindow.cpp
        settingsdialog.cpp
        loginboxdialog.cpp
        Sha1.cpp
        Sha1.cpp
        Base64_RC4.cpp
        aes.cpp
        Recast/DetourObstacleAvoidance.cpp
        Recast/DetourNode.cpp
        Recast/DetourNavMeshQuery.cpp
        Recast/DetourNavMeshBuilder.cpp
        Recast/DetourNavMesh.cpp
        Recast/DetourCommon.cpp
        Recast/DetourAlloc.cpp
        Recast/DarkPatherPather.cpp
        md5.cpp
        selectcharwindow.cpp
        selectlang.cpp
        debugdialog.cpp
        addaccountdialog.cpp
        debuggdialog.cpp
        professionhelper.cpp
        simplecrypt.cpp
        hacks.cpp
        drawoverlay.cpp
        hgui.cpp
        hhotkeymanager.cpp

        HEADERS += mainwindow.h
        settingsdialog.h
        loginboxdialog.h
        LogClass.h
        BotStartManager.h
        WindowsFunctions.h
        TcpBotEngine.h
        StringBotEngine.h
        Sha1.h
        WowManager.h
        WowDatabaseManager.h
        WowConstatns.h
        WindowsFunctions.h
        winbgim.h
        WaypointManager.h
        Sha1.h
        SecurityMgr.h
        pather.h
        Offsets.h
        NavMeshQueryCallback.h
        MemoryBotEngine.h
        md5.h
        LuaManager.h
        Bots.h
        Base64_RC4.h
        aes.h
        lua/lualib.h
        lua/lua.h
        lua/lauxlib.h
        Recast/DetourStatus.h
        Recast/DetourObstacleAvoidance.h
        Recast/DetourNode.h
        Recast/DetourNavMeshQuery.h
        Recast/DetourNavMeshBuilder.h
        Recast/DetourNavMesh.h
        Recast/DetourCommon.h
        Recast/DetourAssert.h
        Recast/DetourAlloc.h
        Recast/DarkPatherPather.h
        selectcharwindow.h
        selectlang.h
        debugdialog.h
        addaccountdialog.h
        debuggdialog.h
        professionhelper.h
        simplecrypt.h
        hacks.h
        VirtualizerSDK.h
        drawoverlay.h
        RouteGenerator.h
        CrashRpt.h
        hgui.h
        zlib.h
        zconf.h
        zCompress.h
        hhotkeymanager.h

        FORMS += mainwindow.ui
        settingsdialog.ui
        loginboxdialog.ui
        selectcharwindow.ui
        selectlang.ui
        debugdialog.ui
        addaccountdialog.ui
        debuggdialog.ui
        professionhelper.ui
        hacks.ui
        drawoverlay.ui

        RC_FILE = QtCrawler.rc

        RESOURCES +=
        CrawlerResource.qrc

        LIBS += "lua5.1.lib"
        LIBS += "FASM.OBJ"
        LIBS += "CrashRpt1402.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\comctl32.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\winmm.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Comdlg32.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Wininet.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Psapi.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Kernel32.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Gdi32.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Ole32.lib"
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\oleaut32.lib "
        LIBS += "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\uuid.lib"
        LIBS += -lws2_32
        LIBS += "zdll.lib"

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Maybe those files like Qt5Cored.prl have gone missing, check that they're still around in that directory C:\Qt\Qt5.2.1\5.2.1\mingw48_32\lib?

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

            Hi,

            [quote author="JKSH" date="1393290225"][quote]
            Makefile.Debug:2436: warning: overriding recipe for target ‘debug/Sha1.o’
            [/quote]I suspect that your Makefile is corrupted.[/quote]Ok, your Makefile wasn't corrupted, but your .pro file lists Sha1.h and Sha1.cpp twice. Remove one of them.

            [quote author="telcy" date="1393371134"]
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\comctl32.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\winmm.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Comdlg32.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Wininet.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Psapi.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Kernel32.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Gdi32.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Ole32.lib”
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\oleaut32.lib “
            LIBS += “C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\uuid.lib”[/quote]You shouldn't need to link these explicitly. Why are they here? (I'm not sure if they are even compatible with MinGW/GCC, since a Windows Kit is MSVC.)

            Did you change your compiler recently?

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

            1 Reply Last reply
            0
            • T Offline
              T Offline
              telcy
              wrote on last edited by
              #6

              Thank you both.. but cant fix it.

              1.) .prl files in \lib do exist all
              2.) removed one Sha1 from list

              I did not change compiler.

              After several attemps of reinstalling and tries I have no clue what goes wrong.

              Could someone help me via teamviewer? I would pay if someone could fix it for me.

              thanks,
              telcy

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7
                1. What happens if you remove the Windows Kits libraries from your .pro file? (Remember to run qmake after you change the .pro file)

                2. Are you using Qt Creator to compile? If not, use Creator.

                3. Do you have MinGW/MSYS in your PATH? If so, remove them (Qt Creator doesn't need them in the PATH, and having them there can cause problems).

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

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #8

                  Just a quick check, you are using Qt 5.2.1 which was released February 5th but your .PRO file was created January 8th, means it was created using an earlier version of Qt, I'm guessing 5.2?
                  And if you just copied the .prl files in \lib from 5.2 to 5.2.1 (without regenerating them) you will get errors, I think :-) ??

                  Anyway, you could check one, like Qt5Cored.prl, what version is QMAKE_PRL_VERSION...

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    telcy
                    wrote on last edited by
                    #9

                    Thank you for the answers. I was a little bit busy last days.

                    Removing win kits just throw some other errors.

                    Yes, I'm using QT Creator.

                    MinGW is not in my PATH variable.

                    Yes I used 5.2.1 because I thought it will fix the problem.
                    I have a backup and running 5.2 again.

                    A freelancer tried helping me via teamviewer but cant fix the issue.

                    Anyone has time to help me? It seems to be a very strange problem and only some skilled devs can find the solution.

                    Regards,
                    telcy

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      telcy
                      wrote on last edited by
                      #10

                      Just for other people:

                      Fixed it as follows...

                      Copied all windows kits libs from working computer to the project location and removed path.

                      added
                      LIBS += “comctl32.lib”
                      ... and so on

                      That does work for me.

                      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