box64 icon indicating copy to clipboard operation
box64 copied to clipboard

'obstack.h' file not found when build using android NDK

Open tigerking opened this issue 1 year ago • 2 comments

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>

tigerking avatar Jun 01 '25 03:06 tigerking

+1 Related issue: https://github.com/crosstool-ng/crosstool-ng/issues/2453

4ntoine avatar Sep 29 '25 05:09 4ntoine

Maybe we can use musl-obstack to build box64 on Android. https://github.com/void-linux/musl-obstack

boatsky avatar Aug 20 '26 15:08 boatsky