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.
When building the repo on the Xavier, I get the following error:
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:
make xCPUARCH=armv8l -j4as suggested in this other issueHowever, 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.