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


HSPTV!掲示板


未解決 解決 停止 削除要請

2014
0617
やたかDish環境の準備のダウンロードが原因?ビルドでapkが作成されない10解決


やたか

リンク

2014/6/17(Tue) 15:45:49|NO.62477

まだdishの環境が出来てません。教えてください。
android(NDK)版プログラミングガイドにそって、block3.hspをビルドしましたが、ビルド処理中、終了しましたとなっても
apkファイルが生成されていません。途中で下のような文字化けもしてたぶんエラーが出ています。
x86(32bit)版のJRE6+JDK6を推奨していますが Java SE 8u5 をダウンロードしています。それが原因でしょうか?
何度かダウンロードやりなおして、混乱もしています(笑)
現状でダウンロードできるもので正常稼働するもの教えて下さい。
■PCは win7 64ビットです dish34b5 
eclipsのjavaで1つアプリ実機テストまで出来たので次はhspでと思って始めてます。
新しくc:\androidにダウンロードをしています。
■ビルドの前半メッセージ
#HSP script preprocessor ver3.4beta5 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4beta5 / onion software 1997-2014(c)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)

//
// HSP3 C++ runtime manager
// onion software/onitama 2008/5
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hsp3r.h"
#include "../hsp3/hsp3config.h"
#include "../hsp3/hsp3debug.h"
#include "../hsp3/dpmread.h"
#include "../hsp3/supio.h"

/*------------------------------------------------------------*/
/*
constructor
*/
/*------------------------------------------------------------*/

Hsp3r::Hsp3r()
{
// 蛻晄悄蛹・ //
memset( &hspctx, 0, sizeof(HSPCTX) );
code_setctx( &hspctx );



この記事に返信する


skyblue

リンク

2014/6/17(Tue) 16:32:05|NO.62479

ビルド時のログをすべて出しましょう。
文字化けはほとんど関係ないはずなので



とおりすがり

リンク

2014/6/18(Wed) 00:21:46|NO.62486

というか後半ですね、エラーログで重要なのは。
ダウンロードをやり直してるというのが少々気になりますが、まずはエラーログを全て見てみたいですね。
文字化けは、文字コードが UTF-8 に変換された関係でそう見えるだけだと思います。そこは心配要りません。



やたか

リンク

2014/6/18(Wed) 06:41:18|NO.62487

お手数おかけします、長くなりますが、
■ますフォルダー設定は heiper ver.098
java C:\android\Java\jdk1.8.0_05
SDK C:\android\adt-bundle-x86-20140321\sdk
NDK C:\android\android-ndk-r9d
ant C:\android\apache-ant-1.9.4
プロジェクト C:\android
■下は、クリーン後にビルドしました結果です。
■まず前半でパスが見つかりませんと出てます。
#HSP script preprocessor ver3.4beta5 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4beta5 / onion software 1997-2014(c)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)
C:\android\tate02\obj\local\armeabi\objs\tate02\hsp3embed\*.*
指定されたパスが見つかりません。
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar
Buildfile: C:\android\tate02\build.xml
□実際のパスは
C:\android\tate02\obj\local\armeabi-v7a\objs\tate02 でした。
最後に□□でarmeabiにハードディスクを変更した結果ものせてます。
■その後ものせておきます。
-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-pre-clean:

clean:
[delete] Deleting directory C:\android\tate02\bin
[delete] Deleting directory C:\android\tate02\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on

BUILD SUCCESSFUL
Total time: 2 seconds

Android NDK: WARNING:jni/Android.mk:tate02: non-system libraries in linker flags: -lhsp3lib
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile++ thumb: tate02 <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:122:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:223:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:553:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] SharedLibrary : libtate02.so
[armeabi-v7a] Install : libtate02.so => libs/armeabi-v7a/libtate02.so

Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar
Buildfile: C:\android\tate02\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for tate02...
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\android\tate02\bin
[mkdir] Created dir: C:\android\tate02\bin\res
[mkdir] Created dir: C:\android\tate02\bin\rsObj
[mkdir] Created dir: C:\android\tate02\bin\rsLibs
[mkdir] Created dir: C:\android\tate02\gen
[mkdir] Created dir: C:\android\tate02\bin\classes
[mkdir] Created dir: C:\android\tate02\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for tate02...
[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:
[javac] Compiling 4 source files to C:\android\tate02\bin\classes

BUILD FAILED
C:\android\adt-bundle-x86-20140321\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\android\adt-bundle-x86-20140321\sdk\tools\ant\build.xml:734: Error running javac.exe compiler

Total time: 5 seconds
□□
#HSP script preprocessor ver3.4beta5 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4beta5 / onion software 1997-2014(c)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)
C:\android\tate02\obj\local\armeabi\objs\tate02\hsp3embed\*.*
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar
Buildfile: C:\android\tate02\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-pre-clean:

clean:
[delete] Deleting directory C:\android\tate02\bin
[delete] Deleting directory C:\android\tate02\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on

BUILD SUCCESSFUL
Total time: 0 seconds

Android NDK: WARNING:jni/Android.mk:tate02: non-system libraries in linker flags: -lhsp3lib
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile++ thumb: tate02 <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:122:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:223:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:553:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] SharedLibrary : libtate02.so
[armeabi-v7a] Install : libtate02.so => libs/armeabi-v7a/libtate02.so

Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre6\lib\tools.jar
Buildfile: C:\android\tate02\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for tate02...
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\android\tate02\bin
[mkdir] Created dir: C:\android\tate02\bin\res
[mkdir] Created dir: C:\android\tate02\bin\rsObj
[mkdir] Created dir: C:\android\tate02\bin\rsLibs
[mkdir] Created dir: C:\android\tate02\gen
[mkdir] Created dir: C:\android\tate02\bin\classes
[mkdir] Created dir: C:\android\tate02\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for tate02...
[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:
[javac] Compiling 4 source files to C:\android\tate02\bin\classes

BUILD FAILED
C:\android\adt-bundle-x86-20140321\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\android\adt-bundle-x86-20140321\sdk\tools\ant\build.xml:734: Error running javac.exe compiler

Total time: 0 seconds



skyblue

リンク

2014/6/18(Wed) 16:23:40|NO.62490

どっちにしろ、tools.jarが見つからないって言うようなエラーが出ている。
Javaの設定を見直してください。



やたか

リンク

2014/6/19(Thu) 15:34:21|NO.62499

何度もすみませんが、教えてください。
c;android以外にも 以前インストールしたjavaがあったのでそれをアンインストールして今回のも念のためにアンインストールして再度、jdk1.8.0_05をインストールしました。
次に、hsp3dh.exeでjavaフォルダーをC:\android\Java\jdk1.8.0_05に再設定して クリーン後ビルドしましたが
まだ、どこかおかしいようです。
結果は
■■
#HSP script preprocessor ver3.4beta5 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4beta5 / onion software 1997-2014(c)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)
C:\android\tate02\obj\local\armeabi\objs\tate02\hsp3embed\*.*
Buildfile: C:\android\tate02\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-pre-clean:

clean:
[delete] Deleting directory C:\android\tate02\bin
[delete] Deleting directory C:\android\tate02\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on

BUILD SUCCESSFUL
Total time: 0 seconds

Android NDK: WARNING:jni/Android.mk:tate02: non-system libraries in linker flags: -lhsp3lib
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile++ thumb: tate02 <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:122:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:223:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:553:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] SharedLibrary : libtate02.so
[armeabi-v7a] Install : libtate02.so => libs/armeabi-v7a/libtate02.so

