ссылка на мой предыдущий вопрос о кросс-компиляции, я не мог выполнить эту работу с моей Raspberry Zero (через USB OTG-соединение с моей ОС Linux Linux), поэтому я решил скомпилировать программу в моемПК с Linux, я снова установил 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](https://i.stack.imgur.com/cuadw.jpg)
но теперь с таким проектом:
#-------------------------------------------------
#
# 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, я получаю эту ошибку:
:-1: error: Cannot run compiler 'icpc'. Output:
Я получаю icpc
один из этого сайта :
Linux / MacOS: icc ( C ) icpc (C++) ifort (Fortran)
Я искал файл icpc через мою папку /home/so
, но я нея могу решить эту проблему?
ссылка на мой вопрос через форум Qt:
https://forum.qt.io/topic/103770/error-cannot-run-compiler-icpc-output
Спасибо.