Ask Your Question
0

Can't Write in PCH file crunchbang

asked 2013-08-03 06:04:06 -0600

tex42 gravatar image

updated 2013-08-03 06:10:23 -0600

Hi there I'm new to OpenCV. I was trying to make the libraries and it crashed. Any help would be most appreciated.

..... [ 86%] Generating test_precomp.hpp

[ 86%] Generating test_precomp.hpp.gch/opencv_test_gpufeatures2d_RELEASE.gch

[ 86%] Built target pch_Generate_opencv_test_gpufeatures2d Scanning dependencies of target opencv_test_gpufeatures2d

[ 86%] Building CXX object modules/gpufeatures2d/CMakeFiles/opencv_test_gpufeatures2d.dir/test/test_main.cpp.o

[ 86%] Building CXX object modules/gpufeatures2d/CMakeFiles/opencv_test_gpufeatures2d.dir/test/test_features2d.cpp.o

[ 86%] Building CXX object modules/gpufeatures2d/CMakeFiles/opencv_test_gpufeatures2d.dir/test/test_precomp.cpp.o Linking CXX executable ../../bin/opencv_test_gpufeatures2d

[ 86%] Built target opencv_test_gpufeatures2d

[ 86%] Generating opencv_gpuoptflow_pch_dephelp.cxx Scanning dependencies of target opencv_gpuoptflow_pch_dephelp

[ 86%] Building CXX object modules/gpuoptflow/CMakeFiles/opencv_gpuoptflow_pch_dephelp.dir/opencv_gpuoptflow_pch_dephelp.cxx.o Linking CXX static library ../../lib/libopencv_gpuoptflow_pch_dephelp.a

[ 86%] Built target opencv_gpuoptflow_pch_dephelp Scanning dependencies of target pch_Generate_opencv_gpuoptflow

[ 86%] Generating precomp.hpp

[ 86%] Generating precomp.hpp.gch/opencv_gpuoptflow_RELEASE.gch In file included from /home/texas/documents/opencv/modules/gpuoptflow/precomp.hpp:54:0: /home/texas/documents/opencv/modules/core/include/opencv2/core/private.gpu.hpp:85:123: fatal error: can’t write PCH file: No space left on device compilation terminated.

Preprocessed source stored into /tmp/cc45CwCS.out file, please attach this to your bugreport.

make[2]: * [modules/gpuoptflow/precomp.hpp.gch/opencv_gpuoptflow_RELEASE.gch] Error 1

make[1]: * [modules/gpuoptflow/CMakeFiles/pch_Generate_opencv_gpuoptflow.dir/all] Error 2

make: * [all] Error 2

How can I finish installing it?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-08-03 08:36:10 -0600

berak gravatar image

"can’t write PCH file: No space left on device"

well, i'm on win, but a build here takes ~2gb.

the pch files are quite big, opencv_features2d290.pch alone 16.5mb, so you could trade compile time against disk space and rerun cmake with ENABLE_PRECOMPILED_HEADERS=OFF (but cleanup anything that cmake generated before)

edit flag offensive delete link more

Comments

Hi, I have the same Problem, although I got the error on 95% of "make" command. So, I ran cmake without any Problems and then by execution of make I got Problems with space. Can you tell me what should I do to complete the Installation? If the steps are the same as you wrote already, how can I detect, what files were created during "cmake" execution? Should I then run "make" command again? Thanks in advance! Dmitry

DmitryD13 gravatar imageDmitryD13 ( 2013-08-27 03:00:28 -0600 )edit

you probably told cmake to build into a "build" folder. just delete that whole folder and start again

cmake, make, yes back to start

berak gravatar imageberak ( 2013-08-27 04:27:17 -0600 )edit

Question Tools

Stats

Asked: 2013-08-03 06:04:06 -0600

Seen: 6,852 times

Last updated: Aug 03 '13