|
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

| |