Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/163.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 设置英特尔C++;Linux上的编译器(英特尔System Studio提供的ICC)_C++_Linux_Qt_Icc - Fatal编程技术网

C++ 设置英特尔C++;Linux上的编译器(英特尔System Studio提供的ICC)

C++ 设置英特尔C++;Linux上的编译器(英特尔System Studio提供的ICC),c++,linux,qt,icc,C++,Linux,Qt,Icc,我在此处安装了带脱机安装程序的英特尔System Studio 2019 Update 3终极版: /opt/intel/system_studio_2019/ 我将编译器添加到路径: # .profile for SuSE Linux export PATH="$PATH:/opt/intel/system_studio_2019/compilers_and_libraries_2019/linux/bin/intel64/" 编译器目录的内容: m3@linux-2kee:/opt/i

我在此处安装了带脱机安装程序的英特尔System Studio 2019 Update 3终极版:

/opt/intel/system_studio_2019/
我将编译器添加到路径:

# .profile for SuSE Linux

export PATH="$PATH:/opt/intel/system_studio_2019/compilers_and_libraries_2019/linux/bin/intel64/"
编译器目录的内容:

m3@linux-2kee:/opt/intel/system_studio_2019/compilers_and_libraries_2019/linux/bin/intel64> ls
codecov  gcore-ia  gdb-ia  icc  icpc  map_opts  profdcg  profmerge  proforder  tselect  xiar  xild
此外,我运行了以下脚本:

/opt/intel/system_studio_2019/compilers_and_libraries_2019/linux/bin/compilervars.sh
现在,重新启动Qt Creator时,它能够自动检测
Linux ICC
编译器,但不能检测英特尔调试器。我学习过。我还应该做什么


Linux ICC编译器是自动检测的


只有GNU调试器是自动检测的,而不是英特尔调试器

您确定要使用
sudo源代码…
?因为
source
不是
sudo
所期望的程序。相反,
source
是shell中的内置命令,您不能将此类命令与
sudo
一起使用。更不用说
sudo
是作为一个独立于shell的进程运行的,并且为该进程设置的任何环境变量都不会传播到shell。至于您的问题,既然没有自动检测到,为什么不手动添加它呢?您是否也从
su
会话运行Qt Creator?脚本设置的变量将仅为该会话的本地变量,并且在退出
su
会话时不可用。此外,在一个shell中设置的变量不会自动在另一个shell中可用(例如,如果您有两个终端窗口,或者在一个shell/终端中设置,然后从GUI运行程序)。现在重要的是:您是否从用于运行脚本的同一个shell启动Qt Creator?例如,您是否执行
/opt/intel/system\u studio\u 2019/compilers\u and\u libraries\u 2019/linux/bin/compilervars.sh
直接后跟命令
qtcreator
?@Someprogrammerdude我没有注意到这一点。现在,我运行命令
/compilervars.sh-arch intel64-platform linux
,并立即在同一个shell上运行
~/Qt5.12.3/Tools/QtCreator/bin/QtCreator
。由于某些原因,问题仍然存在。是否确实要执行
sudo source…
?因为
source
不是
sudo
所期望的程序。相反,
source
是shell中的内置命令,您不能将此类命令与
sudo
一起使用。更不用说
sudo
是作为一个独立于shell的进程运行的,并且为该进程设置的任何环境变量都不会传播到shell。至于您的问题,既然没有自动检测到,为什么不手动添加它呢?您是否也从
su
会话运行Qt Creator?脚本设置的变量将仅为该会话的本地变量,并且在退出
su
会话时不可用。此外,在一个shell中设置的变量不会自动在另一个shell中可用(例如,如果您有两个终端窗口,或者在一个shell/终端中设置,然后从GUI运行程序)。现在重要的是:您是否从用于运行脚本的同一个shell启动Qt Creator?例如,您是否执行
/opt/intel/system\u studio\u 2019/compilers\u and\u libraries\u 2019/linux/bin/compilervars.sh
直接后跟命令
qtcreator
?@Someprogrammerdude我没有注意到这一点。现在,我运行命令
/compilervars.sh-arch intel64-platform linux
,并立即在同一个shell上运行
~/Qt5.12.3/Tools/QtCreator/bin/QtCreator
。出于某种原因,问题依然存在。