Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Create .apk from precompiled sources in windows Help please....  (Read 828 times)

0 Members and 1 Guest are viewing this topic.

fern

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile

Hi, sorry for my English, I use google translator.
I follow the instructions listed at http://res.dead-code.org/doku.php/wmelite:building, but I still can't create a .apk file.
I have installed:
android-ndk-r10e
android-ndk-r12b
Java build 1.8.0_211-b12

Path in windows set for ndk-build

Cloned Repository https://bitbucket.org/MnemonicWME/wmelite/src/default/ to D:

when you start NDK-build dosprompt writes me an error:
PS D: documents wmelite android_sdl_mixer> ndk-build
Android NDK: ERROR: jn / src / Android.mk: freetype: LOCAL_SRC_FILES
Android NDK: Check that jni / src /../../../ prebuilt / android / armeabi / libfreetype.a
C: / android-ndk-r12b / build //../ build / core / prebuilt-library.mk: 45: *** Android NDK: Aborting. Stop.

What am I doing wrong? Could you give me an advice please?

Czech version:

postupuji podle instrukcí, které jsou uvedeny na http://res.dead-code.org/doku.php/wmelite:building, ale stále se mi nedaří vytvořit soubor.apk.
mám nainstalován:
android-ndk-r10e
android-ndk-r12b
Java build 1.8.0_211-b12

Cestu ve windows nastavenou pro ndk-build

Klonované repository https://bitbucket.org/MnemonicWME/wmelite/src/default/ do D:\dokumenty\wmelite

při spuštění ndk-build mi píše dosprompt chybu:
PS D:\dokumenty\wmelite\android_sdl_mixer> ndk-build
Android NDK: ERROR:jni/src/Android.mk:freetype: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/src/../../../prebuilt/android/armeabi/libfreetype.a exists  or that its path is correct
C:/android-ndk-r12b/build//../build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

Co dělám špatně? Můžete mi prosím poradit?
« Last Edit: May 02, 2019, 10:05:53 AM by fern »
Logged

Lazov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Create .apk from precompiled sources in windows
« Reply #1 on: May 01, 2019, 10:34:44 AM »

Hi.
I use another repository, it works.
https://bitbucket.org/hcdaniel/wmelite-dependencies-for-linux-and-android/ - dependencies
https://bitbucket.org/hcdaniel/wmelite-rapaki-edition/ - wmelite
I build libraries on Linux. And the apk file on Windows. But you can build everything on Windows.
To build, I used the same instruction.
Logged

fern

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Create .apk from precompiled sources in windows
« Reply #2 on: May 01, 2019, 02:26:18 PM »

Hi, thank you for the new repository. Unfortunately the problem is still the same. I'm definitely doing something wrong :-(

I edited the files:
AndroidManifest.xml
org / example / yourapppackagename / YourGameName.java (to my names)
res / values / strings.xml
org / deadcode / wmelite / WMELiteFunctions.java
I created assets / files / data.png in the folder android_sdl_mixer

I ran in WindowsPowerShell NDK-build in folder android_sdl_mixer

I got an error message again
PS D: documents wmelite-rapaki android_sdl_mixer> ndk-build
Android NDK: ERROR: jn / src / Android.mk: freetype: LOCAL_SRC_FILES
Android NDK: Check that jni / src /../../../ prebuilt / android / armeabi / libfreetype.a
C: / android-ndk-r12b / build //../ build / core / prebuilt-library.mk: 45: *** Android NDK: Aborting. Stop.
PS D: documents wmelite-rapaki android_sdl_mixer>

Do I have to take other steps?
Logged

Lazov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #3 on: May 03, 2019, 11:19:32 AM »

Judging by the error, the compiler cannot find the file "src /../../../ prebuilt / android / armeabi / libfreetype.a"
You may have missed this step:
Quote
In the dependencies/ directory, sequentially enter the directories "FreeImage3154", "libfreetype-android" and "SDL". In each of them, call the build.sh script.

I can give you a project with already compiled libraries.
« Last Edit: May 03, 2019, 11:36:11 AM by Lazov »
Logged

fern

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #4 on: May 04, 2019, 01:35:31 PM »

hello, thank you for your help. when I tried to run build.sh in FreeImage3154 "," libfreetype-android "showed me error

PS D:\dokumenty\wmeprojects\dependencies-for\dependencies\freeimage3154> ndk-build
[armeabi] Compile++ thumb: freeimage <= BitmapAccess.cpp
jni/./Source/FreeImage/BitmapAccess.cpp:36:23: fatal error: FreeImage.h: No such file or directory
 #include "FreeImage.h"
compilation terminated.
make: *** [obj/local/armeabi/objs/freeimage/./Source/FreeImage/BitmapAccess.o] Error 1


"SDL" went right

I would like to learn to run it myself, but if you send the finished files, it will be great.
« Last Edit: May 04, 2019, 01:55:54 PM by fern »
Logged

Lazov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #5 on: May 04, 2019, 02:13:59 PM »

Try running from the jni folder:
D:\dokumenty\wmeprojects\dependencies-for\dependencies\freeimage3154\jni> ndk-build
But on Windows, I get other errors. I compile libraries on Linux, so I can't help here.
Logged

fern

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #6 on: May 04, 2019, 04:10:10 PM »

Some bugs have reported this and are not running correctly. What version of android and java do you use when compiling?
Logged

Lazov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #7 on: May 05, 2019, 10:07:45 AM »

You do not need Java to compile libraries.
I am using Android NDK r16b.
To build the APK on Windows installed Java 1.8.0.
« Last Edit: May 07, 2019, 12:09:38 AM by Lazov »
Logged

fern

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #8 on: May 06, 2019, 03:45:41 PM »

I'll try it on win XP. Is it possible to compile it on linux Mint? Or can you send me precompiled libraries?
Or will I send ".dcp" and you would do .apk? (this option will be complicated, my project is not yet complete, but I need to find out how it works on a mobile with an android)
Logged

Lazov

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Create .apk from precompiled sources in windows Help please....
« Reply #9 on: May 07, 2019, 12:08:28 AM »

You can install Linux on a virtual machine, for example, Ubuntu. And there compile libraries.

To test your project, you can install this application:
https://play.google.com/store/apps/details?id=org.deadcode.wmelite.development
Archives must be placed in the root of the SD card.

Here is a project with compiled libraries for Eclipse:
https://yadi.sk/d/VNcP924DV22p2A
« Last Edit: May 07, 2019, 12:11:01 AM by Lazov »
Logged
 

Page created in 0.288 seconds with 23 queries.