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

Okvis uses cross-compiler for host compile #94

Open
Desperado17 opened this issue Jan 17, 2024 · 0 comments
Open

Okvis uses cross-compiler for host compile #94

Desperado17 opened this issue Jan 17, 2024 · 0 comments

Comments

@Desperado17
Copy link

Greetings, I'm currently trying to cross-compile okvis 1.1.3 from this zip for aarch64:

https://www.doc.ic.ac.uk/~sleutene/software/okvis-1.1.3.zip

Unfortunately, some compile seems to fail because it seems to use the cross-compiler for a step that should have been done by the host compiler ( in this case /usr/bin/g++ instead of the cross toolchains aarch64-linux-gnu-g++ ) :

[ 2%] Performing configure step for 'ceres_external'
[ 2%] Performing configure step for 'brisk_external'
[ 4%] Performing configure step for 'opengv_external'
[ 5%] Building CXX object okvis_util/CMakeFiles/okvis_util.dir/src/dependency-tracker.cc.o
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at CMakeLists.txt:32 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at CMakeLists.txt:33 (CMAKE_POLICY):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

aarch64-linux-gnu-g++: error: unrecognized command line option '-mssse3'
make[2]: *** [okvis_util/CMakeFiles/okvis_util.dir/build.make:76: okvis_util/CMakeFiles/okvis_util.dir/src/dependency-tracker.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:384: okvis_util/CMakeFiles/okvis_util.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Any idea on how to fix this?

Regards

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