Skip to content

Commit fc9c3a9

Browse files
authored
Update install_opencv3-Part1.sh
1 parent 4027ebf commit fc9c3a9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CMSC733/install_opencv3-Part1.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,20 @@ maxThreads=$(grep -c ^processor /proc/cpuinfo)
2727
echo Enter the number of CPU threads you want to use. FYI: You have $maxThreads CPU Threads.
2828
read nThreads
2929

30+
# Try 1:
3031
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..
3132
# or try for cuda support:
3233
make -j$nThreads
33-
# if there is an error: cmake again with the following lines and then do make again:
34+
# ---------------------------------------------------------- #
35+
36+
# Try 2:
37+
# if there is an error: delete the build folder, create a new one and try to cmake again with the following lines and then do make again:
3438
# cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_TIFF=ON -D BUILD_EXAMPLES=ON -D CUDA_GENERATION=Auto -D BUILD_NEW_PYTHON_SUPPORT=ON ..
3539
# and then do make -j$nThreads
40+
# ---------------------------------------------------------- #
41+
42+
# Try 3:
43+
# Alternatively, if that doesn't work
3644
# 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=OFF -D WITH_OPENGL=ON ..
45+
# and then do make -j$nThreads
3746
# ---------------------------------------------------------- #

0 commit comments

Comments
 (0)