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.
  • SoheilSabzS Offline
    SoheilSabzS Offline
    SoheilSabz
    wrote on 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.

    jsulmJ 1 Reply Last reply
    0
    • SoheilSabzS SoheilSabz

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • SoheilSabzS Offline
        SoheilSabzS Offline
        SoheilSabz
        wrote on last edited by SoheilSabz
        #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.

        jsulmJ 1 Reply Last reply
        0
        • SoheilSabzS SoheilSabz

          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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #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

          • Login

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