box64
box64 copied to clipboard
'obstack.h' file not found when build using android NDK
Steps:
mkdir build; cd build
cmake ..
-DANDROID_ABI=arm64-v8a
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
-DANDROID_PLATFORM=31
-DCMAKE_BUILD_TYPE=Release
-DBOX32=ON
-DBUILD_TESTS=OFF
make -j4
Error happens:
.../box64/src/libtools/myalign32.c:9:10: fatal error: 'obstack.h' file not found 9 | #include <obstack.h>
+1 Related issue: https://github.com/crosstool-ng/crosstool-ng/issues/2453
Maybe we can use musl-obstack to build box64 on Android. https://github.com/void-linux/musl-obstack