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

Errors compiling on ARM (raspberry pi 3) #94

Open
rvdende opened this issue Sep 10, 2017 · 4 comments
Open

Errors compiling on ARM (raspberry pi 3) #94

rvdende opened this issue Sep 10, 2017 · 4 comments

Comments

@rvdende
Copy link

rvdende commented Sep 10, 2017

Hey I have compile errors on raspberry pi. I had to mount an external usb flash drive as additional swap to actually get some progress during make.

I tried with and without git submodule update --init

This is the error I get with the ARM SSE2NEON code:

make
Scanning dependencies of target dso
[ 4%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/FullSystem.cpp.o
[ 8%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/FullSystemOptimize.cpp.o
[ 12%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/FullSystemOptPoint.cpp.o
[ 16%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/FullSystemDebugStuff.cpp.o
[ 20%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/FullSystemMarginalize.cpp.o
[ 24%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/Residuals.cpp.o
[ 28%] Building CXX object CMakeFiles/dso.dir/src/FullSystem/CoarseTracker.cpp.o
In file included from /home/pi/Desktop/dso_arm/dso/thirdparty/sse2neon/SSE2NEON.h:123:0,
from /home/pi/Desktop/dso_arm/dso/src/OptimizationBackend/MatrixAccumulators.h:29,
from /home/pi/Desktop/dso_arm/dso/src/FullSystem/CoarseTracker.h:32,
from /home/pi/Desktop/dso_arm/dso/src/FullSystem/CoarseTracker.cpp:32:
/usr/lib/gcc/arm-linux-gnueabihf/6/include/arm_neon.h: In function ‘__m128 _mm_set1_ps(float)’:
/usr/lib/gcc/arm-linux-gnueabihf/6/include/arm_neon.h:5798:1: error: inlining failed in call to always_inline ‘float32x4_t vdupq_n_f32(float32_t)’: target specific option mismatch
vdupq_n_f32 (float32_t __a)
^~~~~~~~~~~
In file included from /home/pi/Desktop/dso_arm/dso/src/OptimizationBackend/MatrixAccumulators.h:29:0,
from /home/pi/Desktop/dso_arm/dso/src/FullSystem/CoarseTracker.h:32,
from /home/pi/Desktop/dso_arm/dso/src/FullSystem/CoarseTracker.cpp:32:
/home/pi/Desktop/dso_arm/dso/thirdparty/sse2neon/SSE2NEON.h:155:4: note: called from here
(x)
^
/home/pi/Desktop/dso_arm/dso/thirdparty/sse2neon/SSE2NEON.h:324:9: note: in expansion of macro ‘vreinterpretq_m128_f32’
return vreinterpretq_m128_f32(vdupq_n_f32(_w));
^~~~~~~~~~~~~~~~~~~~~~
CMakeFiles/dso.dir/build.make:206: recipe for target 'CMakeFiles/dso.dir/src/FullSystem/CoarseTracker.cpp.o' failed
make[2]: *** [CMakeFiles/dso.dir/src/FullSystem/CoarseTracker.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/dso.dir/all' failed
make[1]: *** [CMakeFiles/dso.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Has anyone managed to get past this error?

@rvdende
Copy link
Author

rvdende commented Sep 10, 2017

Oh I found a pull request, going to test it.
#80

@YJCITA
Copy link

YJCITA commented Sep 14, 2017

What's the frequency can it run on pi3? (how many images can calculate every second )

@MorganChabaud
Copy link

Well, this depends on so many variables...

To give you an idea, on 512x512, fast settings, an iteration (non-keyframe) takes 80ms (keyframe iteration around 150ms).

Did the pull request worked for you @fluentart ?

@YJCITA
Copy link

YJCITA commented Sep 19, 2017

@chabaudmorgan I see, thank you very much!

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

3 participants