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
Build Error (Jetson TX1 - ARM64): c++: error: unrecognized command line option '-msse' #479
Comments
I edited the CMakeLists.txt and removed the "msse" compiler instructions and was able to build successfully. FaceLandmarkImg runs in about 1s for a single image. I am not sure if OpenFace can run real time (webcam 640x480) on Jetson TX1 (ARM64), but will give it a try... (cvdlibpy35) nvidia@tegra-ubuntu:~/cviz/OpenFace/build/bin$ ./FaceLandmarkImg -f ../../samples/sample1.jpg |
I see you managed to find a solution :), in future version I am planning on having more modular CMake files that would allow pointing at a pre-built dlib. As a side note |
I only mentioned leveraging an existing DLIB install, because DLIB now supports CUDA (like on the TX1). I am not sure if OpenFace install allows for building DLIB with CUDA support and optimization. I did install CMU openpose (uses CUDA) successfully in the past. Hope to see CUDA support in the future. We can close this issue. Thanks! |
tash@tash-desktop:~/OpenFace/build$ sudo make sir can you plz help me out..im facing same issue |
tash@tash-desktop:~/OpenFace/build$ sudo make sir can you plz help me out..im facing same issue |
del "-msse -msse2 -msse3" in OpenFace-master/CMakeLists.txt , then it works |
您的邮件我已收到,有需要会尽快回复This is an automatic reply, confirming that your e-mail was received.Thank you
|
I ran into a build error with the Jetson TX1. I was wondering if DLIB is already installed on the system, is it possible to use the existing install instead of compiling another DLIB instance under 3rd party?
(cvdlibpy35) nvidia@tegra-ubuntu:~/cviz/OpenFace/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- A library with BLAS API found.
-- Found CUDA: /usr/local/cuda-8.0 (found suitable exact version "8.0")
-- Found OpenCV: /home/nvidia/opencv/build (found suitable version "3.3.0", minimum required is "3.3")
OpenCV information:
OpenCV_INCLUDE_DIRS: /home/nvidia/opencv/build;/home/nvidia/opencv/include;/home/nvidia/opencv/include/opencv;/home/nvidia/opencv/modules/cudev/include;/home/nvidia/opencv/modules/core/include;/home/nvidia/opencv/modules/cudaarithm/include;/home/nvidia/opencv/modules/flann/include;/home/nvidia/opencv/modules/imgproc/include;/home/nvidia/opencv/modules/ml/include;/home/nvidia/opencv/modules/objdetect/include;/home/nvidia/opencv/modules/video/include;/home/nvidia/opencv/modules/cudabgsegm/include;/home/nvidia/opencv/modules/cudafilters/include;/home/nvidia/opencv/modules/cudaimgproc/include;/home/nvidia/opencv/modules/cudawarping/include;/home/nvidia/opencv/modules/dnn/include;/home/nvidia/opencv/modules/imgcodecs/include;/home/nvidia/opencv/modules/photo/include;/home/nvidia/opencv/modules/shape/include;/home/nvidia/opencv/modules/videoio/include;/home/nvidia/opencv/modules/cudacodec/include;/home/nvidia/opencv/modules/highgui/include;/home/nvidia/opencv/modules/ts/include;/home/nvidia/opencv/modules/features2d/include;/home/nvidia/opencv/modules/calib3d/include;/home/nvidia/opencv/modules/cudafeatures2d/include;/home/nvidia/opencv/modules/cudalegacy/include;/home/nvidia/opencv/modules/cudaobjdetect/include;/home/nvidia/opencv/modules/cudaoptflow/include;/home/nvidia/opencv/modules/cudastereo/include;/home/nvidia/opencv/modules/stitching/include;/home/nvidia/opencv/modules/superres/include;/home/nvidia/opencv/modules/videostab/include
OpenCV_LIBRARIES: opencv_calib3d;opencv_core;opencv_cudaarithm;opencv_cudabgsegm;opencv_cudacodec;opencv_cudafeatures2d;opencv_cudafilters;opencv_cudaimgproc;opencv_cudalegacy;opencv_cudaobjdetect;opencv_cudaoptflow;opencv_cudastereo;opencv_cudawarping;opencv_cudev;opencv_dnn;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab
OpenCV_LIBRARY_DIRS:
-- Boost version: 1.60.0
-- Found the following Boost libraries:
-- filesystem
-- system
Boost information:
Boost_INCLUDE_DIRS: /usr/local/boost-1.60.0/include
Boost_LIBRARIES: /usr/local/boost-1.60.0/lib/libboost_filesystem.so;/usr/local/boost-1.60.0/lib/libboost_system.so
Boost_LIBRARY_DIRS: /usr/local/boost-1.60.0/lib
-- Found TBB: /usr (found version "4.4")
-- Looking for XOpenDisplay in /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/aarch64-linux-gnu/libX11.so
-- Found JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so
-- Searching for BLAS and LAPACK
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found LAPACK library
-- Found ATLAS BLAS library
-- Looking for cblas_ddot
-- Looking for cblas_ddot - found
-- Check for STD namespace
-- Check for STD namespace - not found
-- Looking for C++ include iostream
-- Looking for C++ include iostream - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvidia/cviz/OpenFace/build
(cvdlibpy35) nvidia@tegra-ubuntu:~/cviz/OpenFace/build$ make
Scanning dependencies of target GazeAnalyser
Scanning dependencies of target LandmarkDetector
Scanning dependencies of target FaceAnalyser
Scanning dependencies of target dlib
[ 1%] Building CXX object lib/local/GazeAnalyser/CMakeFiles/GazeAnalyser.dir/src/GazeEstimation.cpp.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/GazeAnalyser/CMakeFiles/GazeAnalyser.dir/build.make:62: recipe for target 'lib/local/GazeAnalyser/CMakeFiles/GazeAnalyser.dir/src/GazeEstimation.cpp.o' failed
make[2]: *** [lib/local/GazeAnalyser/CMakeFiles/GazeAnalyser.dir/src/GazeEstimation.cpp.o] Error 1
CMakeFiles/Makefile2:250: recipe for target 'lib/local/GazeAnalyser/CMakeFiles/GazeAnalyser.dir/all' failed
make[1]: *** [lib/local/GazeAnalyser/CMakeFiles/GazeAnalyser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 2%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/base64/base64_kernel_1.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/3rdParty/dlib/CMakeFiles/dlib.dir/build.make:62: recipe for target 'lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/base64/base64_kernel_1.o' failed
make[2]: *** [lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/base64/base64_kernel_1.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 3%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_1.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/3rdParty/dlib/CMakeFiles/dlib.dir/build.make:86: recipe for target 'lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_1.o' failed
make[2]: *** [lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_1.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'lib/3rdParty/dlib/CMakeFiles/dlib.dir/all' failed
make[1]: *** [lib/3rdParty/dlib/CMakeFiles/dlib.dir/all] Error 2
[ 4%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/build.make:62: recipe for target 'lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o' failed
make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 5%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyserParameters.cpp.o
[ 6%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/build.make:110: recipe for target 'lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyserParameters.cpp.o' failed
make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyserParameters.cpp.o] Error 1
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/build.make:86: recipe for target 'lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o' failed
make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o] Error 1
CMakeFiles/Makefile2:195: recipe for target 'lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/all' failed
make[1]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/all] Error 2
[ 7%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o
[ 8%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CEN_patch_expert.cpp.o
[ 9%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CNN_utils.cpp.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/build.make:86: recipe for target 'lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CEN_patch_expert.cpp.o' failed
make[2]: *** [lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CEN_patch_expert.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/build.make:62: recipe for target 'lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o' failed
make[2]: *** [lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o] Error 1
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/build.make:110: recipe for target 'lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CNN_utils.cpp.o' failed
make[2]: *** [lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CNN_utils.cpp.o] Error 1
[ 10%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/FaceDetectorMTCNN.cpp.o
c++: error: unrecognized command line option '-msse'
c++: error: unrecognized command line option '-msse2'
c++: error: unrecognized command line option '-msse3'
lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/build.make:134: recipe for target 'lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/FaceDetectorMTCNN.cpp.o' failed
make[2]: *** [lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/FaceDetectorMTCNN.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/all' failed
make[1]: *** [lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: