PDA

View Full Version : Need help on windows android compile



youngvleo
10-07-2012, 10:35 AM
Hi Everybody,

I'm an andriod newbie who is trying to compile RTBareBones android on my windows 7 enviroment. Have following this tutorial http://www.rtsoft.com/wiki/doku.php?id=proton:android_setup
However, when excuting build.bat, I got following error. Could you guys help me out of the mire?
Thanks a lot! :sweatdrop:

Below is my output of build.bat. Seems I didn't provide "target" parameter?


D:\proton\RTBareBones\android>build.bat

D:\proton\RTBareBones\android>call build_prepare.bat

D:\proton\RTBareBones\android>call app_info_setup.bat

D:\proton\RTBareBones\android>set APP_NAME=RTBareBones

D:\proton\RTBareBones\android>set SMALL_PACKAGE_NAME=rtbarebones

D:\proton\RTBareBones\android>set COMPANY_PACKAGE_NAME=rtsoft

D:\proton\RTBareBones\android>set PACKAGE_NAME=com.rtsoft.rtbarebones

D:\proton\RTBareBones\android>set EMULATOR_AVD=@AVD_16

D:\proton\RTBareBones\android>set ANDROID_EMU=emulator-5554


D:\proton\RTBareBones\android>call android update project -p ./
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
已复制 1 个文件。
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.


D:\proton\RTBareBones\android>rmdir assets /S /Q

D:\proton\RTBareBones\android>mkdir assets

D:\proton\RTBareBones\android>rmdir libs /S /Q

D:\proton\RTBareBones\android>del libs
找不到 D:\proton\RTBareBones\android\libs

D:\proton\RTBareBones\android>mkdir libs

D:\proton\RTBareBones\android>mkdir assets\interface

D:\proton\RTBareBones\android>xcopy ..\bin\interface assets\interface /E /F /Y
D:\proton\RTBareBones\bin\interface\font_trajan.rt font -> D:\proton\RTBareBones\
android\assets\interface\font_trajan.rtfont
D:\proton\RTBareBones\bin\interface\test.bmp -> D:\proton\RTBareBones\android\as
sets\interface\test.bmp
复制了 2 个文件

D:\proton\RTBareBones\android>mkdir assets\game

D:\proton\RTBareBones\android>xcopy ..\bin\game assets\game /E /F /Y
找不到文件 - game
复制了 0 个文件

D:\proton\RTBareBones\android>mkdir assets\audio

D:\proton\RTBareBones\android>xcopy ..\bin\audio assets\audio /E /F /Y
找不到文件 - audio
复制了 0 个文件

D:\proton\RTBareBones\android>del libs\armeabi\librtbarebones.so
系统找不到指定的文件。

D:\proton\RTBareBones\android>rmdir bin /S /Q
系统找不到指定的文件。

D:\proton\RTBareBones\android>rmdir gen /S /Q
系统找不到指定的文件。

D:\proton\RTBareBones\android>rmdir temp_final_src /S /Q

D:\proton\RTBareBones\android>rmdir temp_src /S /Q

D:\proton\RTBareBones\android>mkdir temp_src

D:\proton\RTBareBones\android>mkdir temp_src\com

D:\proton\RTBareBones\android>mkdir temp_src\com\rtsoft

D:\proton\RTBareBones\android>mkdir temp_src\com\rtsoft\rtbarebones

D:\proton\RTBareBones\android>xcopy src temp_src\com\rtsoft\rtbarebones /E /F /
Y
D:\proton\RTBareBones\android\src\Main.java -> D:\proton\RTBareBones\android\tem
p_src\com\rtsoft\rtbarebones\Main.java
复制了 1 个文件

D:\proton\RTBareBones\android>mkdir temp_final_src

D:\proton\RTBareBones\android>mkdir temp_final_src\com

D:\proton\RTBareBones\android>xcopy ..\..\shared\android\v2_src\java temp_src\co
m\rtsoft\rtbarebones /E /F /Y
D:\proton\shared\android\v2_src\java\BillingReceiv er.java -> D:\proton\RTBareBon
es\android\temp_src\com\rtsoft\rtbarebones\Billing Receiver.java
D:\proton\shared\android\v2_src\java\BillingServic e.java -> D:\proton\RTBareBone
s\android\temp_src\com\rtsoft\rtbarebones\BillingS ervice.java
D:\proton\shared\android\v2_src\java\Consts.java -> D:\proton\RTBareBones\androi
d\temp_src\com\rtsoft\rtbarebones\Consts.java
D:\proton\shared\android\v2_src\java\PurchaseObser ver.java -> D:\proton\RTBareBo
nes\android\temp_src\com\rtsoft\rtbarebones\Purcha seObserver.java
D:\proton\shared\android\v2_src\java\ResponseHandl er.java -> D:\proton\RTBareBon
es\android\temp_src\com\rtsoft\rtbarebones\Respons eHandler.java
D:\proton\shared\android\v2_src\java\Security.java -> D:\proton\RTBareBones\andr
oid\temp_src\com\rtsoft\rtbarebones\Security.java
D:\proton\shared\android\v2_src\java\SharedActivit y.java -> D:\proton\RTBareBone
s\android\temp_src\com\rtsoft\rtbarebones\SharedAc tivity.java
D:\proton\shared\android\v2_src\java\SharedMultiTo uchInput.java -> D:\proton\RTB
areBones\android\temp_src\com\rtsoft\rtbarebones\S haredMultiTouchInput.java
D:\proton\shared\android\v2_src\java\util\Base64.j ava -> D:\proton\RTBareBones\a
ndroid\temp_src\com\rtsoft\rtbarebones\util\Base64 .java
D:\proton\shared\android\v2_src\java\util\Base64De coderException.java -> D:\prot
on\RTBareBones\android\temp_src\com\rtsoft\rtbareb ones\util\Base64DecoderExcepti
on.java
复制了 10 个文件

D:\proton\RTBareBones\android>echo d | xcopy ..\..\shared\android\optional_src
\com\android temp_final_src\com\android /E /F /Y
目标 D:\proton\RTBareBones\android\temp_final_src\com\a ndroid 是文件名
还是目录名
(F = 文件,D = 目录)? d
D:\proton\shared\android\optional_src\com\android\ vending\billing\IMarketBilling
Service.aidl -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending
\billing\IMarketBillingService.aidl
D:\proton\shared\android\optional_src\com\android\ vending\licensing\AESObfuscato
r.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licen
sing\AESObfuscator.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\DeviceLimite
r.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licen
sing\DeviceLimiter.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\ILicenseResu
ltListener.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vend
ing\licensing\ILicenseResultListener.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\ILicensingSe
rvice.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\l
icensing\ILicensingService.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\LicenseCheck
er.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\lice
nsing\LicenseChecker.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\LicenseCheck
erCallback.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vend
ing\licensing\LicenseCheckerCallback.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\LicenseValid
ator.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\li
censing\LicenseValidator.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\NullDeviceLi
miter.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\l
icensing\NullDeviceLimiter.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\Obfuscator.j
ava -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licensin
g\Obfuscator.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\Policy.java
-> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licensing\Po
licy.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\PreferenceOb
fuscator.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vendin
g\licensing\PreferenceObfuscator.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\ResponseData
.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licens
ing\ResponseData.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\ServerManage
dPolicy.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending
\licensing\ServerManagedPolicy.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\StrictPolicy
.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licens
ing\StrictPolicy.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\ValidationEx
ception.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending
\licensing\ValidationException.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\util\Base64.
java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid\vending\licensi
ng\util\Base64.java
D:\proton\shared\android\optional_src\com\android\ vending\licensing\util\Base64D
ecoderException.java -> D:\proton\RTBareBones\android\temp_final_src\com\a ndroid
\vending\licensing\util\Base64DecoderException.jav a
复制了 18 个文件

D:\proton\RTBareBones\android>rmdir temp_final_cpp_src /S /Q
系统找不到指定的文件。

D:\proton\RTBareBones\android>call ant preprocess_cpp
Buildfile: D:\proton\RTBareBones\android\build.xml

BUILD FAILED
D:\proton\RTBareBones\android\build.xml:12: Source resource does not exist: D:\p
roton\RTBareBones\android\local.properties

Total time: 0 seconds
Buildfile: D:\proton\RTBareBones\android\build.xml

BUILD FAILED
D:\proton\RTBareBones\android\build.xml:12: Source resource does not exist: D:\p
roton\RTBareBones\android\local.properties

Total time: 0 seconds
make: *** No rule to make target `jni/../temp_final_cpp_src/AndroidApp.cpp', nee
ded by `obj/local/armeabi/objs/rtbarebones/__/temp_final_cpp_src/AndroidApp.o'.
Stop.
Beeper by Seth A. Robinson - run beeper.exe /? for help

Playing ERROR BEEP SOUND!
Press a <ENTER> to continue:


Buildfile: D:\proton\RTBareBones\android\build.xml

BUILD FAILED
D:\proton\RTBareBones\android\build.xml:12: Source resource does not exist: D:\p
roton\RTBareBones\android\local.properties

Total time: 0 seconds
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
已复制 1 个文件。
can't find 'bin\RTBareBones-debug.apk' to install

Seth
10-07-2012, 10:07 PM
Looks you like you got it resolved (same problem as in this thread (http://www.rtsoft.com/forums/showthread.php?5604-build-bat-failed-on-Windows-using-ndk-r8b-sdk-20-0-1) ) - sorry about that, I do plan on updating the example projects to work with the latest android tools/sdk at some point. :sweatdrop: