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

Jetson AGX Xavier building error #86

Open
marcoCella opened this issue Feb 14, 2022 · 0 comments
Open

Jetson AGX Xavier building error #86

marcoCella opened this issue Feb 14, 2022 · 0 comments

Comments

@marcoCella
Copy link

When building the repo on the Xavier, I get the following error:

~/auvlib/build$ make -j4

Scanning dependencies of target tinyxml2
Scanning dependencies of target auvlib_glad
Scanning dependencies of target math
Scanning dependencies of target sys
[  0%] Building CXX object src/embree/common/math/CMakeFiles/math.dir/constants.cpp.o
[  1%] Building CXX object src/CMakeFiles/tinyxml2.dir/libigl/external/tinyxml2/tinyxml2.cpp.o
c++: error: unrecognized command line option ‘-msse2’
src/embree/common/math/CMakeFiles/math.dir/build.make:62: recipe for target 'src/embree/common/math/CMakeFiles/math.dir/constants.cpp.o' failed
make[2]: *** [src/embree/common/math/CMakeFiles/math.dir/constants.cpp.o] Error 1
CMakeFiles/Makefile2:1286: recipe for target 'src/embree/common/math/CMakeFiles/math.dir/all' failed
make[1]: *** [src/embree/common/math/CMakeFiles/math.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  1%] Building C object src/CMakeFiles/auvlib_glad.dir/libigl/external/glad/src/glad.c.o
[  1%] Building CXX object src/embree/common/sys/CMakeFiles/sys.dir/sysinfo.cpp.o
[  2%] Building CXX object src/embree/common/sys/CMakeFiles/sys.dir/alloc.cpp.o
c++: error: unrecognized command line option ‘-msse2’
src/embree/common/sys/CMakeFiles/sys.dir/build.make:62: recipe for target 'src/embree/common/sys/CMakeFiles/sys.dir/sysinfo.cpp.o' failed
make[2]: *** [src/embree/common/sys/CMakeFiles/sys.dir/sysinfo.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: error: unrecognized command line option ‘-msse2’
src/embree/common/sys/CMakeFiles/sys.dir/build.make:86: recipe for target 'src/embree/common/sys/CMakeFiles/sys.dir/alloc.cpp.o' failed
make[2]: *** [src/embree/common/sys/CMakeFiles/sys.dir/alloc.cpp.o] Error 1
CMakeFiles/Makefile2:1231: recipe for target 'src/embree/common/sys/CMakeFiles/sys.dir/all' failed
make[1]: *** [src/embree/common/sys/CMakeFiles/sys.dir/all] Error 2
[  3%] Linking C static library libauvlib_glad.a
[  3%] Built target auvlib_glad
[  3%] Linking CXX static library libtinyxml2.a
[  3%] Built target tinyxml2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

It looks like the problem comes from the embree submodule of libigl. By taking a closer look I saw that the imported version is v3.5.2, which does not support ARM architectures. This feature has been implemented starting from v3.13.0.

Having said that, I tried a variety of options, including:

However, the same error kept occurring.

Anyway, this is just my assumption on what the issue could be, maybe I'm extremely off-track and the fix turns out to be easier than expected.

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