Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing error for arm64 #8

Open
jetxeberria opened this issue Oct 17, 2019 · 0 comments
Open

installing error for arm64 #8

jetxeberria opened this issue Oct 17, 2019 · 0 comments

Comments

@jetxeberria
Copy link

jetxeberria commented Oct 17, 2019

Hi Alexander,
Thanks for providing this binding for Face Detection with CascadeClassifier for Python + GPU

I'm having issues at installation step. I'm trying to install it in Nvidia Jetson Nano, in a virtualenv, with this specs:

  • aarch64
  • Ubuntu 18.04.3
  • Python 2.7.15
  • OpenCV 3.4.0 compiled for GPU
    • cv2.getBuildInformation() returns: NVIDIA CUDA: YES (ver 10.0) NVIDIA GPU arch: 53
  • Virtualenv 15.1.0

Due to being installing in virtualenv '--user' argument of pip is not allowed, I've run this commands:

git clone https://github.com/alexanderkoumis/opencv-gpu-py
pip install -e opencv-gpu-py

And I've received this output:

Installing collected packages: cv2gpu
  Running setup.py develop for cv2gpu
    ERROR: Command errored out with exit status 1:
     command: /home/nvidia/environments/bioengine/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/nvidia/opencv-gpu-py/setup.py'"'"'; __file__='"'"'/home/nvidia/opencv-gpu-py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /home/nvidia/opencv-gpu-py/
    Complete output (32 lines):
    running develop
    running egg_info
    writing cv2gpu.egg-info/PKG-INFO
    writing top-level names to cv2gpu.egg-info/top_level.txt
    writing dependency_links to cv2gpu.egg-info/dependency_links.txt
    reading manifest file 'cv2gpu.egg-info/SOURCES.txt'
    writing manifest file 'cv2gpu.egg-info/SOURCES.txt'
    running build_ext
    building 'cv2gpu' extension
    creating build
    creating build/temp.linux-aarch64-2.7
    creating build/temp.linux-aarch64-2.7/src
    aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-ByWuWM/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -I/usr/local/include -I/usr/local/include/opencv -I/usr/include/python2.7 -c src/face_detector.cpp -o build/temp.linux-aarch64-2.7/src/face_detector.o -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-ByWuWM/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DMAJOR_VERSION=1 -DMINOR_VERSION=0 -I/usr/local/include -I/usr/local/include/opencv -I/usr/include/python2.7 -c src/cv2gpu.cpp -o build/temp.linux-aarch64-2.7/src/cv2gpu.o -std=c++11
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    creating build/lib.linux-aarch64-2.7
    aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-ByWuWM/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-ByWuWM/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-aarch64-2.7/src/face_detector.o build/temp.linux-aarch64-2.7/src/cv2gpu.o -L/usr/local/lib -lopencv_videostab -lopencv_shape -lopencv_cudacodec -lopencv_cudalegacy -lopencv_core -lopencv_cudawarping -lopencv_objdetect -lopencv_cudafeatures2d -lopencv_videoio -lopencv_cudafilters -lopencv_flann -lopencv_cudaimgproc -lopencv_highgui -lopencv_cudaarithm -lopencv_stitching -lopencv_features2d -lopencv_cudev -lopencv_superres -lopencv_calib3d -lopencv_imgcodecs -lopencv_cudaoptflow -lopencv_cudaobjdetect -lopencv_ml -lopencv_imgproc -lopencv_cudastereo -lopencv_video -lopencv_dnn -lopencv_cudabgsegm -lopencv_photo -o build/lib.linux-aarch64-2.7/cv2gpu.so
    /usr/bin/ld: cannot find -lopencv_cudacodec
    /usr/bin/ld: cannot find -lopencv_cudalegacy
    /usr/bin/ld: cannot find -lopencv_cudawarping
    /usr/bin/ld: cannot find -lopencv_cudafeatures2d
    /usr/bin/ld: cannot find -lopencv_cudafilters
    /usr/bin/ld: cannot find -lopencv_cudaimgproc
    /usr/bin/ld: cannot find -lopencv_cudaarithm
    /usr/bin/ld: cannot find -lopencv_cudev
    /usr/bin/ld: cannot find -lopencv_cudaoptflow
    /usr/bin/ld: cannot find -lopencv_cudaobjdetect
    /usr/bin/ld: cannot find -lopencv_cudastereo
    /usr/bin/ld: cannot find -lopencv_cudabgsegm
    collect2: error: ld returned 1 exit status
    error: command 'aarch64-linux-gnu-g++' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/nvidia/environments/bioengine/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/nvidia/opencv-gpu-py/setup.py'"'"'; __file__='"'"'/home/nvidia/opencv-gpu-py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Did you know about this issue? Could you give me any guidance to achieve installing your package?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant