Comments (2)
Solved.
Added these to the CMakeLists.txt in ../opensfm/src
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -msse -msse2 -msse3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -msse -msse2 -msse3")
from opensfm.
Did not work on Raspberry Pi 2
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -msse -msse2 -msse3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -msse -msse2 -msse3")
Output given below(After adding the above lines to CMakeLists.txt)
Configuring...
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- A library with BLAS API found.
-- Found AMD library: /usr/lib/arm-linux-gnueabihf/libamd.so
-- Found AMD header in: /usr/include/suitesparse
-- Found CAMD library: /usr/lib/arm-linux-gnueabihf/libcamd.so
-- Found CAMD header in: /usr/include/suitesparse
-- Found COLAMD library: /usr/lib/arm-linux-gnueabihf/libcolamd.so
-- Found COLAMD header in: /usr/include/suitesparse
-- Found CCOLAMD library: /usr/lib/arm-linux-gnueabihf/libccolamd.so
-- Found CCOLAMD header in: /usr/include/suitesparse
-- Found CHOLMOD library: /usr/lib/arm-linux-gnueabihf/libcholmod.so
-- Found CHOLMOD header in: /usr/include/suitesparse
-- Found SuiteSparseQR library: /usr/lib/arm-linux-gnueabihf/libspqr.so
-- Found SuiteSparseQR header in: /usr/include/suitesparse
-- Did not find Intel TBB library, assuming SuiteSparseQR was not compiled with TBB.
-- Found SuiteSparse_config library: /usr/lib/arm-linux-gnueabihf/libsuitesparseconfig.a
-- Found SuiteSparse_config header in: /usr/include/suitesparse
-- Adding librt: /usr/lib/arm-linux-gnueabihf/librt.so to SuiteSparse_config libraries (required on Linux & Unix [not OSX] if SuiteSparse is compiled with timing).
-- Did not find METIS library (optional SuiteSparse dependency)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- python
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/opencv/OpenSfM/cmake_build
Compiling extension...
[ 2%] [ 5%] [ 7%] [ 10%] Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/AKAZE.cpp.o
Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/fed.cpp.o
Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/nldiffusion_functions.cpp.o
c++: error: unrecognized command line option ‘-msse’
c++: error: unrecognized command line option ‘-msse2’
c++: error: unrecognized command line option ‘-msse3’
CMakeFiles/akaze.dir/build.make:54: recipe for target 'CMakeFiles/akaze.dir/third_party/akaze/lib/AKAZE.cpp.o' failed
make[2]: *** [CMakeFiles/akaze.dir/third_party/akaze/lib/AKAZE.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’
CMakeFiles/akaze.dir/build.make:77: recipe for target 'CMakeFiles/akaze.dir/third_party/akaze/lib/fed.cpp.o' failed
make[2]: *** [CMakeFiles/akaze.dir/third_party/akaze/lib/fed.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’
CMakeFiles/akaze.dir/build.make:100: recipe for target 'CMakeFiles/akaze.dir/third_party/akaze/lib/nldiffusion_functions.cpp.o' failed
make[2]: *** [CMakeFiles/akaze.dir/third_party/akaze/lib/nldiffusion_functions.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/akaze.dir/all' failed
make[1]: *** [CMakeFiles/akaze.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/vlad.c.o
cc: error: unrecognized command line option ‘-msse’
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-msse3’
CMakeFiles/vl.dir/build.make:54: recipe for target 'CMakeFiles/vl.dir/third_party/vlfeat/vl/vlad.c.o' failed
make[2]: *** [CMakeFiles/vl.dir/third_party/vlfeat/vl/vlad.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 12%] [ 15%] [ 17%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/mser.c.o
cc: error: unrecognized command line option ‘-msse’
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-msse3’
CMakeFiles/vl.dir/build.make:77: recipe for target 'CMakeFiles/vl.dir/third_party/vlfeat/vl/mser.c.o' failed
make[2]: *** [CMakeFiles/vl.dir/third_party/vlfeat/vl/mser.c.o] Error 1
Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/rodrigues.c.o
Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/svm.c.o
cc: error: unrecognized command line option ‘-msse’
cc: error: unrecognized command line option ‘-msse’
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-msse3’
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-msse3’
CMakeFiles/vl.dir/build.make:123: recipe for target 'CMakeFiles/vl.dir/third_party/vlfeat/vl/svm.c.o' failed
make[2]: *** [CMakeFiles/vl.dir/third_party/vlfeat/vl/svm.c.o] Error 1
CMakeFiles/vl.dir/build.make:100: recipe for target 'CMakeFiles/vl.dir/third_party/vlfeat/vl/rodrigues.c.o' failed
make[2]: *** [CMakeFiles/vl.dir/third_party/vlfeat/vl/rodrigues.c.o] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/vl.dir/all' failed
make[1]: *** [CMakeFiles/vl.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Building package
running build
running build_py
Got the following without modifying CMakeLists.txt
Configuring...
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- A library with BLAS API found.
-- Found AMD library: /usr/lib/arm-linux-gnueabihf/libamd.so
-- Found AMD header in: /usr/include/suitesparse
-- Found CAMD library: /usr/lib/arm-linux-gnueabihf/libcamd.so
-- Found CAMD header in: /usr/include/suitesparse
-- Found COLAMD library: /usr/lib/arm-linux-gnueabihf/libcolamd.so
-- Found COLAMD header in: /usr/include/suitesparse
-- Found CCOLAMD library: /usr/lib/arm-linux-gnueabihf/libccolamd.so
-- Found CCOLAMD header in: /usr/include/suitesparse
-- Found CHOLMOD library: /usr/lib/arm-linux-gnueabihf/libcholmod.so
-- Found CHOLMOD header in: /usr/include/suitesparse
-- Found SuiteSparseQR library: /usr/lib/arm-linux-gnueabihf/libspqr.so
-- Found SuiteSparseQR header in: /usr/include/suitesparse
-- Did not find Intel TBB library, assuming SuiteSparseQR was not compiled with TBB.
-- Found SuiteSparse_config library: /usr/lib/arm-linux-gnueabihf/libsuitesparseconfig.a
-- Found SuiteSparse_config header in: /usr/include/suitesparse
-- Adding librt: /usr/lib/arm-linux-gnueabihf/librt.so to SuiteSparse_config libraries (required on Linux & Unix [not OSX] if SuiteSparse is compiled with timing).
-- Did not find METIS library (optional SuiteSparse dependency)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- python
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/opencv/OpenSfM/cmake_build
Compiling extension...
[ 5%] [ 5%] [ 7%] [ 10%] Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/AKAZE.cpp.o
Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/fed.cpp.o
Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/nldiffusion_functions.cpp.o
Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/vlad.c.o
[ 12%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/mser.c.o
[ 15%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/rodrigues.c.o
[ 17%] Building CXX object CMakeFiles/akaze.dir/third_party/akaze/lib/utils.cpp.o
[ 20%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/svm.c.o
[ 23%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/mathop.c.o
[ 25%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/quickshift.c.o
[ 28%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/scalespace.c.o
[ 30%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/generic.c.o
[ 33%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/imopv.c.o
[ 35%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/ikmeans.c.o
[ 38%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/fisher.c.o
[ 41%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/mathop_avx.c.o
[ 43%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/array.c.o
[ 46%] [ 48%] Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/imopv_sse2.c.o
Building C object CMakeFiles/vl.dir/third_party/vlfeat/vl/pgm.c.o
/home/pi/opencv/OpenSfM/opensfm/src/third_party/vlfeat/vl/imopv_sse2.c:15:2: error: #error "Compiling with SSE2 enabled, but no __SSE2__ defined"
#error "Compiling with SSE2 enabled, but no __SSE2__ defined"
^
/home/pi/opencv/OpenSfM/opensfm/src/third_party/vlfeat/vl/imopv_sse2.c:22:23: fatal error: emmintrin.h: No such file or directory
#include <emmintrin.h>
^
compilation terminated.
CMakeFiles/vl.dir/build.make:353: recipe for target 'CMakeFiles/vl.dir/third_party/vlfeat/vl/imopv_sse2.c.o' failed
make[2]: *** [CMakeFiles/vl.dir/third_party/vlfeat/vl/imopv_sse2.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/vl.dir/all' failed
make[1]: *** [CMakeFiles/vl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX static library libakaze.a
[ 48%] Built target akaze
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Building package
running build
running build_py
from opensfm.
Related Issues (20)
- Consider updating to a newer Sphinx and relaxing the constraints HOT 1
- Consider tagging a new release
- opensfm/test/test_commands.py::test_run_all doesn't pass with matplotlib 3.8.0
- Camera::PixelToNormalizedCoordinatesMany returns incorrect value? HOT 1
- Camera Positions from R, t vector in reconstruction.json HOT 1
- 360 camera feature point coordinate
- Obtaining a more crisp point cloud HOT 3
- Inquiry Regarding Representation of Position and Orientation Data in exif_overrides.json HOT 1
- Any suggestions to improve the speed of reconstructing 360 images?
- Parsing tracks.csv
- ValueError: Unable to determine Axes to steal space for Colorbar. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.
- Error when building using wsl ubuntu
- GPU Accelerated Feature Matching HOT 1
- merge sub-point cloud
- Using OpenSFM with a telescopic lens
- Unable to run, attempted to make changes but still failed HOT 2
- Wrong Flask resource paths in annotation_gui_gcp HOT 1
- cannot import name 'pybundle' from partially initialized module 'opensfm' (most likely due to a circular import)
- GCPs / GPS precision
- Install issue on Windows - python setup.py build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensfm.