Comments (10)
Thanks, fixed with LWJGL/lwjgl3@11a2e74.
from android-test.
I don't even have this repository cloned on my laptop after the first delete. I simply followed the instructions again, ensuring this time I had set ANDROID_SDK_HOME
- clone lwjgl3 and checkout the android branch.
- SET/export the ANDROID_SDK_HOME environment variable. Its value should be the root of the Android SDK. The Android NDK must also be installed under the root, in the default ndk-bundle subdirectory.
- Run ant compile-templates. This will take 1-2 minutes.
It makes no mention, ironically, of needing the repository it is the readme for, nor where I should put said repository.
I couldn't checkout android this time either, so had to create that branch from master/android, again, missing this repo entirely.
from android-test.
I'm not sure what problem you're having exactly.
This repository contains a simple android project, which depends on an android build of lwjgl3. There are no released builds of lwjgl3 for android, so that means you must build it manually.
You can clone and build lwjgl3 (by following the instructions) in any folder. You then copy <lwjgl3>/bin/android/lwjgl.aar
to the /lwjgl/` folder. Then you can build the android project.
This process is not meant to be particularly easy, normally you'd just download lwjgl3 for android from the site or maven central. Please understand that this repository is a work-in-progress. If you simply want to try out the demos, you can download pre-built APKs from here.
from android-test.
I've built lwjgl3, I then had to create the android branch from master/android because it was missing. As it stands I have no android folder in bin.
Perhaps you could verify this for me as I can't locate (again) the instructions other than those on the android-test github page which I quoted above.
This is the content of my lwjgl3 directory:
. build.gradle .directory .gitignore gradlew libs README.md
.. build.xml doc gradle gradlew.bat LICENSE.md settings.gradle
bin config .git gradle.properties .idea modules update-dependencies.xml
And this the bin:
. .. Core Generator linux Templates Tests
If there are some other instructions, I'd be happy to follow them. Thank you.
from android-test.
I've built lwjgl3, I then had to create the android branch
This is backwards. You must first checkout the android branch and then build lwjgl3.
from master/android because it was missing.
I'm not sure how it can be missing, it's right here. This should work:
git clone https://github.com/LWJGL/lwjgl3.git
cd lwjgl3
git checkout android
Perhaps you could verify this for me as I can't locate (again) the instructions other than those on the android-test github page which I quoted above.
There are no other instructions. Running "ant compile-templates aar" should produce the android binaries. If you mean general instructions for lwjgl3, see doc/README and the wiki.
And this the bin:
. .. Core Generator linux Templates Tests
This means you did a standard Linux build, instead of an Android build. The only thing you need to do to enable the Android build is export ANDROID_SDK_HOME=<path/to/android/sdk>
If you're still having trouble, please post the build output.
from android-test.
Hmm, when you say "here" it appears slightly different to the lwjgl I thought I needed, https://github.com/LWJGL/lwjgl3, and indeed had acquired by following your instructions:
git clone [email protected]:ployt0/lwjgl3.git
> git clone https://github.com/LWJGL/lwjgl3.git
cd lwjgl3
> git checkout android
git checkout -t origin/android
I do have some android folder, but they contain nothing more significant than view->Surface.java
If I knew where to find the build output I would have checked it, as the command line (used to) advised, here is the command line output:
ant compile-templates aar
Buildfile: /home/xxxxx/lwjgl3/build.xmlinit:
check-dependencies:
-compile-generator:
bindings:
compile-templates:
[Templates] Compiling Kotlin templates. This will take 1-2 minutes...
[kotlinc] Compiling [/home/xxxxx/lwjgl3/modules/templates/src/main/android, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/assimp, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/bgfx, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/egl, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/glfw, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/nanovg, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/nuklear, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/openal, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/opencl, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/opengl, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/opengles, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/openvr, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/stb, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/vulkan, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/dyncall, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/jawt, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/jemalloc, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/jni, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/libc, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/android, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/linux, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/macosx, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/templates, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/windows, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/lmdb, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/nfd, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/par, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/simd, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/tinyexr, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/tinyfd, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/xxhash, /home/xxxxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/util/yoga] => [/home/xxxxx/lwjgl3/bin/Templates]
[kotlinc] info: Kotlin Compiler version 1.1.0-rc-91
[kotlinc] error: source file or directory not found: /home/xxxxx/lwjgl3/modules/templates/src/main/androidBUILD FAILED
from android-test.
Hmm, when you say "here" it appears slightly different to the lwjgl I thought I needed, https://github.com/LWJGL/lwjgl3, and indeed had acquired by following your instructions
It's the same repo. I just linked to the android
branch.
I do have some android folder, but they contain nothing more significant than view->Surface.java
Then you haven't updated to the latest commit. It sounds like you're having trouble with git.
git clone [email protected]:ployt0/lwjgl3.git
My suggestion is: try a fresh clone of lwjgl3. Do not use your fork, unless you're sure how to properly keep it synchronized with the upstream repository. The android branch in your fork has not been updated with the latest changes.
from android-test.
git clone https://github.com/LWJGL/lwjgl3.git
cd lwjgl3
git checkout android
ant compile-templates
works but doesn't give android folder in the root or bin directory.
so I try
ant compile-templates aar
and this is what I get:
[javac: Core] /home/xxxx/lwjgl3master/lwjgl3/modules/core/src/generated/java/org/lwjgl/system/android/ANativeWindow.java:65: error: cannot find symbol
[javac: Core] public static native long nANativeWindow_fromSurface(long __functionAddress, Surface surface);
[javac: Core] ^
[javac: Core] symbol: class Surface
[javac: Core] location: class ANativeWindow
[javac: Core] /home/xxxx/lwjgl3master/lwjgl3/modules/core/src/generated/java/org/lwjgl/system/android/ANativeWindow.java:67: error: cannot find symbol
[javac: Core] public static long ANativeWindow_fromSurface(Surface surface) {
[javac: Core] ^
[javac: Core] symbol: class Surface
[javac: Core] location: class ANativeWindow
[javac: Core] 3 errorsBUILD FAILED
/home/xxxx/lwjgl3master/lwjgl3/build.xml:370: Compile failed; see the compiler error output for details.
from android-test.
I can't reproduce it. Did you export ANDROID_SDK_HOME
before running ant compile-templates aar
?
from android-test.
Yes, that is set.
I tried once more, this time integrating the "master" instructions:
- git clone [email protected]:ployt0/lwjgl3.git
- cd lwjgl3
- ant init
- git checkout android
- ant compile-templates
Whereupon it stops with
[kotlinc] info: Kotlin Compiler version 1.1.0-rc-91
[kotlinc] /home/xxx/lwjgl3/modules/templates/src/main/kotlin/org/lwjgl/system/android/AndroidTypes.kt:20:15: error: unresolved reference: android
[kotlinc] val Surface = android.view.Surface::class.jobject
[kotlinc] ^BUILD FAILED
/home/xxx/lwjgl3/build.xml:215: Compile failed; see the compiler error output for details.
Which looks pretty much like my original issue, although now I'm back using my using my fork, since it is no worse than yours.
from android-test.
Related Issues (9)
- https://github.com/code-disaster/ libgdx-snippets/tree/master/src/
- Trouble creating the lwjgl.aar file HOT 10
- vkCreateDebugReportCallbackEXT causes segmentation fault HOT 8
- unresolved reference: ANativeWindow HOT 14
- Generate arr BUILD FAILED retrolambda HOT 1
- Must use Android NDK r15c
- BUILD FAILED Target "aar" does not exist HOT 5
- android gradle with natives libs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-test.