Error: Cannot run program "/home/xxx/android_developer_tools/android-ndk-r8/ndk-build.cmd": Unknown reason

运行OpenCV官方例子  tutorial-2-mixedprocessing

总提示  /home/xxx/android_developer_tools/

明明在PATH中采用好几种方法都加入了

 

 

最后发现是因为这个文件没有 x “执行权限”

xxx@xxx:~/Documents/sdk/openCV/OpenCV-android-sdk/samples/tutorial-2-mixedprocessing$ ll /home/lenovo-myc/android_developer_tools/android-ndk-r8/ndk-build.cmd
-rw-r----- 1 lenovo-myc lenovo-myc 289 3月 17 2012 /home/lenovo-myc/android_developer_tools/android-ndk-r8/ndk-build.cmd
xxx@xxx:~/Documents/sdk/openCV/OpenCV-android-sdk/samples/tutorial-2-mixedprocessing$ chmod +x /home/lenovo-myc/android_developer_tools/android-ndk-r8/ndk-build.cmd

posted @ 2015-06-04 10:30  马小豆包  阅读(414)  评论(0编辑  收藏  举报