Skip to content

build meet error on macos  #15

@foxundermoon

Description

@foxundermoon
LOCAL_ARM_MODE := arm64-v8a
all: check build

check:
ifeq (, $(shell which ndk-build))
        $(error "No 'ndk-build' in PATH, please install Android NDK and configure properly")
endif

build:
	ndk-build APP_ABI="arm64-v8a" NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk

install:
	adb push libs/armeabi/drizzleDumper /data/local/tmp/
	#adb push libs/x86/drizzleDumper /data/local/tmp/

clean:
	rm -rf *.c~
	rm -rf *.h~
	rm -rf obj/
╰─ make 
ndk-build APP_ABI="arm64-v8a" NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.    
make[1]: Entering directory `/Volumes/data/workspace/android/apk/tool/drizzleDumper'
[arm64-v8a] Compile        : drizzleDumper <= drizzleDumper.c
In file included from ./drizzleDumper.c:6:
./drizzleDumper.h:18:10: fatal error: 'linux/user.h' file not found
#include <linux/user.h>
         ^~~~~~~~~~~~~~
1 error generated.
make[1]: *** [obj/local/arm64-v8a/objs/drizzleDumper/drizzleDumper.o] Error 1
make[1]: Leaving directory `/Volumes/data/workspace/android/apk/tool/drizzleDumper'
make: *** [build] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions