web-dev-qa-db-ja.com

OpenCVのインストールが[99%]で止まってエラーなしでopencv_perf_stitchingターゲットをビルド

だから私はOpenCV 3.2.0の最新バージョンをインストールしていますが、99%で止まってしまいました(nprocを-jに渡したので本当に時間がかかり、nproc出力は24でしたが)解決策があるのだろうか私はそれを止めたくないのです。エラーが表示されません。

CUDA 8
Python 3.4.3
OpenCV3.2.0
Ubuntu 14.04

そして

[ 98%] Built target opencv_stitching
Scanning dependencies of target opencv_test_stitching
Scanning dependencies of target opencv_perf_stitching

BUILD SUCCESSFUL
Total time: 3 seconds
[ 99%] [ 99%] [ 99%] [ 99%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_matchers.cpp.o
Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_main.cpp.o
Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/ocl/test_warpers.cpp.o
Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_blenders.cpp.o
[ 99%] [ 99%] [ 99%] [ 99%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_estimators.cpp.o
[ 99%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_stich.cpp.o
[ 99%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_main.cpp.o
Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_matchers.cpp.o
Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/opencl/perf_stitch.cpp.o
Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/opencl/perf_warpers.cpp.o
[ 99%] Built target opencv_test_Java
[ 99%] Built target opencv_perf_cudaobjdetect
Linking CXX executable ../../bin/opencv_test_cudaobjdetect
[ 99%] Built target opencv_test_cudaobjdetect
Linking CXX executable ../../bin/opencv_test_stitching
[ 99%] Built target opencv_test_stitching
Linking CXX executable ../../bin/opencv_perf_stitching
[ 99%] Built target opencv_perf_stitching
12
Mona Jalal

まあ、それはかなり長い間立ち往生し、その後正常に前進することが判明しました。インストールを停止しないでください。 患者になる

[ 99%] Built target opencv_perf_stitching

Scanning dependencies of target opencv_cudaoptflow
[ 99%] [ 99%] [ 99%] [ 99%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/pyrlk.cpp.o
Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/brox.cpp.o
Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/farneback.cpp.o
Building CXX object modules/cudaoptflow/CMakeFiles/opencv_cudaoptflow.dir/src/tvl1flow.cpp.o
Linking CXX shared library ../../lib/libopencv_cudaoptflow.so
[ 99%] Built target opencv_cudaoptflow
[100%] [100%] [100%] Scanning dependencies of target opencv_test_cudaoptflow
Scanning dependencies of target opencv_perf_cudaoptflow
Building NVCC (Device) object modules/videostab/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_global_motion.cu.o
Generating opencl_kernels_superres.cpp, opencl_kernels_superres.hpp
Building NVCC (Device) object modules/superres/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_btv_l1_gpu.cu.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
[100%] [100%] [100%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_perf_cudaoptflow.dir/perf/perf_main.cpp.o
Building CXX object modules/cudaoptflow/CMakeFiles/opencv_perf_cudaoptflow.dir/perf/perf_optflow.cpp.o
[100%] Building CXX object modules/cudaoptflow/CMakeFiles/opencv_test_cudaoptflow.dir/test/test_main.cpp.o
Building CXX object modules/cudaoptflow/CMakeFiles/opencv_test_cudaoptflow.dir/test/test_optflow.cpp.o
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
Linking CXX executable ../../bin/opencv_perf_cudaoptflow
Linking CXX executable ../../bin/opencv_test_cudaoptflow
[100%] Built target opencv_perf_cudaoptflow
[100%] Built target opencv_test_cudaoptflow
Scanning dependencies of target opencv_superres
[100%] [100%] [100%] [100%] [100%] [100%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1_cuda.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1.cpp.o
[100%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/optical_flow.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/input_array_utility.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/opencl_kernels_superres.cpp.o
Linking CXX shared library ../../lib/libopencv_superres.so
[100%] Built target opencv_superres
Scanning dependencies of target opencv_perf_superres
Scanning dependencies of target opencv_test_superres
[100%] [100%] [100%] [100%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres.dir/perf/perf_superres.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_test_superres.dir/test/test_superres.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_test_superres.dir/test/test_main.cpp.o
Building CXX object modules/superres/CMakeFiles/opencv_perf_superres.dir/perf/perf_main.cpp.o
Linking CXX executable ../../bin/opencv_test_superres
[100%] Built target opencv_test_superres
Linking CXX executable ../../bin/opencv_perf_superres
[100%] Built target opencv_perf_superres
Scanning dependencies of target opencv_videostab
[100%] [100%] [100%] [100%] [100%] [100%] [100%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/global_motion.cpp.o
[100%] [100%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/optical_flow.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/frame_source.cpp.o
[100%] [100%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/fast_marching.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/motion_stabilizing.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/wobble_suppression.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/deblurring.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/inpainting.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/outlier_rejection.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/log.cpp.o
Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/stabilizer.cpp.o
Linking CXX shared library ../../lib/libopencv_videostab.so
[100%] Built target opencv_videostab
[100%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h
Scanning dependencies of target opencv_python2
[100%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
Linking CXX shared module ../../lib/cv2.so
[100%] Built target opencv_python2
33
Mona Jalal

同じ問題がありました。コマンド make -j4は、作成プロセスが99%で停止する結果になりました。他の幸運なユーザーとは異なり、数時間待機したにもかかわらず、7.5 GBのスワップメモリ​​があるにもかかわらず、私のプロセスは解決しませんでした。

しかし、うまくいったのは、私が このWebページ で見つけた提案で、代わりにシングルコアでビルドしようとしていました:

make -j1

時間がかかりましたが、うまくいきました。

5
raggot

スワップを増やす必要があります。

スワップを増やすまで、インストールも停止していました。その後、完了しました。一時的にそれを試して、それが役立つかどうかを確認できます。

1
danfolkes