The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
 
Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Compile Android version with Cygwin [Faq]
11-07-2012, 09:24 PM (This post was last modified: 11-10-2012 10:51 AM by MaXiMu.)
Post: #1
How Compile Android version with Cygwin [Faq]
requirements
Cygwin
Android SDK For windows
NDK For windows
JDK x86 for windows
WinAnt Install

1. Cygwin
- Need to install devel packages
- Optional I recomended install one editor package Unix style -> nano or vim
- Wait Download and install packages Depend you conexion and PC.

[Image: 262wa5w.jpg]
[Image: 119tpn6.jpg]
[Image: fctwd1.jpg]
[Image: f9gx91.jpg]
[Image: 2mq4tmp.jpg]
[Image: opzgnp.jpg]
[Image: 2094wts.jpg]

2 . path environment variables SDK/NDK
-Once SDK and NDK downloaded and unzipped and installed JDK/Winant.
-You need path variables SDK/NDK on cygwin
- Doble click Cygwin terminal
- edit .bashrc_profile in terminal

Code:
nano .bashrc_profile

Add you path folder for Android-sdk/tools / Android-sdk/platforms-tools and android-ndk -> /cygdrive/letter partition/Folder/

Code:
export PATH=${PATH}:/cygdrive/c/Android/android-sdk/platform-tools
export PATH=${PATH}:/cygdrive/c/android-ndk-r8b
export PATH=${PATH}:/cygdrive/c/Android/android-sdk/tools

And update path

Code:
source .bash_profile

Now download source Github in terminal

Code:
git clone https://github.com/hrydgard/ppsspp.git

Download submodule Native

Code:
cd ppsspp
git submodule init
git submodule update

Now edit in cd ppsspp/android

Code:
nano project.properties

Code:
target=android-16
android.library.reference.1=../native/android

And
Code:
nano ab.sh

Code:
NDK_MODULE_PATH=..:../native/ext ndk-build -j 3

Now need create build.xml for ant

NOTE : You need download first API 16

In the cygwin you write

Code:
android.bat

Wait load android SDK Manager -> select Android 4.1.2 (API 16) and install.

[Image: 2znvp6f.jpg]

Code:
cd
android.bat update project --target android-16 --path ppsspp/android
android.bat update project --target android-16 --path ppsspp/native/android

Now go to ppsspp/android

Code:
cd ppsspp/android
sh ab.sh

Note : Wait Several minutes for compile libnativeaudio.so and ppssppjni.so

If Correct See who are two files .so in the folder libs/armeabi-v7a

Finally ant debug

Code:
Ant debug

If you've gotten this far without error and you make the apk in / bin is that you've accomplished correctly.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How Compile Android version with Cygwin [Faq] - MaXiMu - 11-07-2012 09:24 PM

Forum Jump: