Open longjunyu2 opened 5 years ago
Sorry that I failed to upload picture via Github.Here are some text about the error.
---> Error while executing process G:\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=G:\Aproject\lwjgl\app\src\main\jni\Android.mk NDK_APPLICATION_MK=G:\Aproject\lwjgl\app\src\main\jni\Application.mk APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-19 NDK_OUT=G:/Aproject/lwjgl/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=G:\Aproject\lwjgl\app\build\intermediates\ndkBuild\debug\lib G:/Aproject/lwjgl/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/liblwjgl.so} [x86_64] Compile : lwjgl <= android_al.c G:/Aproject/lwjgl/app/src/main/jni/native/android/android_al.c:36:10: fatal error: 'org_lwjgl_openal_AL.h' file not found
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated. make: *** [G:/Aproject/lwjgl/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/objs-debug/lwjgl/native/android/android_al.o] Error 1
at com.android.build.gradle.tasks.ExternalNativeBuildTaskUtils.executeBuildProcessAndLogError(ExternalNativeBuildTaskUtils.java:245)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.executeProcessBatch(ExternalNativeBuildTask.java:307)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.build(ExternalNativeBuildTask.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
... 120 more
<---
@longjunyu2 Did you build lwjgl with ant first? The Java part of LWJGL needs to be built with ant first to generate the native headers.
I haven't touched this in like four years, so sorry if something broke in the meantime.
@zhuowei 谢谢您的回答。在此之前我没有使用ant进行build。我将会再次尝试的,谢谢。:)
@longjunyu2 Also, I built this on Ubuntu 14.04 - if something breaks, you might want to try building on Linux or Windows Subsystem for Linux.
我正在尝试通过Android NDK编译您的LWJGL2.9.1项目,但是遇到了一些问题。 由于我使用的是Windows操作系统,所以我对原项目的Android.mk进行了修改 但是在编译的时候,出现了错误