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

Cound't find "org_lwjgl_openal_AL.h' when building boardwalk-lwjgl jni by NDK. #348

Open
longjunyu2 opened this issue Jun 8, 2019 · 4 comments

Comments

@longjunyu2
Copy link

我正在尝试通过Android NDK编译您的LWJGL2.9.1项目,但是遇到了一些问题。
由于我使用的是Windows操作系统,所以我对原项目的Android.mk进行了修改
但是在编译的时候,出现了错误

@longjunyu2 longjunyu2 reopened this Jun 8, 2019
@longjunyu2
Copy link
Author

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
#include "org_lwjgl_openal_AL.h"
^~~~~~~~~~~~~~~~~~~~~~~
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

<---

@zhuowei
Copy link
Owner

zhuowei commented Jun 8, 2019

@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.

@longjunyu2
Copy link
Author

@zhuowei 谢谢您的回答。在此之前我没有使用ant进行build。我将会再次尝试的,谢谢。:)

@zhuowei
Copy link
Owner

zhuowei commented Jun 8, 2019

@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.

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

2 participants