Buildfile: C:\android\tate02\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for tate02...
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\android\tate02\bin
[mkdir] Created dir: C:\android\tate02\bin\res
[mkdir] Created dir: C:\android\tate02\bin\rsObj
[mkdir] Created dir: C:\android\tate02\bin\rsLibs
[mkdir] Created dir: C:\android\tate02\gen
[mkdir] Created dir: C:\android\tate02\bin\classes
[mkdir] Created dir: C:\android\tate02\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for tate02...
[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:
[javac] Compiling 4 source files to C:\android\tate02\bin\classes
[javac] 警告: [options] ソース値1.5は廃止されていて、今後のリリースで削除される予定です
[javac] 警告: [options] ターゲット値1.5は廃止されていて、今後のリリースで削除される予定です
[javac] 警告: [options] 廃止されたオプションについての警告を表示しないようにするには、-Xlint:オプションを使用します。
[javac] C:\android\tate02\src\tv\hsp\HspActivity.java:56: エラー: パッケージcom.google.adsは存在しません
[javac] import com.google.ads.*;
[javac] ^
[javac] C:\android\tate02\src\tv\hsp\HspActivity.java:247: エラー: シンボルを見つけられません
[javac] AdView adView;
[javac] ^
[javac] シンボル: クラス AdView
[javac] 場所: クラス HspActivity
[javac] C:\android\tate02\src\tv\hsp\HspActivity.java:268: エラー: シンボルを見つけられません
[javac] adView = new AdView(_activity, AdSize.BANNER, "publisherID");
[javac] ^
[javac] シンボル: クラス AdView
[javac] 場所: クラス HspActivity
[javac] C:\android\tate02\src\tv\hsp\HspActivity.java:268: エラー: シンボルを見つけられません
[javac] adView = new AdView(_activity, AdSize.BANNER, "publisherID");
[javac] ^
[javac] シンボル: 変数 AdSize
[javac] 場所: クラス HspActivity
[javac] C:\android\tate02\src\tv\hsp\HspActivity.java:299: エラー: シンボルを見つけられません
[javac] AdRequest adRequest = new AdRequest();
[javac] ^
[javac] シンボル: クラス AdRequest
[javac] C:\android\tate02\src\tv\hsp\HspActivity.java:299: エラー: シンボルを見つけられません
[javac] AdRequest adRequest = new AdRequest();
[javac] ^
[javac] シンボル: クラス AdRequest
[javac] 注意:C:\android\tate02\src\tv\hsp\HspActivity.javaは非推奨のAPIを使用またはオーバーライドしています。
[javac] 注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
[javac] エラー6個
[javac] 警告3個

BUILD FAILED
C:\android\adt-bundle-x86-20140321\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\android\adt-bundle-x86-20140321\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.

Total time: 1 second



やたか

リンク

2014/6/19(Thu) 15:53:28|NO.62501

HSP3Dish Helperの設定 説明を見直して、javaフォルダーをC:\Program Files (x86)\Java\jdk1.8.0_05に再インストールもしてみましたが、それは関係なかったようです。
引き続き、よろしくお願いします。 



skyblue

リンク

2014/6/19(Thu) 16:29:03|NO.62502

Javaの推奨バージョンを使用したほうがいいでしょう。
Google Adの関連ファイルがないことが原因だと思われます。
DishのJavaの設定項目にはJDKを指定してください。
もしくはAdを使わないならばAd関係の部分を削除すればオーケーです。
使うならばクラスパスの設定を見直してください。
具体的にはAdのJarがあるフォルダをクラスパスに追加する。



skyblue

リンク

2014/6/19(Thu) 16:38:36|NO.62503

連投すみません。
クラスパスのほうは追加しなくて大丈夫みたいです。(HSPに限れば)
HSP3Dish android(NDK)版プログラミングガイドに
使い方が載っていますので一読お願いします。



やたか

リンク

2014/6/20(Fri) 11:07:32|NO.62508

skyblueさん、何度も対応ありがとうございます。
java6をダウンロードしたらビルド、転送まで成功しました(感謝)
java6探したけど、探せなかったのであきらめてたところ掲示板が後押しで探せました。
■blok3.hspでは変数2個を頭でkey = 0 bsize = 5 すると エラー消えて動きましたが
画面が小さいままでしたが、main.c変更で大きくなりました。
xsample_gcube.hspもエラーでているようで、もう少し調べてわからなかたら別掲示板で質問いたします。
とりあえず、結果のせておきます。
■ビルド1回目

#HSP script preprocessor ver3.4beta5 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4beta5 / onion software 1997-2014(c)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)

//
// HSP3 C++ runtime manager
// onion software/onitama 2008/5
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hsp3r.h"
#include "../hsp3/hsp3config.h"
#include "../hsp3/hsp3debug.h"
#include "../hsp3/dpmread.h"
#include "../hsp3/supio.h"

/*------------------------------------------------------------*/
/*
constructor
*/
/*------------------------------------------------------------*/

Hsp3r::Hsp3r()
{
// 蛻晄悄蛹・ //
memset( &hspctx, 0, sizeof(HSPCTX) );
code_setctx( &hspctx );
code_init();
hspctx.mem_mcs = NULL;
}

Hsp3r::~Hsp3r()
{
// 縺吶∋縺ヲ遐エ譽・ //
code_termfunc();
Dispose();
code_bye();
VarUtilTerm();
}

/*------------------------------------------------------------*/
/*
interface
*/
/*------------------------------------------------------------*/

void Hsp3r::Dispose( void )
{
// ax繧堤?エ譽・ //
if ( hspctx.mem_var != NULL ) {
int i;
for(i=0;i<maxvar;i++) {
HspVarCoreDispose( &hspctx.mem_var[i] );
}
delete [] hspctx.mem_var; hspctx.mem_var = NULL;
}
}

int Hsp3r::Reset( int ext_vars, int ext_hpi )
{
// HSP3R繧貞・譛溷喧
// ext_vars = 螟画焚ID縺ョ謨ー
// ext_hpi = 諡。蠑オHPI縺ョ謨ー
//
// int i;
// char *ptr;
// char fname[512];
if ( hspctx.mem_mcs != NULL ) Dispose();

// load HSP execute object
//
#ifdef HSPNDK
// android data file path
dpm_ini( "/data/data/net.onionsoft.mmtest/lib/libhsp3dish.so",0,-1,-1 );
#else
dpm_ini( "data.dpm",0,-1,-1 ); // original EXE mode
#endif

maxvar = ext_vars;
max_varhpi = ext_hpi;
hspctx.mem_mcs = (unsigned short *)this;
hspctx.hsphed = &hsphed;

memset( &hsphed, 0, sizeof(HSPHED) );
hsphed.max_hpi = (short)( ext_hpi * sizeof( HPIDAT ) );
/*
hspctx.mem_mcs = (unsigned short *)( ptr + hsphed->pt_cs );
hspctx.mem_mds = (char *)( ptr + hsphed->pt_ds );
hspctx.mem_ot = (int *)( ptr + hsphed->pt_ot );
hspctx.mem_di = (unsigned char *)( ptr + hsphed->pt_dinfo );

hspctx.mem_linfo = (LIBDAT *)( ptr + hsphed->pt_linfo );
hspctx.mem_minfo = (STRUCTPRM *)( ptr + hsphed->pt_minfo );
hspctx.mem_finfo = (STRUCTDAT *)( ptr + hsphed->pt_finfo );
*/
HspVarCoreResetVartype( max_varhpi ); // 蝙九・蛻晄悄蛹・ code_resetctx( &hspctx ); // hsp3code setup

// HspVar setup
hspctx.mem_var = NULL;
if ( maxvar ) {
int i;
hspctx.mem_var = new PVal[maxvar];

for(i=0;i<maxvar;i++) {
PVal *pval = &hspctx.mem_var[i];
pval->mode = HSPVAR_MODE_NONE;
pval->flag = HSPVAR_FLAG_INT; // 莉ョ縺ョ蝙・ HspVarCoreClear( pval, HSPVAR_FLAG_INT ); // 繧ー繝ュ繝シ繝舌Ν螟画焚繧・縺ォ繝ェ繧サ繝・ヨ
}
}

return 0;
}


void Hsp3r::SetPackValue( int sum, int dec )
{
hsp_sum = sum;
hsp_dec = dec;
}


void Hsp3r::SetDataName( char *data )
{
// Data Segment險ュ螳・ //
hspctx.mem_mds = data;
}


void Hsp3r::SetFInfo( STRUCTDAT *finfo, int finfo_max )
{
// FInfo繧貞・讒区・縺吶k
//
hspctx.mem_finfo = finfo;
hsphed.max_finfo = finfo_max;
}


void Hsp3r::SetLInfo( LIBDAT *linfo, int linfo_max )
{
// LInfo繧貞・讒区・縺吶k
//
hspctx.mem_linfo = linfo;
hsphed.max_linfo = linfo_max;
}


void Hsp3r::SetMInfo( STRUCTPRM *minfo, int minfo_max )
{
// MInfo繧貞・讒区・縺吶k
//
hspctx.mem_minfo = minfo;
hsphed.max_minfo = minfo_max;
}

Android NDK: WARNING:jni/Android.mk:tate02: non-system libraries in linker flags: -lhsp3lib
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile thumb : tate02 <= hsp_native_app_glue.c
[armeabi-v7a] Compile++ thumb: tate02 <= javafunc.cpp
[armeabi-v7a] Compile thumb : tate02 <= main.c
[armeabi-v7a] Compile++ thumb: tate02 <= hsp3r.cpp
jni/hsp3embed/hsp3r.cpp: In member function 'int Hsp3r::Reset(int, int)':
jni/hsp3embed/hsp3r.cpp:75:73: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] Compile++ thumb: tate02 <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:122:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:223:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:553:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] StaticLibrary : libstdc++.a
[armeabi-v7a] SharedLibrary : libtate02.so
[armeabi-v7a] Install : libtate02.so => libs/armeabi-v7a/libtate02.so

