【发布时间】:2018-02-28 20:48:37
【问题描述】:
我在树莓派上做了以下操作:
cd ~
wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.1.0.zip
wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.1.0.zip
cd ~/opencv-3.1.0/
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv/contrib-3.1.0/modules -D BUILD_EXAMPLES=ON ..
make -j4
make -j4 返回make: *** No targets specified and no makefile found. Stop.
我用make --version检查了我的设备上是否安装了make,发现我的版本是4.0。我也尝试过运行/usr/bin/make -j4 之类的程序,但仍然出现同样的错误。
根据我在网上找到的内容,我认为我应该期望一个 makefile 或 Makefile 在我的目录中,但不存在。
我做错了什么,我该如何解决?
其他信息
我不断看到对 ./configuration 文件的引用,但我没有这个文件。
【问题讨论】:
-
请不要使用
cd ~。只需使用cd,它 a) 更短,b) 适用于所有 shell。
标签: raspberry-pi raspberry-pi3 raspbian