Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. error: Cannot run compiler 'icpc'. Output:

error: Cannot run compiler 'icpc'. Output:

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 1.1k Views
  • 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.
  • S Offline
    S Offline
    SoheilSabz
    wrote on 11 Jun 2019, 07:23 last edited by
    #1

    Hi:

    reference to my previous question about cross compilation, i could not to do this work with my raspberry Zero (via USB OTG Connection to my PC LINUX OS), so i decide to compile the program in my Linux PC, i installed again the QT by this way:

    cd /home/so/Desktop/trash/3
    wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/ qt-everywhere-src-5.12.3.tar.xz
        tar xvf  qt-everywhere-src-5.12.3.tar.xz
        cd  qt-everywhere-src-5.12.3
    ./configure --prefix=/home/so/Program_Files/Qt_v5_Desktop_Kit
        make
        make install
    

    SO when i changed the desktop kit setting in my Qt Creator settings you can see here:

    my Qt Creator settings

    but now with project like this:

    #-------------------------------------------------
    #
    # Project created by QtCreator 2019-06-09T18:56:52
    #
    #-------------------------------------------------
    
    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = new_sd
    TEMPLATE = app
    
    # The following define makes your compiler emit warnings if you use
    # any feature of Qt which has been marked as deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if you use deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    CONFIG += c++11
    
    SOURCES += \
            main.cpp \
            mainwindow.cpp
    
    HEADERS += \
            mainwindow.h
    
    FORMS += \
            mainwindow.ui
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    #else: unix:!android: target.path = /home/pi/Desktop/$${TARGET}/bin
    else: unix:!android: target.path = /home/so/Desktop/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    

    when i debug it in my linux pc desktop kit i get this error:

    :-1: error: Cannot run compiler 'icpc'. Output:
    

    I get the icpc is one from this site:

    Linux / MacOS: icc ( C ) icpc (C++) ifort (Fortran)
    

    I have searched the icpc file via my /home/so folder but i don't find any things. So have can i solve this problem?

    my question link via stack overflow site:
    https://stackoverflow.com/questions/56538516/error-cannot-run-compiler-icpc-output

    Thanks.

    J 1 Reply Last reply 11 Jun 2019, 07:26
    0
    • S SoheilSabz
      11 Jun 2019, 07:23

      Hi:

      reference to my previous question about cross compilation, i could not to do this work with my raspberry Zero (via USB OTG Connection to my PC LINUX OS), so i decide to compile the program in my Linux PC, i installed again the QT by this way:

      cd /home/so/Desktop/trash/3
      wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/ qt-everywhere-src-5.12.3.tar.xz
          tar xvf  qt-everywhere-src-5.12.3.tar.xz
          cd  qt-everywhere-src-5.12.3
      ./configure --prefix=/home/so/Program_Files/Qt_v5_Desktop_Kit
          make
          make install
      

      SO when i changed the desktop kit setting in my Qt Creator settings you can see here:

      my Qt Creator settings

      but now with project like this:

      #-------------------------------------------------
      #
      # Project created by QtCreator 2019-06-09T18:56:52
      #
      #-------------------------------------------------
      
      QT       += core gui
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      TARGET = new_sd
      TEMPLATE = app
      
      # The following define makes your compiler emit warnings if you use
      # any feature of Qt which has been marked as deprecated (the exact warnings
      # depend on your compiler). Please consult the documentation of the
      # deprecated API in order to know how to port your code away from it.
      DEFINES += QT_DEPRECATED_WARNINGS
      
      # You can also make your code fail to compile if you use deprecated APIs.
      # In order to do so, uncomment the following line.
      # You can also select to disable deprecated APIs only up to a certain version of Qt.
      #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
      
      CONFIG += c++11
      
      SOURCES += \
              main.cpp \
              mainwindow.cpp
      
      HEADERS += \
              mainwindow.h
      
      FORMS += \
              mainwindow.ui
      
      # Default rules for deployment.
      qnx: target.path = /tmp/$${TARGET}/bin
      #else: unix:!android: target.path = /home/pi/Desktop/$${TARGET}/bin
      else: unix:!android: target.path = /home/so/Desktop/$${TARGET}/bin
      !isEmpty(target.path): INSTALLS += target
      

      when i debug it in my linux pc desktop kit i get this error:

      :-1: error: Cannot run compiler 'icpc'. Output:
      

      I get the icpc is one from this site:

      Linux / MacOS: icc ( C ) icpc (C++) ifort (Fortran)
      

      I have searched the icpc file via my /home/so folder but i don't find any things. So have can i solve this problem?

      my question link via stack overflow site:
      https://stackoverflow.com/questions/56538516/error-cannot-run-compiler-icpc-output

      Thanks.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 11 Jun 2019, 07:26 last edited by
      #2

      @SoheilSabz Just to be sure: do you want to cross compile on your Linux machine for RaspberryPi? If not: do you really want to use Intel compiler (which is what icpc is)? If you want to cross compile then you have to cross compile Qt first (you did not) and there is no Intel compiler for ARM.

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

      1 Reply Last reply
      2
      • S Offline
        S Offline
        SoheilSabz
        wrote on 12 Jun 2019, 04:48 last edited by SoheilSabz 6 Dec 2019, 05:21
        #3

        no i don't want to cross compile, because i can not solve my problem on it, SO i decide to built native qt in my linux OS PC . it is based of this site instructions:

        https://doc.qt.io/qt-5/linux-building.html

        About icpc or Intel compiler i have no idea, and my knowledge is so low.

        J 1 Reply Last reply 12 Jun 2019, 05:43
        0
        • S SoheilSabz
          12 Jun 2019, 04:48

          no i don't want to cross compile, because i can not solve my problem on it, SO i decide to built native qt in my linux OS PC . it is based of this site instructions:

          https://doc.qt.io/qt-5/linux-building.html

          About icpc or Intel compiler i have no idea, and my knowledge is so low.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 12 Jun 2019, 05:43 last edited by jsulm 6 Dec 2019, 05:44
          #4

          @SoheilSabz Go to the Kits tab and set GCC/G++ as compiler instead of "Linux/ICC".

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

          1 Reply Last reply
          2

          3/4

          12 Jun 2019, 04:48

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved