Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Error: Symbolic links not supported: disabling -L.

    General and Desktop
    4
    10
    1335
    Loading More Posts
    • 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
      Andy35 last edited by

      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!

      aha_1980 1 Reply Last reply Reply Quote 0
      • aha_1980
        aha_1980 Lifetime Qt Champion @Andy35 last edited by

        Hi @Andy35,

        please post the complete text of your compile output pane.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 0
        • A
          Andy35 last edited by

          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.
          
          aha_1980 1 Reply Last reply Reply Quote 0
          • aha_1980
            aha_1980 Lifetime Qt Champion @Andy35 last edited by

            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?

            Qt has to stay free or it will die.

            1 Reply Last reply Reply Quote 2
            • A
              Andy35 last edited by

              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.

              jsulm aha_1980 2 Replies Last reply Reply Quote 1
              • jsulm
                jsulm Lifetime Qt Champion @Andy35 last edited by

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

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

                1 Reply Last reply Reply Quote 2
                • aha_1980
                  aha_1980 Lifetime Qt Champion @Andy35 last edited by

                  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.

                  Qt has to stay free or it will die.

                  1 Reply Last reply Reply Quote 3
                  • A
                    Andy35 last edited by

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

                    jsulm 1 Reply Last reply Reply Quote 1
                    • jsulm
                      jsulm Lifetime Qt Champion @Andy35 last edited by

                      @Andy35 Have fun! :-)

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

                      1 Reply Last reply Reply Quote 1
                      • T
                        top-master last edited by

                        For future readers;
                        mingw's *make.exe seems to produce the error:
                        "Symbolic links not supported: disabling -L."

                        Maybe because trying to use clang instead of gcc.

                        Possible Solution: download and use jom.exe instead.

                        Example:

                        Simply backup *make.exe, then replace it with jom.exe
                        (by moving jom.exe to same folder, and renaming jom.exe file to same name).

                        I mean, they seem to support the same command-lines,
                        with the only difference that jom.exe does not crash with strange-message.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post