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

build meet error on macos #15

Open
foxundermoon opened this issue Sep 1, 2019 · 1 comment
Open

build meet error on macos #15

foxundermoon opened this issue Sep 1, 2019 · 1 comment

Comments

@foxundermoon
Copy link

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
@foxundermoon
Copy link
Author

fix to <sys/user.h>
seem is ok

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

1 participant