PDA

View Full Version : Run build.bat of android version failed on Windows



android
05-23-2012, 04:51 AM
I use the latest NDK rb7, but it's still failed, maybe something wrong with the format of files?
The error of in console is :


BUILD FAILED
Target "preprocess" does not exist in the project "Main".

Total time: 0 seconds
make: *** No rule to make target `jni/../temp_final_cpp_src/AndroidApp.cpp', nee
ded by `obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o'. Sto
p.
make: *** Waiting for unfinished jobs....
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file/usr/bin/sh: -c: li
ne 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/android/AndroidUtils.o
] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/PlatformSetup.o] Error
1

Thank you.

Seth
05-23-2012, 06:00 AM
I use the latest NDK rb7, but it's still failed, maybe something wrong with the format of files?
The error of in console is :


BUILD FAILED
Target "preprocess" does not exist in the project "Main".

Total time: 0 seconds
make: *** No rule to make target `jni/../temp_final_cpp_src/AndroidApp.cpp', nee
ded by `obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o'. Sto
p.
make: *** Waiting for unfinished jobs....
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file/usr/bin/sh: -c: li
ne 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/android/AndroidUtils.o
] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/PlatformSetup.o] Error
1

Thank you.

Hmm, it looks ok on this end, I was able to build it. But I did just do a huge update yesterday which redid the android stuff for rt3dapp.

Latest is actually NDK r8 now - although I'm still on R7c.

However, I think the first error is coming from ant - if you look at rt3dapp/android/build.xml, do you see <target name="preprocess"> somewhere in that file? If not, I think your latest svn update was incomplete, it should be there. Maybe try checking it out from svn again?

android
05-23-2012, 07:32 AM
Thank you for your reply :)
The information below appears weeks ago, I originally thought maybe the author didn't commit completely, so I update from svn every day to see if the problem is fixed, but till today I update the project the problem still exists, and this information "Target "preprocess" does not exist in the project "Main"." is added.

make: *** No rule to make target `jni/../temp_final_cpp_src/AndroidApp.cpp', nee
ded by `obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o'. Sto
p.

" <target name="preprocess"> " is originally in build.xml, but after run build.bat, build.xml is changed, and it doesn't exist any longer.
I'm sure I have fully updated.

Seth
05-23-2012, 08:09 AM
Hmm. Can you post the entire console output from build.bat? Also, run Clean.bat first.

android
05-23-2012, 09:22 AM
The entire output:

D:\Proton\RT3DApp\android>call build_prepare.bat

D:\Proton\RT3DApp\android>call app_info_setup.bat

D:\Proton\RT3DApp\android>set APP_NAME=RT3DApp

D:\Proton\RT3DApp\android>set SMALL_PACKAGE_NAME=rt3dapp

D:\Proton\RT3DApp\android>set PACKAGE_NAME=com.rtsoft.rt3dapp

D:\Proton\RT3DApp\android>set EMULATOR_AVD=@AVD_22

D:\Proton\RT3DApp\android>set ANDROID_EMU=emulator-5554

D:\Proton\RT3DApp\android>call android update project -p ./
Updated local.properties
File build.xml is too old and needs to be updated.
Updated file D:\Proton\RT3DApp\android\build.xml
Updated file D:\Proton\RT3DApp\android\proguard.cfg
Updated local.properties
Updated file D:\Proton\RT3DApp\android\proguard.cfg

D:\Proton\RT3DApp\android>rmdir assets /S /Q

D:\Proton\RT3DApp\android>mkdir assets

D:\Proton\RT3DApp\android>mkdir assets\interface

D:\Proton\RT3DApp\android>xcopy ..\bin\interface assets\interface /E /F /Y
D:\Proton\RT3DApp\bin\interface\40x40.rttex -> D:\Proton\RT3DApp\android\assets\
interface\40x40.rttex
D:\Proton\RT3DApp\bin\interface\arrows.rttex -> D:\Proton\RT3DApp\android\assets
\interface\arrows.rttex
D:\Proton\RT3DApp\bin\interface\earth32bit.rttex -> D:\Proton\RT3DApp\android\as
sets\interface\earth32bit.rttex
D:\Proton\RT3DApp\bin\interface\font_trajan.rtfont -> D:\Proton\RT3DApp\android\
assets\interface\font_trajan.rtfont
D:\Proton\RT3DApp\bin\interface\font_trajan_big.rt font -> D:\Proton\RT3DApp\andr
oid\assets\interface\font_trajan_big.rtfont
D:\Proton\RT3DApp\bin\interface\menu_bg.rttex -> D:\Proton\RT3DApp\android\asset
s\interface\menu_bg.rttex
D:\Proton\RT3DApp\bin\interface\rtsoft_logo.rttex -> D:\Proton\RT3DApp\android\a
ssets\interface\rtsoft_logo.rttex
D:\Proton\RT3DApp\bin\interface\summary_bg.rttex -> D:\Proton\RT3DApp\android\as
sets\interface\summary_bg.rttex
D:\Proton\RT3DApp\bin\interface\summary_continue.r ttex -> D:\Proton\RT3DApp\andr
oid\assets\interface\summary_continue.rttex
D:\Proton\RT3DApp\bin\interface\summary_overlay_bo ttom.rttex -> D:\Proton\RT3DAp
p\android\assets\interface\summary_overlay_bottom. rttex
D:\Proton\RT3DApp\bin\interface\summary_overlay_to p.rttex -> D:\Proton\RT3DApp\a
ndroid\assets\interface\summary_overlay_top.rttex
D:\Proton\RT3DApp\bin\interface\turn_arrows.rttex -> D:\Proton\RT3DApp\android\a
ssets\interface\turn_arrows.rttex
D:\Proton\RT3DApp\bin\interface\particle\cflight.r ttex -> D:\Proton\RT3DApp\andr
oid\assets\interface\particle\cflight.rttex
D:\Proton\RT3DApp\bin\interface\particle\circle.rt tex -> D:\Proton\RT3DApp\andro
id\assets\interface\particle\circle.rttex
D:\Proton\RT3DApp\bin\interface\particle\explosion .rttex -> D:\Proton\RT3DApp\an
droid\assets\interface\particle\explosion.rttex
D:\Proton\RT3DApp\bin\interface\particle\light16p. rttex -> D:\Proton\RT3DApp\and
roid\assets\interface\particle\light16p.rttex
D:\Proton\RT3DApp\bin\interface\particle\pointer.r ttex -> D:\Proton\RT3DApp\andr
oid\assets\interface\particle\pointer.rttex
D:\Proton\RT3DApp\bin\interface\particle\sketch.rt tex -> D:\Proton\RT3DApp\andro
id\assets\interface\particle\sketch.rttex
D:\Proton\RT3DApp\bin\interface\particle\small.rtt ex -> D:\Proton\RT3DApp\androi
d\assets\interface\particle\small.rttex
D:\Proton\RT3DApp\bin\interface\particle\star.rtte x -> D:\Proton\RT3DApp\android
\assets\interface\particle\star.rttex
20 File(s) copied

D:\Proton\RT3DApp\android>mkdir assets\game

D:\Proton\RT3DApp\android>xcopy ..\bin\game assets\game /E /F /Y
D:\Proton\RT3DApp\bin\game\axe.rttex -> D:\Proton\RT3DApp\android\assets\game\ax
e.rttex
D:\Proton\RT3DApp\bin\game\deko.x -> D:\Proton\RT3DApp\android\assets\game\deko.
x
D:\Proton\RT3DApp\bin\game\deko_skin3.rttex -> D:\Proton\RT3DApp\android\assets\
game\deko_skin3.rttex
D:\Proton\RT3DApp\bin\game\detailmap3.rttex -> D:\Proton\RT3DApp\android\assets\
game\detailmap3.rttex
D:\Proton\RT3DApp\bin\game\dwarf.jpg -> D:\Proton\RT3DApp\android\assets\game\dw
arf.jpg
D:\Proton\RT3DApp\bin\game\dwarf.rttex -> D:\Proton\RT3DApp\android\assets\game\
dwarf.rttex
D:\Proton\RT3DApp\bin\game\dwarf.x -> D:\Proton\RT3DApp\android\assets\game\dwar
f.x
D:\Proton\RT3DApp\bin\game\irrlicht2_bk.rttex -> D:\Proton\RT3DApp\android\asset
s\game\irrlicht2_bk.rttex
D:\Proton\RT3DApp\bin\game\irrlicht2_dn.rttex -> D:\Proton\RT3DApp\android\asset
s\game\irrlicht2_dn.rttex
D:\Proton\RT3DApp\bin\game\irrlicht2_ft.rttex -> D:\Proton\RT3DApp\android\asset
s\game\irrlicht2_ft.rttex
D:\Proton\RT3DApp\bin\game\irrlicht2_lf.rttex -> D:\Proton\RT3DApp\android\asset
s\game\irrlicht2_lf.rttex
D:\Proton\RT3DApp\bin\game\irrlicht2_rt.rttex -> D:\Proton\RT3DApp\android\asset
s\game\irrlicht2_rt.rttex
D:\Proton\RT3DApp\bin\game\irrlicht2_up.rttex -> D:\Proton\RT3DApp\android\asset
s\game\irrlicht2_up.rttex
D:\Proton\RT3DApp\bin\game\ninja.b3d -> D:\Proton\RT3DApp\android\assets\game\ni
nja.b3d
D:\Proton\RT3DApp\bin\game\nskinbl.rttex -> D:\Proton\RT3DApp\android\assets\gam
e\nskinbl.rttex
D:\Proton\RT3DApp\bin\game\nskinrd.rttex -> D:\Proton\RT3DApp\android\assets\gam
e\nskinrd.rttex
D:\Proton\RT3DApp\bin\game\squirrel.3ds -> D:\Proton\RT3DApp\android\assets\game
\squirrel.3ds
D:\Proton\RT3DApp\bin\game\squirrel.DAE -> D:\Proton\RT3DApp\android\assets\game
\squirrel.DAE
D:\Proton\RT3DApp\bin\game\squirrel.x -> D:\Proton\RT3DApp\android\assets\game\s
quirrel.x
D:\Proton\RT3DApp\bin\game\squirrel_skin.rttex -> D:\Proton\RT3DApp\android\asse
ts\game\squirrel_skin.rttex
D:\Proton\RT3DApp\bin\game\sydney.bmp -> D:\Proton\RT3DApp\android\assets\game\s
ydney.bmp
D:\Proton\RT3DApp\bin\game\sydney.md2 -> D:\Proton\RT3DApp\android\assets\game\s
ydney.md2
D:\Proton\RT3DApp\bin\game\sydney.rttex -> D:\Proton\RT3DApp\android\assets\game
\sydney.rttex
D:\Proton\RT3DApp\bin\game\terrain-heightmap.bmp -> D:\Proton\RT3DApp\android\as
sets\game\terrain-heightmap.bmp
D:\Proton\RT3DApp\bin\game\terrain-heightmap.rttex -> D:\Proton\RT3DApp\android\
assets\game\terrain-heightmap.rttex
D:\Proton\RT3DApp\bin\game\terrain-texture.rttex -> D:\Proton\RT3DApp\android\as
sets\game\terrain-texture.rttex
D:\Proton\RT3DApp\bin\game\house_scene\BRKWEA_brow n.bmp -> D:\Proton\RT3DApp\and
roid\assets\game\house_scene\BRKWEA_brown.bmp
D:\Proton\RT3DApp\bin\game\house_scene\BRKWEA_brow n.rttex -> D:\Proton\RT3DApp\a
ndroid\assets\game\house_scene\BRKWEA_brown.rttex
D:\Proton\RT3DApp\bin\game\house_scene\grass_512_5 12.rttex -> D:\Proton\RT3DApp\
android\assets\game\house_scene\grass_512_512.rtte x
D:\Proton\RT3DApp\bin\game\house_scene\groundShado wsMap.rttex -> D:\Proton\RT3DA
pp\android\assets\game\house_scene\groundShadowsMa p.rttex
D:\Proton\RT3DApp\bin\game\house_scene\GR_SWRIL2.r ttex -> D:\Proton\RT3DApp\andr
oid\assets\game\house_scene\GR_SWRIL2.rttex
D:\Proton\RT3DApp\bin\game\house_scene\house_1_ski n.rttex -> D:\Proton\RT3DApp\a
ndroid\assets\game\house_scene\house_1_skin.rttex
D:\Proton\RT3DApp\bin\game\house_scene\house_bpdys hadowsmap.rttex -> D:\Proton\R
T3DApp\android\assets\game\house_scene\house_bpdys hadowsmap.rttex
D:\Proton\RT3DApp\bin\game\house_scene\house_scene .b3d -> D:\Proton\RT3DApp\andr
oid\assets\game\house_scene\house_scene.b3d
D:\Proton\RT3DApp\bin\game\house_scene\house_scene _col.b3d -> D:\Proton\RT3DApp\
android\assets\game\house_scene\house_scene_col.b3 d
D:\Proton\RT3DApp\bin\game\house_scene\roof01Shado wsMap.rttex -> D:\Proton\RT3DA
pp\android\assets\game\house_scene\roof01ShadowsMa p.rttex
D:\Proton\RT3DApp\bin\game\quake\levelshots\20kdm2 .rttex -> D:\Proton\RT3DApp\an
droid\assets\game\quake\levelshots\20kdm2.rttex
D:\Proton\RT3DApp\bin\game\quake\maps\20kdm2.aas -> D:\Proton\RT3DApp\android\as
sets\game\quake\maps\20kdm2.aas
D:\Proton\RT3DApp\bin\game\quake\maps\20kdm2.bsp -> D:\Proton\RT3DApp\android\as
sets\game\quake\maps\20kdm2.bsp
D:\Proton\RT3DApp\bin\game\quake\models\mapobjects \gratelamp\gratetorch2.rttex -
> D:\Proton\RT3DApp\android\assets\game\quake\models \mapobjects\gratelamp\gratet
orch2.rttex
D:\Proton\RT3DApp\bin\game\quake\models\mapobjects \gratelamp\gratetorch2b.rttex
-> D:\Proton\RT3DApp\android\assets\game\quake\models \mapobjects\gratelamp\grate
torch2b.rttex
D:\Proton\RT3DApp\bin\game\quake\models\mapobjects \timlamp\timlamp.rttex -> D:\P
roton\RT3DApp\android\assets\game\quake\models\map objects\timlamp\timlamp.rttex
D:\Proton\RT3DApp\bin\game\quake\scripts\20kdm2.ar ena -> D:\Proton\RT3DApp\andro
id\assets\game\quake\scripts\20kdm2.arena
D:\Proton\RT3DApp\bin\game\quake\scripts\common.sh ader -> D:\Proton\RT3DApp\andr
oid\assets\game\quake\scripts\common.shader
D:\Proton\RT3DApp\bin\game\quake\scripts\e7.shader -> D:\Proton\RT3DApp\android\
assets\game\quake\scripts\e7.shader
D:\Proton\RT3DApp\bin\game\quake\scripts\liquid.sh ader -> D:\Proton\RT3DApp\andr
oid\assets\game\quake\scripts\liquid.shader
D:\Proton\RT3DApp\bin\game\quake\scripts\models.sh ader -> D:\Proton\RT3DApp\andr
oid\assets\game\quake\scripts\models.shader
D:\Proton\RT3DApp\bin\game\quake\scripts\sfx.shade r -> D:\Proton\RT3DApp\android
\assets\game\quake\scripts\sfx.shader
D:\Proton\RT3DApp\bin\game\quake\scripts\sky.shade r -> D:\Proton\RT3DApp\android
\assets\game\quake\scripts\sky.shader
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7bea m01.rttex -> D:\Proton\RT3DApp
\android\assets\game\quake\textures\e7\e7beam01.rt tex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7bea m02_red.rttex -> D:\Proton\RT3
DApp\android\assets\game\quake\textures\e7\e7beam0 2_red.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7big wall.rttex -> D:\Proton\RT3DAp
p\android\assets\game\quake\textures\e7\e7bigwall. rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7bmt rim.rttex -> D:\Proton\RT3DApp
\android\assets\game\quake\textures\e7\e7bmtrim.rt tex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7bmt rim2.rttex -> D:\Proton\RT3DAp
p\android\assets\game\quake\textures\e7\e7bmtrim2. rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7bri ckfloor01.rttex -> D:\Proton\R
T3DApp\android\assets\game\quake\textures\e7\e7bri ckfloor01.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7brn metal.rttex -> D:\Proton\RT3DA
pp\android\assets\game\quake\textures\e7\e7brnmeta l.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7dim floor.rttex -> D:\Proton\RT3DA
pp\android\assets\game\quake\textures\e7\e7dimfloo r.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7pan elwood.rttex -> D:\Proton\RT3D
App\android\assets\game\quake\textures\e7\e7panelw ood.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7sbr ickfloor.rttex -> D:\Proton\RT
3DApp\android\assets\game\quake\textures\e7\e7sbri ckfloor.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7ste ptop.rttex -> D:\Proton\RT3DAp
p\android\assets\game\quake\textures\e7\e7steptop. rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7ste ptop2.rttex -> D:\Proton\RT3DA
pp\android\assets\game\quake\textures\e7\e7steptop 2.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7swi ndow.rttex -> D:\Proton\RT3DAp
p\android\assets\game\quake\textures\e7\e7swindow. rttex
D:\Proton\RT3DApp\bin\game\quake\textures\e7\e7wal ldesign01b.rttex -> D:\Proton\
RT3DApp\android\assets\game\quake\textures\e7\e7wa lldesign01b.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\gothic_f loor\xstepborder5.rttex -> D:\
Proton\RT3DApp\android\assets\game\quake\textures\ gothic_floor\xstepborder5.rtte
x
D:\Proton\RT3DApp\bin\game\quake\textures\gothic_t rim\metalblackwave01.rttex ->
D:\Proton\RT3DApp\android\assets\game\quake\textur es\gothic_trim\metalblackwave0
1.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\liquids\ lavahell.rttex -> D:\Proton\RT
3DApp\android\assets\game\quake\textures\liquids\l avahell.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e1.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame1.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e2.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame2.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e3.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame3.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e4.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame4.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e5.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame5.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e6.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame6.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e7.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame7.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam e8.rttex -> D:\Proton\RT3DApp\
android\assets\game\quake\textures\sfx\flame8.rtte x
D:\Proton\RT3DApp\bin\game\quake\textures\sfx\flam eball.rttex -> D:\Proton\RT3DA
pp\android\assets\game\quake\textures\sfx\flamebal l.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\skies\ki llsky_1.rttex -> D:\Proton\RT3
DApp\android\assets\game\quake\textures\skies\kill sky_1.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\skies\ki llsky_2.rttex -> D:\Proton\RT3
DApp\android\assets\game\quake\textures\skies\kill sky_2.rttex
D:\Proton\RT3DApp\bin\game\quake\textures\stone\pj rock1.rttex -> D:\Proton\RT3DA
pp\android\assets\game\quake\textures\stone\pjrock 1.rttex
78 File(s) copied

D:\Proton\RT3DApp\android>mkdir assets\audio

D:\Proton\RT3DApp\android>xcopy ..\bin\audio assets\audio /E /F /Y
D:\Proton\RT3DApp\bin\audio\click.wav -> D:\Proton\RT3DApp\android\assets\audio\
click.wav
1 File(s) copied

D:\Proton\RT3DApp\android>rmdir bin /S /Q

D:\Proton\RT3DApp\android>rmdir gen /S /Q

D:\Proton\RT3DApp\android>rmdir temp_final_src /S /Q

D:\Proton\RT3DApp\android>rmdir temp_src /S /Q

D:\Proton\RT3DApp\android>mkdir temp_src

D:\Proton\RT3DApp\android>mkdir temp_src\com

D:\Proton\RT3DApp\android>mkdir temp_src\com\
A subdirectory or file temp_src\com\ already exists.

D:\Proton\RT3DApp\android>mkdir temp_src\com\\rt3dapp

D:\Proton\RT3DApp\android>xcopy src temp_src\com\\rt3dapp /E /F /Y
D:\Proton\RT3DApp\android\src\Main.java -> D:\Proton\RT3DApp\android\temp_src\co
m\rt3dapp\Main.java
1 File(s) copied

D:\Proton\RT3DApp\android>mkdir temp_final_src

