HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2014
0604
yasuビルドについて7解決


yasu

リンク

2014/6/4(Wed) 19:26:19|NO.62295

ビルドは最後まで終了しますが、binにapkが作成されません。
なぜかわからないので教えてください。



この記事に返信する


kakaka

リンク

2014/6/4(Wed) 20:17:32|NO.62297

> なぜかわからないので教えてください。
わからないので教えられません。
ソースコードもビルドログも何もないなんて・・・



yasu

リンク

2014/6/4(Wed) 20:59:53|NO.62299

すみません、ビルドのコンソールは下記のようになっています。

#HSP script preprocessor ver3.31RC1 / onion software 1997-2012(c)
#Use file [hspdef.as]
#HSP code generator ver3.31RC1 / onion software 1997-2012(c)
#未初期化の変数があります(k)
#Code size (1010) String data size (124) param size (0)
#Vars (3) Labels (5) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 1268 bytes)

"Compile++ thumb : aiueo <= hsp3code.cpp

In file included from jni/hsp3embed/../hsp3/ndk/../../appengine.h:4:0,
from jni/hsp3embed/../hsp3/ndk/supio_ndk.h:5,
from jni/hsp3embed/../hsp3/supio.h:17,
from jni/hsp3embed/hsp3code.cpp:15:
C:/android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
jni/hsp3embed/hsp3code.cpp: In function 'char* code_getdebug_varname(int)':
jni/hsp3embed/hsp3code.cpp:2545:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
"Compile++ thumb : aiueo <= hsp3embed.cpp

In file included from jni/hsp3embed/../hsp3/ndk/../../appengine.h:4:0,
from jni/hsp3embed/../hsp3/ndk/supio_ndk.h:5,
from jni/hsp3embed/../hsp3/supio.h:17,
from jni/hsp3embed/hsp3embed.cpp:15:
C:/android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
"Compile++ thumb : aiueo <= hsp3r.cpp

In file included from jni/hsp3embed/../hsp3/ndk/../../appengine.h:4:0,
from jni/hsp3embed/../hsp3/ndk/supio_ndk.h:5,
from jni/hsp3embed/../hsp3/supio.h:17,
from jni/hsp3embed/hsp3r.cpp:13:
C:/android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
jni/hsp3embed/hsp3r.cpp: In member function 'int Hsp3r::Reset(int, int)':
jni/hsp3embed/hsp3r.cpp:75:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
"Compile++ thumb : aiueo <= hspvar_util.cpp

In file included from jni/hsp3embed/../hsp3/ndk/../../appengine.h:4:0,
from jni/hsp3embed/../hsp3/ndk/supio_ndk.h:5,
from jni/hsp3embed/../hsp3/supio.h:17,
from jni/hsp3embed/hspvar_util.cpp:20:
C:/android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
"Compile++ thumb : aiueo <= misc.cpp

In file included from jni/hsp3embed/../appengine.h:4:0,
from jni/hsp3embed/misc.cpp:2:
C:/android/android-ndk-r8b-windows/android-ndk-r8b/platforms/android-9/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
"Compile++ thumb : aiueo <= hspsource.cpp

jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:29:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:34:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0000()':
jni/hsp3embed/hspsource.cpp:45:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0005()':
jni/hsp3embed/hspsource.cpp:86:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:117:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0009()':
jni/hsp3embed/hspsource.cpp:168:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:200:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:207:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0012()':
jni/hsp3embed/hspsource.cpp:235:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0003()':
jni/hsp3embed/hspsource.cpp:250:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp:257:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0013()':
jni/hsp3embed/hspsource.cpp:285:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
SharedLibrary : libaiueo.so

Install : libaiueo.so => libs/armeabi/libaiueo.so


Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Buildfile: C:\android\aiueo\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.6.3
[checkenv] Installed at C:\android\android-sdk

-setup:
[echo] Project Name: aiueo
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
[echo] Resolving Build Target for aiueo...
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\android\aiueo\bin
[mkdir] Created dir: C:\android\aiueo\bin\res
[mkdir] Created dir: C:\android\aiueo\bin\rsObj
[mkdir] Created dir: C:\android\aiueo\bin\rsLibs
[mkdir] Created dir: C:\android\aiueo\gen
[mkdir] Created dir: C:\android\aiueo\bin\classes
[mkdir] Created dir: C:\android\aiueo\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for aiueo...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:

BUILD FAILED
C:\android\android-sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\android\android-sdk\tools\ant\build.xml:734: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre7"

Total time: 1 second



kanahiron

リンク

2014/6/4(Wed) 21:40:54|NO.62300

>>BUILD FAILED
とは"ビルドに失敗しました"という意味です
つまりビルドできていません

そして私も現在NDKを使ったandroid向けのビルドが失敗します
JRE、androidSDK、NDKなどののバージョンが関係していると思うのですが…

解決方法ではなくてすみません



kakaka

リンク

2014/6/4(Wed) 21:47:48|NO.62301

> Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar

> C:\android\android-sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
> C:\android\android-sdk\tools\ant\build.xml:734: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jre7"

ログに出てることは確認したんですか?
jdkのインストールをしてないか、パスの通し方間違ってるかとか。

というかもっとログ読んでください。。。



kanahiron

リンク

2014/6/4(Wed) 21:53:25|NO.62302

もしかして環境変数って再起動しないと反映されない…?
前できなくて放置していたのをそのまま今やったら正常にビルドできました

解決方法は、環境変数にJAVA_HOMEというのを作り
内容にC:\Program Files\Java\jre7と入力するだけです(要再起動?)
環境変数の意味がわからないならばググって下さい
また「JAVA_HOME does not point to the JDK.」で検索するとわかるかもです



yasu

リンク

2014/6/5(Thu) 20:48:28|NO.62317

なんとかビルドできて、実機に転送まで進みました。
ありがとうございました。



skyblue

リンク

2014/6/6(Fri) 16:11:16|NO.62321

ソフトの再起動だけでいいと思います。
OSの再起動はしたほうがいいってレベルだと思います。



ONION software Copyright 1997-2023(c) All rights reserved.