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. 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 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 Now edit in cd ppsspp/android Code: nano project.properties Code: target=android-16 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. Code: cd Now go to ppsspp/android Code: cd ppsspp/android 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. |
|||
11-07-2012, 10:58 PM
Post: #2
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
I find it much easier to just use the Android NDK, "ab.cmd" and Eclipse to then build and start the Android APK, but sure
|
|||
11-08-2012, 02:15 PM
Post: #3
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
I have this error in cygwin
Code: Marc@Marco ~ |
|||
11-08-2012, 02:59 PM
(This post was last modified: 11-08-2012 03:05 PM by MaXiMu.)
Post: #4
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
Quote: You try should fix with git config --system http.sslcainfo \\bin\\curl-ca-bundle.crt But If not work possible missing curl-ca-bundle.crt package re-install cygwin and research ca-certificate package No idea for this error I don't install this package in my pc. |
|||
11-08-2012, 03:50 PM
Post: #5
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
(11-08-2012 02:59 PM)MaXiMu Wrote:Hi,Quote: downloading ca-certificate helped. Now I'm at Quote:Now need create build.xml for ant Can you advise what to do in this step cause I'm a bit lost. |
|||
11-08-2012, 04:20 PM
(This post was last modified: 11-08-2012 04:21 PM by MaXiMu.)
Post: #6
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
Quote:Can you advise what to do in this step cause I'm a bit lost. In the cygwin you write android.bat Wait load android SDK Manager -> select Android 4.1.2 (API 16) and install. |
|||
11-08-2012, 04:42 PM
(This post was last modified: 11-08-2012 04:51 PM by macia10.)
Post: #7
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
android.bat does not wrok for me but I've downloaded API16 manually. I can see that android.bat is needed later. Where should it be and how to get it?
EDIT: and after I did this: Quote:Add you path folder for Android-sdk/tools / Android-sdk/platforms-tools and android-ndk -> /cygdrive/letter partition/Folder/should it see ndk-build command? Because it does not... paths are correct as I'm using exactly the same. |
|||
11-08-2012, 07:05 PM
Post: #8
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
these path environments is in my case on my pc and I use for example .
/cygdrive/c/Android/android-sdk/platform-tools = C:/Android/android-sdk/platform-tools /cygdrive/c/android-ndk-r8b = C:/android-ndkr8b /cygdrive/c/Android/android-sdk/tools = C:/Android/android-sdk/tools |
|||
11-08-2012, 07:32 PM
Post: #9
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
(11-08-2012 07:05 PM)MaXiMu Wrote: these path environments is in my case on my pc and I use for example . I have the exactly same one's. Could you tell me more about android.bat file? where it should be and what's the content. Could you maybe PM me with your msn mail or other communicator for faster communication ? |
|||
11-08-2012, 08:15 PM
Post: #10
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
Android.bat is part By SDK android common used for update and create build.xml for android ant project or access SDK manager in tools folder
In any case if you tell me at what point you lose exactly?. ndk-build not found by cygwin?, android.bat not work on cygwin?. |
|||
11-08-2012, 10:21 PM
Post: #11
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
both actually should android.bat work from any dir? Basically I did everything until android.bat which does not work.
Probably something is wrong here Quote:Code:When I type just $PATH I get: Code: Marc@Marco ~ |
|||
11-09-2012, 12:34 AM
(This post was last modified: 11-09-2012 12:35 AM by MaXiMu.)
Post: #12
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
Bash_profile
Quote:should android.bat work from any dir? Yes if path enviroment folder is correct Please Upload photo For I see on what folder Android-sdk and ndk thanks. My Bash_profile Code: # To the extent possible under law, the author(s) have dedicated all |
|||
11-10-2012, 10:24 AM
(This post was last modified: 11-10-2012 10:37 AM by macia10.)
Post: #13
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
(11-09-2012 12:34 AM)MaXiMu Wrote: Bash_profileHi, Now I can see the problem Code: nano .bashrc_profile and should be nano .bash_profile the file name was bad... But now I have another problem. Code: $ android.bat update project --target android-16 ppsspp/android Ok found the problem. Another line is wrong it is Code: cd android.bat update project --target android-16 ppsspp/android android.bat update project --target android-16 ppsspp/native/android and should be Code: cd android.bat update project --target android-16 --path ppsspp/android android.bat update project --target android-16 --path ppsspp/native/android |
|||
11-12-2012, 01:59 PM
(This post was last modified: 11-12-2012 02:03 PM by acocalypso.)
Post: #14
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
]Hello everybody, thanks for this tutorial,
id tried it but i failed at building the xml... here is a screenshot, please tell me whats wrong? i dont know why ive got a permission denied -.- here is my ab.sh PHP Code: NDK_MODULE_PATH=..:../native/ext C:/android/android-ndk-r8b/ndk-build -j 3 .bash_profile PHP Code: # Set INFOPATH so it includes users' private info if it exists |
|||
11-20-2012, 06:11 PM
Post: #15
|
|||
|
|||
RE: How Compile Android version with Cygwin [Faq]
ok solved those problems by my self
but maybe someone could tell me whats the problem here: |
|||
« Next Oldest | Next Newest »
|