-
Makefile CMakeLists.txt |
Beta Was this translation helpful? Give feedback.
Answered by
jacknrose
Mar 4, 2025
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
taiqzheng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try like this:
mkdir build-riscv && cd build-riscv
cmake
-DCMAKE_SYSTEM_NAME=Linux
-DCMAKE_SYSTEM_PROCESSOR=riscv64
-DCMAKE_C_COMPILER=riscv64-unknown-linux-gnu-gcc
-DCMAKE_CXX_COMPILER=riscv64-unknown-linux-gnu-g++
-DCMAKE_BUILD_TYPE=Debug
-DBUILD_SHARED_LIBS=OFF
..
make -j8
Anyway, It works on my machine.