Ask Your Question

rmurr's profile - activity

2014-05-20 10:49:55 -0600 received badge  Supporter (source)
2014-05-20 10:49:42 -0600 answered a question Install problem, ubuntu with virtualbox on win7 64 pc

I was installing OpenCV 2.4.7 on a raspberry pi recently and faced that problem on the make command. After a bit of research, I found this page. What solved the problem was increasing the memory by adding a 3GB swap (1GB wasn't enough) file using the following commands (idea taken from site linked above):

fallocate -l 3072m /var/spool/swap
mkswap /var/spool/swap
swapon /var/spool/swap

then running make.

Not sure how you can do that on Windows, but given my experience, it seems that available memory is the likely culprit in your case. Do you absolutely need to run virtualbox? I imagine that alone will consume a large chunk of available memory.

My recommendation (based on my experience) would be to start fresh by deleting all your opencv files except the compressed file it came in and decompress it again. Then go into the created dir and create a dir called 'build'. Try to free up available memory by not running any other programs. Here is how I got it to work after that:

Go into the 'build' dir and enter:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D  BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D BUILD_JPEG=ON ..

then

make -j 4
sudo make install
sudo ldconfig
2014-05-20 10:39:47 -0600 commented question Install problem, ubuntu with virtualbox on win7 64 pc

I was installing OpenCV 2.4.7 on a raspberry pi recently and faced that problem on the make command. What solved the problem was increasing the memory by adding a 3GB swap file using the following commands:

fallocate -l 3072m /var/spool/swap
mkswap /var/spool/swap
swapon /var/spool/swap

then running

make -j 4

Not sure how you can do that on Windows, but given my experience, it seems that available memory is the likely culprit in your case. Do you absolutely need to run virtualbox? I imagine that alone will consume a large chunk of available memory.