Buildfile: C:\android\tate02\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for tate02...
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\android\tate02\bin\res
[mkdir] Created dir: C:\android\tate02\bin\rsObj
[mkdir] Created dir: C:\android\tate02\bin\rsLibs
[mkdir] Created dir: C:\android\tate02\gen
[mkdir] Created dir: C:\android\tate02\bin\classes
[mkdir] Created dir: C:\android\tate02\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for tate02...
[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:
[javac] Compiling 4 source files to C:\android\tate02\bin\classes

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\android\tate02\bin\classes
[dex] input: C:\android\adt-bundle-x86-20140321\sdk\tools\support\annotations.jar
[dex] Pre-Dexing C:\android\adt-bundle-x86-20140321\sdk\tools\support\annotations.jar -> annotations-58005666a60c830429808a5eb3b2f7c7.jar
[dex] Converting compiled files and external libraries into C:\android\tate02\bin\classes.dex...
[dx] Merged dex A (11 defs/8.9KiB) with dex B (2 defs/1.1KiB). Result is 13 defs/10.8KiB. Took 0.0s

-crunch:
[crunch] Crunching PNG Files in source dir: C:\android\tate02\res
[crunch] To destination dir: C:\android\tate02\bin\res
[crunch] Processing image to cache: C:\android\tate02\res\drawable-hdpi\ic_launcher.png => C:\android\tate02\bin\res\drawable-hdpi\ic_launcher.png
[crunch] (processed image to cache entry C:\android\tate02\bin\res\drawable-hdpi\ic_launcher.png: 76% size of source)
[crunch] Processing image to cache: C:\android\tate02\res\drawable-ldpi\ic_launcher.png => C:\android\tate02\bin\res\drawable-ldpi\ic_launcher.png
[crunch] (processed image to cache entry C:\android\tate02\bin\res\drawable-ldpi\ic_launcher.png: 0% size of source)
[crunch] Processing image to cache: C:\android\tate02\res\drawable-mdpi\ic_launcher.png => C:\android\tate02\bin\res\drawable-mdpi\ic_launcher.png
[crunch] (processed image to cache entry C:\android\tate02\bin\res\drawable-mdpi\ic_launcher.png: 80% size of source)
[crunch] Processing image to cache: C:\android\tate02\res\drawable-xhdpi\ic_launcher.png => C:\android\tate02\bin\res\drawable-xhdpi\ic_launcher.png
[crunch] (processed image to cache entry C:\android\tate02\bin\res\drawable-xhdpi\ic_launcher.png: 69% size of source)
[crunch] Crunched 4 PNG files to update cache

-package-resources:
[aapt] Creating full resource package...

-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating tate02-debug-unaligned.apk and signing it with a debug key...

-post-package:

-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: C:\android\tate02\bin\tate02-debug.apk
[propertyfile] Creating new property file: C:\android\tate02\bin\build.prop
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop

-post-build:

debug:

BUILD SUCCESSFUL
Total time: 3 seconds






■ビルド2回目
#HSP script preprocessor ver3.4beta5 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4beta5 / onion software 1997-2014(c)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)
pkg: /data/local/tmp/tate02-debug.apk

Success

3247 KB/s (206214 bytes in 0.062s)

Android NDK: WARNING:jni/Android.mk:tate02: non-system libraries in linker flags: -lhsp3lib
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile++ thumb: tate02 <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:122:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:223:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:553:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] SharedLibrary : libtate02.so
[armeabi-v7a] Install : libtate02.so => libs/armeabi-v7a/libtate02.so

