Jump to content

I can't by any means get to install OpenCV or Darknet


Tony

Recommended Posts

I'm trying to follow this tutorial here https://www.pyimagesearch.com/2015/07/27/installing-opencv-3-0-for-both-python-2-7-and-python-3-on-your-raspberry-pi-2/ but nothing I do works when I get to install numpy, opencv, or darknet.

 

When I try to build OpenCV following default instructions (or any for that matter) I get:

 

Quote

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "/usr/bin/c++" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: /home/tony/opencv-3.4.0/build/CMakeFiles/CMakeTmp

  

  Run Build Command:"/usr/bin/make" "cmTryCompileExec3310821167/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec3310821167.dir/build.make
  CMakeFiles/cmTryCompileExec3310821167.dir/build

  make[1]: Entering directory
  '/home/tony/opencv-3.4.0/build/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report
  /home/tony/opencv-3.4.0/build/CMakeFiles/CMakeTmp/CMakeFiles 1

  Building CXX object
  CMakeFiles/cmTryCompileExec3310821167.dir/testCXXCompiler.cxx.o

  /usr/bin/c++ -o
  CMakeFiles/cmTryCompileExec3310821167.dir/testCXXCompiler.cxx.o -c
  /home/tony/opencv-3.4.0/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  <built-in>: internal compiler error: Illegal instruction

  symbol string index out of range

  Please submit a full bug report,

  with preprocessed source if appropriate.

  See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.

  CMakeFiles/cmTryCompileExec3310821167.dir/build.make:57: recipe for target
  'CMakeFiles/cmTryCompileExec3310821167.dir/testCXXCompiler.cxx.o' failed

  make[1]: ***
  [CMakeFiles/cmTryCompileExec3310821167.dir/testCXXCompiler.cxx.o] Error 1

  make[1]: Leaving directory
  '/home/tony/opencv-3.4.0/build/CMakeFiles/CMakeTmp'

  Makefile:118: recipe for target 'cmTryCompileExec3310821167/fast' failed

  make: *** [cmTryCompileExec3310821167/fast] Error 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:117 (project)


-- Configuring incomplete, errors occurred!
See also "/home/tony/opencv-3.4.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/tony/opencv-3.4.0/build/CMakeFiles/CMakeError.log".
 

don't know what to do and there's nothing online that helps me out.

 

the only thing that worked was apt-get install python-opencv but it installs a very old version which I can't use for my project.

 

Also when I try to make darknet I get:

 

Quote

gcc -Iinclude/ -Isrc/ -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
./src/gemm.c: In function ‘gemm_bin’:
./src/gemm.c:18:17: internal compiler error: Illegal instruction
                 for(j = 0; j < N; ++j){
                 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc3Lod69.out file, please attach this to your bugreport.
Makefile:85: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 1

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines