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. Building Qt5 source code fails 'No suitable compiler found in PATH. Aborting.'
Forum Updated to NodeBB v4.3 + New Features

Building Qt5 source code fails 'No suitable compiler found in PATH. Aborting.'

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 311 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.
  • D Offline
    D Offline
    Dongha Kang
    wrote on last edited by
    #1

    Hi,

    I need older version of Qt5 (5.6.0) and I keep getting the same error. This is my step (I am trying to be super specific so here I go).

    1. I use Windows 10

    2. I have MSVC2015 (I need this version..). So all of these, I worked in Developer Command Prompt for VS2015

    3. clone qt repository ... fetched it, perl init-repository worked perfectly in git bash...

    4. When I run ..\qt5\configure -developer-build -opensource -nomake tests -nomake example I get the error saying

    C:\Users\DELL\Desktop\qt5-build>..\qt5\configure
    + cd qtbase
    + C:\Users\DELL\Desktop\qt5\qtbase\configure.bat -top-level
    Please wait while bootstrapping configure ...
    <srcbase> = C:/Users/DELL/Desktop/qt5/qtbase
    <outbase> = C:/Users/DELL/Desktop/qt5-build/qtbase
    No suitable compiler found in PATH. Aborting.
    
    1. Here is my PATH
    >> echo %PATH%
    C:\Perl64\bin;C:\Users\DELL\AppData\Roaming\ActiveState\bin;C:\Program Files\dotnet\;C:\Users\DELL\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Users\DELL\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\DELL\AppData\Local\Programs\Python\Python39;C:\Users\DELL\AppData\Local\atom\bin;C:\Users\DELL\.dotnet\tools;C:\Program Files (x86)\Windows Kits\10\bin;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\CMake\bin;
    

    C:\Perl64\bin;
    C:\Users\DELL\AppData\Roaming\ActiveState\bin;
    C:\Program Files\dotnet;
    C:\Users\DELL.dnx\bin;
    C:\Program Files\Microsoft DNX\Dnvm;
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;
    C:\Users\DELL\AppData\Local\Programs\Python\Python39\Scripts;
    C:\Users\DELL\AppData\Local\Programs\Python\Python39;
    C:\Users\DELL\AppData\Local\atom\bin;
    C:\Users\DELL.dotnet\tools;
    C:\Program Files (x86)\Windows Kits\10\bin;
    C:\Program Files\Git\bin;C:\Program Files\Git\cmd;
    C:\Windows\System32\WindowsPowerShell\v1.0;
    C:\Program Files\CMake\bin;

    I have been struggling for a while.. If someone can help me with this. That will be fantastic ;(

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you checkout the corresponding branch ?

      In any case, you should rather start from the archive.

      You can then follow the build instructions from the documentation.

      In any case, even if locked to the 5.6 series, I would recommend to use the latest minor release available for it rather than the .0 release.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alazark
        wrote on last edited by
        #3

        Running into the same issue.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          The Microsoft C++ compiler (cl.exe IIRC) is in none of the directories in the OP's system path. It seems the OP did use the VS2015 developer command prompt, which does expose the compiler if present. I think that at some point Microsoft decided that C/C++ compilers would not be installed by default with Visual Studio, so that is possibly the cause. If you have a full VS then it should be an option you can add.

          If are not blessed with VS then this is another way to get the compilers:
          https://visualstudio.microsoft.com/visual-cpp-build-tools/

          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