Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error: Symbolic links not supported: disabling -L.



  • Hi,
    Im a real noob, just installed the latest version of qt on Window 10, tried a fresh clean new project, as well as the examples and got this error right into my face:

    Symbolic links not supported: disabling -L.
    this linker was not configured to use sysroots
    linker command failed with exit code 1 (use -v to see invocation)
    

    I basically know nothing yet about qt and would really appreciate your help to get started.

    Thanks!


  • Lifetime Qt Champion

    Hi @Andy35,

    please post the complete text of your compile output pane.

    Regards



  • I hope, that is what you needed

    mingw32-make[1]: Leaving directory 'D:/qt/build-untitled-Desktop_Qt_5_12_3_MSVC2017_64bit-Debug'
    Makefile:38: recipe for target 'debug' failed
    mingw32-make[1]: *** [debug/untitled.exe] Error 1
    mingw32-make: *** [debug] Error 2
    05:53:57: The process "C:\TDM-GCC-64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project untitled (kit: Desktop Qt 5.12.3 MSVC2017 64bit)
    When executing step "Make"
    05:53:57: Elapsed time: 00:06.
    

  • Lifetime Qt Champion

    Hi @Andy35,

    yeah thats (at least a part of) the log.

    I can already see that you have likely a mixture of MSVC and MinGW compiler.

    So my question: which compiler do you want to use?



  • Sorry, didnt see I could scroll up in the compiler log

    05:53:51: Running steps for project untitled...
    05:53:51: Starting: "D:\qt\5.12.3\msvc2017_64\bin\qmake.exe" D:\qt\untitled\untitled.pro -spec win32-clang-g++ "CONFIG+=debug" "CONFIG+=qml_debug" "QMAKE_CFLAGS+=--sysroot="\""C:/TDM-GCC-64"\""" "QMAKE_CXXFLAGS+=--sysroot="\""C:/TDM-GCC-64"\""" "QMAKE_LFLAGS+=--sysroot="\""C:/TDM-GCC-64"\""" "QMAKE_CFLAGS+=--target=x86_64-w64-mingw32" "QMAKE_CXXFLAGS+=--target=x86_64-w64-mingw32" "QMAKE_LFLAGS+=--target=x86_64-w64-mingw32"
    05:53:52: The process "D:\qt\5.12.3\msvc2017_64\bin\qmake.exe" exited normally.
    05:53:52: Starting: "C:\TDM-GCC-64\bin\mingw32-make.exe" -f D:/qt/build-untitled-Desktop_Qt_5_12_3_MSVC2017_64bit-Debug/Makefile qmake_all
    mingw32-make: Nothing to be done for 'qmake_all'.
    05:53:52: The process "C:\TDM-GCC-64\bin\mingw32-make.exe" exited normally.
    05:53:52: Starting: "C:\TDM-GCC-64\bin\mingw32-make.exe" 
    mingw32-make: Symbolic links not supported: disabling -L.
    C:/TDM-GCC-64/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'D:/qt/build-untitled-Desktop_Qt_5_12_3_MSVC2017_64bit-Debug'
    clang++ --sysroot=C:/TDM-GCC-64 --target=x86_64-w64-mingw32 -Wl,-subsystem,windows -mthreads -o debug\untitled.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o  -LD:\qt\5.12.3\msvc2017_64\lib D:\qt\5.12.3\msvc2017_64\lib\Qt5Widgetsd.lib D:\qt\5.12.3\msvc2017_64\lib\Qt5Guid.lib D:\qt\5.12.3\msvc2017_64\lib\Qt5Cored.lib  -lmingw32 D:\qt\5.12.3\msvc2017_64\lib\qtmaind.lib -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.6.11-winx64\lib -LC:\Utils\postgresql\pgsql\lib -lshell32 
    C:\TDM-GCC-64\bin\ld.exe: this linker was not configured to use sysroots
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    Makefile.Debug:69: recipe for target 'debug/untitled.exe' failed
    mingw32-make[1]: Leaving directory 'D:/qt/build-untitled-Desktop_Qt_5_12_3_MSVC2017_64bit-Debug'
    Makefile:38: recipe for target 'debug' failed
    mingw32-make[1]: *** [debug/untitled.exe] Error 1
    mingw32-make: *** [debug] Error 2
    05:53:57: The process "C:\TDM-GCC-64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project untitled (kit: Desktop Qt 5.12.3 MSVC2017 64bit)
    When executing step "Make"
    05:53:57: Elapsed time: 00:06.
    

    I prefer OpenSource and FLOSS, so I guess its MinGW for me.


  • Lifetime Qt Champion

    @Andy35 said in Error: Symbolic links not supported: disabling -L.:

    I prefer OpenSource and FLOSS, so I guess its MinGW for me.

    Then install Qt for MinGW instead of Qt 5.12.3 MSVC2017 which is for Microsoft C++ compiler.


  • Lifetime Qt Champion

    Hi again @Andy35,

    thanks that's better.

    Now I see that you have even three systems combined: Clang, MinGW and MSVC.

    I'd recommend you a clean new installation.

    When selecting Qt, make sure to only select the MinGW version below 5.12.3 (choose 32 or 64 bit). If you just check 5.12.3, you will get all versions (MSVC, UWP, Android, etc.) Experience has shown that can lead to setup problems like yours.

    After that, it should work like a charm.

    Regards

    Also select the appropriate MinGW compiler from the Tools section.



  • Thanks guys, it works! Wanted to code in qt since 2010. Dream came true.


  • Lifetime Qt Champion

    @Andy35 Have fun! :-)


Log in to reply