Buildfile: C:\android\tate02\build.xml

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 22.6.4
[checkenv] Installed at C:\android\adt-bundle-x86-20140321\sdk

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

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for tate02...
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for tate02...
[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] Found Deleted Target File
[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] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
[javac] Compiling 1 source file to C:\android\tate02\bin\classes

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\android\tate02\bin\classes
[dex] input: C:\android\adt-bundle-x86-20140321\sdk\tools\support\annotations.jar
[dex] Using Pre-Dexed annotations-58005666a60c830429808a5eb3b2f7c7.jar <- C:\android\adt-bundle-x86-20140321\sdk\tools\support\annotations.jar
[dex] Found Deleted Target File
[dex] Converting compiled files and external libraries into C:\android\tate02\bin\classes.dex...
[dx] Merged dex A (11 defs/8.9KiB) with dex B (2 defs/1.1KiB). Result is 13 defs/10.8KiB. Took 0.0s

-crunch:
[crunch] Crunching PNG Files in source dir: C:\android\tate02\res
[crunch] To destination dir: C:\android\tate02\bin\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[aapt] Found Deleted Target File
[aapt] Creating full resource package...

-package:
[apkbuilder] Found Deleted Target File
[apkbuilder] Creating tate02-debug-unaligned.apk and signing it with a debug key...

-post-package:

-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: C:\android\tate02\bin\tate02-debug.apk
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop
[propertyfile] Updating property file: C:\android\tate02\bin\build.prop

-post-build:

debug:

BUILD SUCCESSFUL
Total time: 2 seconds



やたか

リンク

2014/6/21(Sat) 06:30:15|NO.62514

ありがとうございました。



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