HackerShackOfficial / AI-Smart-Mirror

Smart Mirror with a smart AI 🤖
MIT License
536 stars 217 forks source link

Brew install opencv #97

Open titiw123 opened 5 years ago

titiw123 commented 5 years ago

Raspberry Pi 3

pi@raspberrypi:~ $ brew install opencv Updating Homebrew... ==> Installing dependencies for opencv: openssl, gpatch, ncurses, readline, sqlite, xz, bzip2, libffi, zlib, python, sphinx-doc, cmake, eigen, nasm, gettext, texi2html, yasm, aom, libpng, freetype, m4, berkeley-db, libbsd, expat, perl, autoconf, automake, gperf, libtool, json-c, python@2, util-linux, fontconfig, frei0r, lame, fribidi, libxml2, itstool, docbook, docbook-xsl, boost, source-highlight, libxslt, gtk-doc, pcre, glib, pixman, linuxbrew/xorg/util-macros, linuxbrew/xorg/xtrans, linuxbrew/xorg/xcb-proto, linuxbrew/xorg/libpthread-stubs, linuxbrew/xorg/xorgproto, linuxbrew/xorg/libxau, linuxbrew/xorg/libxdmcp, gmp, mpfr, gawk, check, linuxbrew/xorg/libxcb, linuxbrew/xorg/libx11, linuxbrew/xorg/libxext, linuxbrew/xorg/libxrender, cairo, bison, help2man, flex, gobject-introspection, graphite2, icu4c, harfbuzz, libass, libogg, libvorbis, libvpx, opencore-amr, doxygen, jpeg, libtiff, little-cms2, openjpeg, opus, rtmpdump, flac, libsndfile, libsamplerate, libmpc, isl@0.18, gcc, libevent, open-mpi, fftw, vamp-plugin-sdk, rubberband, linuxbrew/xorg/libice, linuxbrew/xorg/libxfixes, linuxbrew/xorg/libxcursor, linuxbrew/xorg/libxscrnsaver, linuxbrew/xorg/libxxf86vm, linuxbrew/xorg/libxi, linuxbrew/xorg/libxinerama, linuxbrew/xorg/libxrandr, linuxbrew/xorg/xinput, libsoxr, speexdsp, libcap, pulseaudio, sdl2, snappy, speex, autoconf-archive, giflib, webp, leptonica, tesseract, theora, x264, x265, xvid, linuxbrew/xorg/libxv, ffmpeg, openblas, numpy, ilmbase, openexr, swig and tbb ==> Installing opencv dependency: openssl ==> Downloading https://www.openssl.org/source/openssl-1.0.2q.tar.gz Already downloaded: /home/pi/.cache/Homebrew/downloads/bfd5d14e97371eed56ab875871c8e05eb1db5bc099a6353e46bae830f9bcc8ff--openssl-1.0.2q.tar.gz ==> perl ./Configure --prefix=/home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2 ==> make depend ==> make Last 15 lines from /home/pi/.cache/Homebrew/Logs/openssl/03.make: x86_64cpuid.s:254: Error: bad instruction jc .Lbreak_rdrand' x86_64cpuid.s:255: Error: bad instructionloop .Loop_rdrand' x86_64cpuid.s:257: Error: bad instruction cmpq $0,%rax' x86_64cpuid.s:258: Error: bad instructioncmoveq %rcx,%rax' x86_64cpuid.s:263: Error: unrecognized symbol type "" x86_64cpuid.s:266: Error: bad instruction movl $8,%ecx' x86_64cpuid.s:269: Error: bad instructionjc .Lbreak_rdseed' x86_64cpuid.s:270: Error: bad instruction loop .Loop_rdseed' x86_64cpuid.s:272: Error: bad instructioncmpq $0,%rax' x86_64cpuid.s:273: Error: bad instruction `cmoveq %rcx,%rax'

: recipe for target 'x86_64cpuid.o' failed make[1]: *** [x86_64cpuid.o] Error 1 make[1]: Leaving directory '/tmp/openssl-20190209-30597-1q5rcls/openssl-1.0.2q/crypto' Makefile:287: recipe for target 'build_crypto' failed make: *** [build_crypto] Error 1 READ THIS: https://github.com/Linuxbrew/brew/wiki/troubleshooting