错误:无法运行编译器“ icpc”。输出:

时间:2019-06-11 07:23:38

标签: qt icc

参考我的previous question关于交叉编译的信息,我无法使用覆盆子Zero(通过与计算机LINUX OS的USB OTG连接)来完成此工作,因此我决定在Linux PC上编译程序,我通过这种方式再次安装了QT:

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

因此,当我在Qt Creator设置中更改了桌面工具包设置时,您可以在此处看到:

my Qt Creator settings

但是现在有了这样的项目:

#-------------------------------------------------
#
# 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

当我在linux pc桌面工具包中对其进行调试时,出现此错误:

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

我得到icpcthis site中的一个:

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

我已经通过我的/home/so文件夹搜索了 icpc 文件,但是没有找到任何东西。那么我能解决这个问题吗?

我的问题通过Qt论坛链接:

https://forum.qt.io/topic/103770/error-cannot-run-compiler-icpc-output

谢谢。

0 个答案:

没有答案