Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1646 Discussions

Can‘t build DPC++ with CMake

cp_cp
Beginner
836 Views

I want to build a project in DPC++ with CMake in the DevCloud.

 

cp_cp_2-1685023536367.png

 

This is the error I encountered.

 

cp_cp_1-1685023441537.png

And this is the CMakeLists.txt file.

I cannot figure out why this bug emerge.

0 Kudos
5 Replies
AthiraM_Intel
Moderator
795 Views

Hi,

 

Thank you for posting in Intel Communities.

Please try the below commands before building the cmake file.

source /opt/intel/oneapi/compiler/latest/env/vars.sh
export PATH=$PATH:/opt/intel/oneapi/compiler/latest/linux/bin-llvm/

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue. 

 

 

Thank you

 

0 Kudos
cp_cp
Beginner
772 Views

Good evening.

Unluckily , It triggered another error.

cp_cp_0-1685195971192.png

Is there any libs I have not installed?

0 Kudos
AthiraM_Intel
Moderator
741 Views

Hi,


Please make sure that you source oneAPI environment variables before building the sample using the below command:


source /opt/intel/oneapi/setvars.sh --force


After this command you can export the below commands


source /opt/intel/oneapi/compiler/latest/env/vars.sh

export PATH=$PATH:/opt/intel/oneapi/compiler/latest/linux/bin-llvm/


If the issue still persists, please share the sample reproducer code and the exact steps you followed.


Also share the output of below 2 commands:


echo $PATH

echo $LD_LIBRARY_PATH


Thanks




0 Kudos
AthiraM_Intel
Moderator
676 Views

Hi,


We have not heard back from you. Could you please give us an update? Is your issue resolved?



Thanks


0 Kudos
AthiraM_Intel
Moderator
614 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.



Thanks


0 Kudos
Reply