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

linux aarch64 support? #19

Open
maxmadzz opened this issue Oct 24, 2020 · 2 comments
Open

linux aarch64 support? #19

maxmadzz opened this issue Oct 24, 2020 · 2 comments

Comments

@maxmadzz
Copy link

Trying to compile on the aarch64 platform, there are many errors, is there any intention to support the aarch64 platform?

@duwke
Copy link

duwke commented Apr 7, 2021

Somehow, this post makes it seem like it worked on the Jetson. I don't know how. https://forums.developer.nvidia.com/t/running-meshroom-on-2gb-jetson-nano/173469/6

@tkircher
Copy link

It does work on the Jetson. Like the commenter said, you have to create a platform for it. For example,

$ mkdir cmake/platforms/Linux64-gcc-Jetson
$ touch cmake/platforms/Linux64-gcc-Jetson/config.cmake
$ touch cmake/platforms/Linux64-gcc-Jetson/setvars.sh

Leave setvars.sh empty. In config.cmake:

include(${GEOGRAM_SOURCE_DIR}/cmake/platforms/Linux-gcc.cmake)

set(ARM_FLAGS -march=native -mcpu=cortex-a57)

add_flags(CMAKE_CXX_FLAGS -DGEO_USE_DUMMY_ATOMICS ${ARM_FLAGS})
add_flags(CMAKE_C_FLAGS -DGEO_USE_DUMMY_ATOMICS ${ARM_FLAGS})

Modify your top-level CMakeLists.txt a bit:

set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)
set(THREADS_PREFER_PTHREAD_FLAG ON)

Modify your CMakeOptions.txt too:

set(GEOGRAM_WITH_GRAPHICS OFF)
set(GEOGRAM_WITH_TETGEN ON)

Then use Linux64-gcc-Jetson as your platform, build as usual.

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