trying to build samples for H3 and get an error with computecpp
Asylbeck opened this issue · 3 comments
I am trying to build sample to run on an H3 (because the one's that come with Rcar kit give segfaults). But when I run the cmake command with an absolute path to the Rcar's computecpp folder (all in the cross compile env) I get the following error:
-- Found OpenCL: /opt/poky/2.1.3/sysroots/aarch64-poky-linux/lib (found version "2.0")
/home/user/Downloads/RCar-CE-0.3.0-Yocto-2.23.1-Release/ComputeCpp/bin/computecpp_info: 1: /home/user/Downloads/RCar-CE-0.3.0-Yocto-2.23.1-Release/ComputeCpp/bin/computecpp_info: Syntax error: "(" unexpected
CMake Error at cmake/Modules/FindComputeCpp.cmake:113 (message):
Package version - Error obtaining version!
Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)
my cmake command looks like the following:
cmake ../ -DOpenCL_LIBRARY=/opt/poky/2.1.3/sysroots/aarch64-poky-linux/lib/ -DOpenCL_INCLUDE_DIR=/opt/poky/2.1.3/sysroots/aarch64-poky-linux/usr/include/ -DComputeCpp_DIR=/home/user/Downloads/RCar-CE-0.3.0-Yocto-2.23.1-Release/ComputeCpp
Can you confirm if you were able to validate the platform is working by following the guides on our website? You also need the release package from this website section too. https://developer.codeplay.com/computeaortace/latest/computecpp-and-computeaorta-for-r-car-introduction
Have you set up the LD_LIBRARY_PATH environment variable?
What does the output of computecpp_info look like when you run it on the device?
The cmake command we specify in our R-Car guide should be used to build the samples. (linked above)
Closing this for now. Please re-open if you are still seeing any problems.