D:\Proton\RT3DApp\android>mkdir temp_final_src\com

D:\Proton\RT3DApp\android>xcopy ..\..\shared\android\v2_src\java temp_src\com\\r
t3dapp /E /F /Y
D:\Proton\shared\android\v2_src\java\BillingReceiv er.java -> D:\Proton\RT3DApp\a
ndroid\temp_src\com\rt3dapp\BillingReceiver.java
D:\Proton\shared\android\v2_src\java\BillingServic e.java -> D:\Proton\RT3DApp\an
droid\temp_src\com\rt3dapp\BillingService.java
D:\Proton\shared\android\v2_src\java\Consts.java -> D:\Proton\RT3DApp\android\te
mp_src\com\rt3dapp\Consts.java
D:\Proton\shared\android\v2_src\java\PurchaseObser ver.java -> D:\Proton\RT3DApp\
android\temp_src\com\rt3dapp\PurchaseObserver.java
D:\Proton\shared\android\v2_src\java\ResponseHandl er.java -> D:\Proton\RT3DApp\a
ndroid\temp_src\com\rt3dapp\ResponseHandler.java
D:\Proton\shared\android\v2_src\java\Security.java -> D:\Proton\RT3DApp\android\
temp_src\com\rt3dapp\Security.java
D:\Proton\shared\android\v2_src\java\SharedActivit y.java -> D:\Proton\RT3DApp\an
droid\temp_src\com\rt3dapp\SharedActivity.java
D:\Proton\shared\android\v2_src\java\SharedMultiTo uchInput.java -> D:\Proton\RT3
DApp\android\temp_src\com\rt3dapp\SharedMultiTouch Input.java
D:\Proton\shared\android\v2_src\java\util\Base64.j ava -> D:\Proton\RT3DApp\andro
id\temp_src\com\rt3dapp\util\Base64.java
D:\Proton\shared\android\v2_src\java\util\Base64De coderException.java -> D:\Prot
on\RT3DApp\android\temp_src\com\rt3dapp\util\Base6 4DecoderException.java
10 File(s) copied

D:\Proton\RT3DApp\android>echo d | xcopy ..\..\shared\android\optional_src\com
\android temp_final_src\com\android /E /F /Y
Does D:\Proton\RT3DApp\android\temp_final_src\com\andro id specify a file name
or directory name on the target
(F = file, D = directory)? d
D:\Proton\shared\android\optional_src\com\android\ vending\billing\IMarketBilling
Service.aidl -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\bil
ling\IMarketBillingService.aidl
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\AESObfuscato
r.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing
\AESObfuscator.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\DeviceLimite
r.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing
\DeviceLimiter.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\ILicenseResu
ltListener.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\
licensing\ILicenseResultListener.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\ILicensingSe
rvice.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licen
sing\ILicensingService.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\LicenseCheck
er.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensin
g\LicenseChecker.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\LicenseCheck
erCallback.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\
licensing\LicenseCheckerCallback.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\LicenseValid
ator.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licens
ing\LicenseValidator.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\NullDeviceLi
miter.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licen
sing\NullDeviceLimiter.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\Obfuscator.j
ava -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing\Ob
fuscator.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\Policy.java
-> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing\Policy
.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\PreferenceOb
fuscator.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\li
censing\PreferenceObfuscator.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\ResponseData
.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing\
ResponseData.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\ServerManage
dPolicy.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\lic
ensing\ServerManagedPolicy.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\StrictPolicy
.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing\
StrictPolicy.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\ValidationEx
ception.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\lic
ensing\ValidationException.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\util\Base64.
java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\vending\licensing\u
til\Base64.java
D:\Proton\shared\android\optional_src\com\android\ vending\licensing\util\Base64D
ecoderException.java -> D:\Proton\RT3DApp\android\temp_final_src\com\andro id\ven
ding\licensing\util\Base64DecoderException.java
18 File(s) copied

D:\Proton\RT3DApp\android>rmdir temp_final_cpp_src /S /Q
The system cannot find the file specified.

D:\Proton\RT3DApp\android>call ant preprocess_cpp
Buildfile: D:\Proton\RT3DApp\android\build.xml
[setup] Android SDK Tools Revision 8
[setup] Project Target: Android 2.3.1
[setup] API level: 9
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (7) is lower
than the project target API level (9)
[setup]
[setup] Importing rules file: tools\ant\main_rules.xml

BUILD FAILED
Target "preprocess_cpp" does not exist in the project "Main".

Total time: 0 seconds
Buildfile: D:\Proton\RT3DApp\android\build.xml
[setup] Android SDK Tools Revision 8
[setup] Project Target: Android 2.3.1
[setup] API level: 9
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (7) is lower
than the project target API level (9)
[setup]
[setup] Importing rules file: tools\ant\main_rules.xml

BUILD FAILED
Target "preprocess" does not exist in the project "Main".

Total time: 0 seconds
make: *** No rule to make target `jni/../temp_final_cpp_src/AndroidApp.cpp', nee
ded by `obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o'. Sto
p.
make: *** Waiting for unfinished jobs....
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/PlatformSetup.o] Error
1
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/android/AndroidUtils.o
] Error 1
Beeper by Seth A. Robinson - run beeper.exe /? for help

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

Seth
05-23-2012, 10:41 AM
Ok, I think I know the problem.. the latest Android SDK (not the NDK) broke things.

I guess I will update things, getting tired of them constantly breaking backwards compatibility, sigh.

If you are in a hurry, here are the versions of SDK Tools and SDK Platform Tools that work:
855

android
05-23-2012, 12:31 PM
Oh, is the SDK version must be over 4.0 ?

Seth
05-23-2012, 12:57 PM
Oh, is the SDK version must be over 4.0 ?

No - the problem would be the android sdk tools that are used to build everything, regardless of the target platform.

However, I just downloaded the latest android sdk Tools/Platform tools and it did NOT change my build.xml like it seem to for you, at the end I got "Reference jar.libs.ref not found", (which I fixed with a little change to the projects build.xml) so there may be something else wrong with your build system.

Try installing the latest Ant as well? (Edit: I'm using the latest Ant btw, 1.8.3)

android
05-23-2012, 03:08 PM
After I download the latest sdk tools, the build.xml isn't changed any longer.
I'm using ant 1.8.2, after update the sdk tools, I run build.bat and some steps are successful but still failed in the end:

D:\Proton\RT3DApp\android>call ant preprocess_cpp
Buildfile: D:\Proton\RT3DApp\android\build.xml

preprocess_cpp:
[javapp] processing AndroidApp.cpp

BUILD SUCCESSFUL
Total time: 1 second
Buildfile: D:\Proton\RT3DApp\android\build.xml

preprocess:
[javapp] processing com\rt3dapp\BillingReceiver.java
[javapp] processing com\rt3dapp\BillingService.java
[javapp] processing com\rt3dapp\Consts.java
[javapp] processing com\rt3dapp\Main.java
[javapp] processing com\rt3dapp\PurchaseObserver.java
[javapp] processing com\rt3dapp\ResponseHandler.java
[javapp] processing com\rt3dapp\Security.java
[javapp] processing com\rt3dapp\SharedActivity.java
[javapp] processing com\rt3dapp\SharedMultiTouchInput.java
[javapp] processing com\rt3dapp\util\Base64.java
[javapp] processing com\rt3dapp\util\Base64DecoderException.java

BUILD SUCCESSFUL
Total time: 6 seconds
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/ob/usr/bin/sh: -c: line 2: syntax error: unexpected
end of file
s/rt3dapp/__/__/__/shared/PlatformSetup.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/android/AndroidUtils.o
] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o] Er
ror 1
make: *** [obj/local/armeabi/usr/bin/sh: -c: line 2: syntax error: unexpected en
d of file
objs/rt3dapp/__/__/__/shared/Audio/AudioManager.o] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/Audio/AudioManagerAndr
oid.o] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/ClanLib-2.0/Sources/Co
re/Math/angle.o] Error 1
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/ClanLib-2.0/Sources/Co
re/Math/mat3.o] Error 1
Beeper by Seth A. Robinson - run beeper.exe /? for help

but after I changed ant to 1.8.3, some errors come:

BUILD FAILED
D:\Proton\RT3DApp\android\build.xml:84: Problem: failed to create task or type j
avapp
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds
Buildfile: D:\Proton\RT3DApp\android\build.xml
[taskdef] Could not load definitions from resource javapp-defs.xml. It could n
ot be found.

preprocess:

BUILD FAILED
D:\Proton\RT3DApp\android\build.xml:78: Problem: failed to create task or type j
avapp
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds
make: *** No rule to make target `jni/../temp_final_cpp_src/AndroidApp.cpp', nee
ded by `obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o'. Sto
p.
make: *** Waiting for unfinished jobs....
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/PlatformSetup.o] Error
1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/android/AndroidUtils.o
] Error 1
Beeper by Seth A. Robinson - run beeper.exe /? for help

Seth
05-23-2012, 10:55 PM
The windows environmental var ANT_HOME must be defined to your main ant dir. (you can check it by typing "echo %ANT_HOME%" from the dos prompt, it should show c:\ant or whatever.

Add that and I think you'll be ok.

Also, yesterday I touched up the android setup docs (http://www.rtsoft.com/wiki/doku.php?id=proton:android_setup) to be more accurate.

Also, don't forget to update svn, I fixed it to work with the latest android build tools.

android
05-24-2012, 03:35 AM
ANT_HOME is defined in my path.I have built apk successfullly two months ago in the previous version which needs to configure app_info_setup.bat, build.sh and local.properties.

Seth
05-24-2012, 03:38 AM
ANT_HOME is defined in my path.I have built apk successfullly two months ago in the previous version which needs to configure app_info_setup.bat, build.sh and local.properties.

Well, I'm not talking about ant being in your path, I'm talking about ANT_HOME being defined on its own, as the latest build stuff copies a .jar into your ant directory, which handles the preprocessing.

android
05-24-2012, 04:04 AM
Er..I know what you mean, I try to print the path using "echo %ANT_HOME%", and the path output is correct.

Seth
05-24-2012, 04:46 AM
Er..I know what you mean, I try to print the path using "echo %ANT_HOME%", and the path output is correct.

Can you try this from the dos prompt and verify you get the same response?

d:\Users\User>dir %ANT_HOME%\lib\javapp.jar
Volume in drive D is Projects
Volume Serial Number is D69B-EB77

Directory of d:\pro\ant\lib

07/28/2008 09:39 AM 1,743,205 javapp.jar
1 File(s) 1,743,205 bytes
0 Dir(s) 148,216,381,440 bytes free

If javapp.jar is missing, it might mean due to file permissions the copy command in setup_app_info.bat failed and you'll have to manually copy it.

android
05-24-2012, 05:03 AM
The javapp.jar isn't in %ANT_HOME%\lib\javapp.jar, I copy it myself, the first step is successful, but then come errors like before...

---------------------------------------------------------------------
D:\Proton\RT3DApp\android>rmdir temp_final_cpp_src /S /Q

D:\Proton\RT3DApp\android>call ant preprocess_cpp
Buildfile: D:\Proton\RT3DApp\android\build.xml

preprocess_cpp:
[javapp] processing AndroidApp.cpp

BUILD SUCCESSFUL
Total time: 2 seconds
Buildfile: D:\Proton\RT3DApp\android\build.xml

preprocess:
[javapp] processing com\rt3dapp\BillingReceiver.java
[javapp] processing com\rt3dapp\BillingService.java
[javapp] processing com\rt3dapp\Consts.java
[javapp] processing com\rt3dapp\Main.java
[javapp] processing com\rt3dapp\PurchaseObserver.java
[javapp] processing com\rt3dapp\ResponseHandler.java
[javapp] processing com\rt3dapp\Security.java
[javapp] processing com\rt3dapp\SharedActivity.java
[javapp] processing com\rt3dapp\SharedMultiTouchInput.java
[javapp] processing com\rt3dapp\util\Base64.java
[javapp] processing com\rt3dapp\util\Base64DecoderException.java

BUILD SUCCESSFUL
Total time: 6 seconds
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/PlatformSetup.o] Error
1
make: *** Waiting for unfinished jobs....
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/usr/bin/sh: -c: line 2
: syntax error: unexpected end of file
android/AndroidUtils.o] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/temp_final_cpp_src/AndroidApp.o] Er
ror 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/Audio/AudioManager.o]
Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/Audio/AudioManagerAndr
oid.o] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/ClanLib-2.0/Sources/Co
re/Math/usr/bin/sh: -c: line 2: syntax error: unexpected end of file
angle.o] Error 1
make: *** [obj/local/armeabi/objs/rt3dapp/__/__/__/shared/ClanLib-2.0/Sources/Co
re/Math/mat3.o] Error 1
Beeper by Seth A. Robinson - run beeper.exe /? for help

Seth
05-24-2012, 05:18 AM
Well, seeing /usr/bin/sh in your log makes me think some part of your toolchain is old and trying to use cygwin.


Make sure Android NDK r8 is in your path
Make sure no older NDK is in your path
Make sure no "make" from another sdk/etc is in your path and getting triggered instead of the required one



Here are two commands from the DOS prompt to try to verify you get the same results as I do: (the error is normal, as I'm not in a project directory when I do these commands)


d:\Users\User>ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
d:\pro\android-ndk-r8\build/core/build-local.mk:130: *** Android NDK: Aborting . Stop.

d:\Users\User>ndk-build --v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i586-pc-mingw32

android
05-24-2012, 06:35 AM
After I use Android NDK r8, it can build properly now, thank you very much for your help