Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

 

Which armbian-image do you use? ( Please give link from armbianmonitor -u )

Did you try a new mainline image? (Newer c++ or gcc version?)

  • Author

Solved it, I was using Debian Jessie, switched to Ubuntu Xenial and everything worked with no problem. Seems the software Debian Jessie distro uses is too old or incompatible. 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.