Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16762

Support ICC on windows

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P5: Not important
    • None
    • Qt Creator 4.1.0-rc1
    • Windows 7 x64, Intel Compiler 2016 Update 3, CMAKE, Ninja

    Description

      The Intel compiler requires a compilervars.bat script with arguments to be run, similar to the MS compilers, in order to have a working environment. There doesn't seem to be a way to configure this through Qt Creator when creating a custom compiler.

      If it helps, I've attached my current compiler settings and the output of a simple CMAKE run showing the issue. You can replicate this outside of Qt Creator by using a standard cmd window and then resolve it by simply running the Intel compilervars.bat to set the correct environment.

      Running "C:\Program Files (x86)\CMake\bin\cmake.exe C:/Users/developer/Documents/Tutorial/Step1 "-GCodeBlocks - Ninja" "-DCMAKE_CXX_COMPILER:STRING=C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2016.3.207/windows/bin/intel64/icl.exe" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/4.8.7-x64/bin/qmake.exe"" in C:\Users\developer\AppData\Local\Temp\qtc-cmake-svxJgW.
      -- The CXX compiler identification is Intel 16.0.3.20160415
      -- Check for working CXX compiler using: Ninja
      -- Check for working CXX compiler using: Ninja -- broken
      CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/CMakeTestCXXCompiler.cmake:54 (message):
        The C++ compiler "C:/Program Files
        (x86)/IntelSWTools/compilers_and_libraries_2016.3.207/windows/bin/intel64/icl.exe"
        is not able to compile a simple test program.
      
        It fails with the following output:
      
         Change Dir: C:/Users/developer/AppData/Local/Temp/qtc-cmake-svxJgW/CMakeFiles/CMakeTmp
      
        
      
        Run Build Command:"C:/Users/developer/Downloads/ninja-win/ninja.exe"
        "cmTC_291ba"
      
        [1/2] Building CXX object
        CMakeFiles\cmTC_291ba.dir\testCXXCompiler.cxx.obj
      
        warning #31001: The dll for reading and writing the pdb (for example,
        mspdb110.dll) could not be found on your path.  This is usually a
        configuration error.  Compilation will continue using /Z7 instead of /Zi,
        but expect a similar error when you link your program.
      
        [2/2] Linking CXX executable cmTC_291ba.exe
      
        FAILED: cmTC_291ba.exe 
      
        cmd.exe /C "cd .  && "C:\Program Files (x86)\CMake\bin\cmake.exe" -E
        vs_link_exe --intdir=CMakeFiles\cmTC_291ba.dir --manifests -- xilink
        /nologo CMakeFiles\cmTC_291ba.dir\testCXXCompiler.cxx.obj
        /out:cmTC_291ba.exe /implib:cmTC_291ba.lib /pdb:cmTC_291ba.pdb /version:0.0
        /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib
        gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
        comdlg32.lib advapi32.lib && cd ."
      
        RC Pass 1 failed to run.
      
      
        ninja: build stopped: subcommand failed.
      
        
      
        
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:2 (project)
      
      
      -- Configuring incomplete, errors occurred!
      See also "C:/Users/developer/AppData/Local/Temp/qtc-cmake-svxJgW/CMakeFiles/CMakeOutput.log".
      See also "C:/Users/developer/AppData/Local/Temp/qtc-cmake-svxJgW/CMakeFiles/CMakeError.log".
      *** cmake process exited with exit code 1.
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            lum Luke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes