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



  • 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


  • Moderators

    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?



  • 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"



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


  • Moderators

    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?



  • 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


  • Moderators

    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).



  • 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...



  • 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



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.