我在ARM官网地址:http://malideveloper.arm.com/resources/sdks/mali-opencl-sdk/ 下载了OpenCL的SDK,然后按照说明,现在在PC上编译它的sample命令如下:
cd sample/sobel
make install
之后把生成的文件夹整个copy到板子上
在板子上:进入SDK的根目录
cd bin/sobel
./sobel
但是却报错“No such file or dictionary” 请问应该怎么解决?
还有就是,我也觉得可能是依赖库的问题,我在PC上编译一个Hello World,只有静态编译之后扔过去才能用,动态编译扔过去,它也是报一样的错误,“No such file or directory”
但是,官方的文档没提到什么静态编译。。
它是这样写的
Easy guide to building and running your first Mali OpenCL SDK v1.1.0 sample.
Running an OpenCL sample
From a command prompt in the root of the SDK, run:
cd samples/sobel
make install
This compiles the Sobel sample code and copies all the files it needs to run to the bin folder in the root directory of the SDK.
Copy this folder to the board.
Navigate to the folder on the board and run the Sobel binary:
./sobel
You should see output similar to:
Profiling information:
Queued time: 0.067ms
Wait time: 0.057835ms
Run time: 0.164923ms
An output image should be created on the board called output.bmp.
Find solutions for Common Issues.
For more information about the Sobel filter example see the Sobel Filter tutorial.