maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   ApkEnv support module development (https://talk.maemo.org/showthread.php?t=88250)

B-RUNO 2012-12-23 14:04

Re: ApkEnv support module development
 
Quote:

Originally Posted by Art-O (Post 1307022)
Fruit Ninja uses ogg files for sound and it seems that N900 offical libsdl-mixer lacks support for these: http://talk.maemo.org/archive/index.php/t-81792.html.

But there seems to be libsdl-mixer1.2 version 1.2.6-5+0m5+ogg+mp3 in extras(?) repository. Can you get this version installed and test fruit ninja with that?

Thanks Art-O it's working now after installing ibsdl-mixer1.2 but that is strange though I believe with the first thp binary it used to work.
Anyway thanks for your help.
Bruno

thp 2012-12-23 14:22

Re: ApkEnv support module development
 
For those looking for a holiday challenge, check out commit 0960ba0b, where you will find two partially-working support modules.

Hariainm 2012-12-23 17:59

Re: ApkEnv support module development
 
Quote:

Originally Posted by thp (Post 1307071)
For those looking for a holiday challenge, check out commit 0960ba0b, where you will find two partially-working support modules.

Nice, "World of Goo" and "Cut the Rope" modules! Did you manage to get the games running? Wish somebody provide us the updated apkenv bin, my SDK refuses to compile the sources :(

B-RUNO 2012-12-23 19:14

Re: ApkEnv support module development
 
Hey guys,
Sorry asked this many times but until now couldn't figure out how to build my own apkenv or simply compile my own module :(
So at the moment I have apkenv-master folder under this directory.
Code:

/scratchbox/users/bruno/targets/FREMANTLE_ARMEL/apkenv-master
Is the apkenv on the right place? or shall I have in other place.
What can I do from here?
Once again sorry for be such I noob but I just want learn since we have I very patient and friendlily community I'm just kindly ask for your help
Regards to all.

Art-O 2012-12-23 19:48

Re: ApkEnv support module development
 
Quote:

Originally Posted by thp (Post 1307071)
For those looking for a holiday challenge, check out commit 0960ba0b, where you will find two partially-working support modules.

I have to say that you truly read my mind. I was completely stuck on how to get APK file offset back to worldofgoo but your implementation on that seems to be just perfect :D

But that multithreading GL issue seems to really be pain in the ***. I am currently trying to work simple timing mechanism that doesn't call nativeRender until few seconds have passed since last call to that getAssetFileOffset function. This of course disables loading screen completely but how cares about that :D

There seems to be still some random segfaults but if I ever get this to work ill make some new pull requests :)

Quote:

Originally Posted by B-RUNO (Post 1307142)
Is the apkenv on the right place? or shall I have in other place.
What can I do from here?

I don't think it matters where files are as long as you can cd into that folder inside scratchbox.

But what comes to compiling:
1. Log into scratchbox ( /scratchbox/login )
2. cd into folder that contains source
3. compile with (for N900 debuging enabled): FREMANTLE=1 DEBUG=1 make
4. profit :D

Art-O 2012-12-23 20:02

Re: ApkEnv support module development
 
Quote:

Originally Posted by biketool (Post 1307038)
Probably been covered before, why won't the linux android/dalvik dev environemtn compile for Maemo5? Or is it too much a resource hog?

I actually was looking for this before I found apkenv. It could be possible to compile dalvik to Frematle/Harmattan but sadly with only dalvik you could only run basic Hello World examples.
For full application/games we would have to port whole Android framework in order to get something to work and that would require an army of devs and sadly there just aren't that many of us :(

B-RUNO 2012-12-23 20:58

Re: ApkEnv support module development
 
Thank you very much for your reply Art-O this make allot of sense now.
Although I'm missing something here this is the output:
Code:

[sbox-FREMANTLE_ARMEL: /scratchbox/users/bruno/targets/FREMANTLE_ARMEL/apkenv-master] > FREMANTLE=1 DEBUG=1 make
        CC        apkenv.o
apkenv.c:39:30: error: SDL/SDL_gles.h: No such file or directory
In file included from apkenv.c:46:
jni/jnienv.h:58: warning: 'pcs' attribute directive ignored
jni/jnienv.h:59: warning: 'pcs' attribute directive ignored
jni/jnienv.h:60: warning: 'pcs' attribute directive ignored
jni/jnienv.h:61: warning: 'pcs' attribute directive ignored
jni/jnienv.h:62: warning: 'pcs' attribute directive ignored
jni/jnienv.h:63: warning: 'pcs' attribute directive ignored
jni/jnienv.h:64: warning: 'pcs' attribute directive ignored
jni/jnienv.h:65: warning: 'pcs' attribute directive ignored
jni/jnienv.h:66: warning: 'pcs' attribute directive ignored
jni/jnienv.h:67: warning: 'pcs' attribute directive ignored
jni/jnienv.h:68: warning: 'pcs' attribute directive ignored
jni/jnienv.h:69: warning: 'pcs' attribute directive ignored
jni/jnienv.h:70: warning: 'pcs' attribute directive ignored
jni/jnienv.h:71: warning: 'pcs' attribute directive ignored
jni/jnienv.h:72: warning: 'pcs' attribute directive ignored
jni/jnienv.h:73: warning: 'pcs' attribute directive ignored
jni/jnienv.h:74: warning: 'pcs' attribute directive ignored
jni/jnienv.h:75: warning: 'pcs' attribute directive ignored
jni/jnienv.h:76: warning: 'pcs' attribute directive ignored
jni/jnienv.h:77: warning: 'pcs' attribute directive ignored
jni/jnienv.h:78: warning: 'pcs' attribute directive ignored
jni/jnienv.h:79: warning: 'pcs' attribute directive ignored
jni/jnienv.h:80: warning: 'pcs' attribute directive ignored
jni/jnienv.h:81: warning: 'pcs' attribute directive ignored
jni/jnienv.h:82: warning: 'pcs' attribute directive ignored
jni/jnienv.h:83: warning: 'pcs' attribute directive ignored
jni/jnienv.h:84: warning: 'pcs' attribute directive ignored
jni/jnienv.h:85: warning: 'pcs' attribute directive ignored
jni/jnienv.h:86: warning: 'pcs' attribute directive ignored
jni/jnienv.h:87: warning: 'pcs' attribute directive ignored
jni/jnienv.h:88: warning: 'pcs' attribute directive ignored
jni/jnienv.h:89: warning: 'pcs' attribute directive ignored
jni/jnienv.h:90: warning: 'pcs' attribute directive ignored
jni/jnienv.h:91: warning: 'pcs' attribute directive ignored
jni/jnienv.h:92: warning: 'pcs' attribute directive ignored
jni/jnienv.h:93: warning: 'pcs' attribute directive ignored
jni/jnienv.h:94: warning: 'pcs' attribute directive ignored
jni/jnienv.h:95: warning: 'pcs' attribute directive ignored
jni/jnienv.h:96: warning: 'pcs' attribute directive ignored
jni/jnienv.h:97: warning: 'pcs' attribute directive ignored
jni/jnienv.h:98: warning: 'pcs' attribute directive ignored
jni/jnienv.h:99: warning: 'pcs' attribute directive ignored
jni/jnienv.h:100: warning: 'pcs' attribute directive ignored
jni/jnienv.h:101: warning: 'pcs' attribute directive ignored
jni/jnienv.h:102: warning: 'pcs' attribute directive ignored
jni/jnienv.h:103: warning: 'pcs' attribute directive ignored
jni/jnienv.h:104: warning: 'pcs' attribute directive ignored
jni/jnienv.h:105: warning: 'pcs' attribute directive ignored
jni/jnienv.h:106: warning: 'pcs' attribute directive ignored
jni/jnienv.h:107: warning: 'pcs' attribute directive ignored
jni/jnienv.h:108: warning: 'pcs' attribute directive ignored
jni/jnienv.h:109: warning: 'pcs' attribute directive ignored
jni/jnienv.h:110: warning: 'pcs' attribute directive ignored
jni/jnienv.h:111: warning: 'pcs' attribute directive ignored
jni/jnienv.h:112: warning: 'pcs' attribute directive ignored
jni/jnienv.h:113: warning: 'pcs' attribute directive ignored
jni/jnienv.h:114: warning: 'pcs' attribute directive ignored
jni/jnienv.h:115: warning: 'pcs' attribute directive ignored
jni/jnienv.h:116: warning: 'pcs' attribute directive ignored
jni/jnienv.h:117: warning: 'pcs' attribute directive ignored
jni/jnienv.h:118: warning: 'pcs' attribute directive ignored
jni/jnienv.h:119: warning: 'pcs' attribute directive ignored
jni/jnienv.h:120: warning: 'pcs' attribute directive ignored
jni/jnienv.h:121: warning: 'pcs' attribute directive ignored
jni/jnienv.h:122: warning: 'pcs' attribute directive ignored
jni/jnienv.h:123: warning: 'pcs' attribute directive ignored
jni/jnienv.h:124: warning: 'pcs' attribute directive ignored
jni/jnienv.h:125: warning: 'pcs' attribute directive ignored
jni/jnienv.h:126: warning: 'pcs' attribute directive ignored
jni/jnienv.h:127: warning: 'pcs' attribute directive ignored
jni/jnienv.h:128: warning: 'pcs' attribute directive ignored
jni/jnienv.h:129: warning: 'pcs' attribute directive ignored
jni/jnienv.h:130: warning: 'pcs' attribute directive ignored
jni/jnienv.h:131: warning: 'pcs' attribute directive ignored
jni/jnienv.h:132: warning: 'pcs' attribute directive ignored
jni/jnienv.h:133: warning: 'pcs' attribute directive ignored
jni/jnienv.h:134: warning: 'pcs' attribute directive ignored
jni/jnienv.h:135: warning: 'pcs' attribute directive ignored
jni/jnienv.h:136: warning: 'pcs' attribute directive ignored
jni/jnienv.h:137: warning: 'pcs' attribute directive ignored
jni/jnienv.h:138: warning: 'pcs' attribute directive ignored
jni/jnienv.h:139: warning: 'pcs' attribute directive ignored
jni/jnienv.h:140: warning: 'pcs' attribute directive ignored
jni/jnienv.h:141: warning: 'pcs' attribute directive ignored
jni/jnienv.h:142: warning: 'pcs' attribute directive ignored
jni/jnienv.h:143: warning: 'pcs' attribute directive ignored
jni/jnienv.h:144: warning: 'pcs' attribute directive ignored
jni/jnienv.h:145: warning: 'pcs' attribute directive ignored
jni/jnienv.h:146: warning: 'pcs' attribute directive ignored
jni/jnienv.h:147: warning: 'pcs' attribute directive ignored
jni/jnienv.h:148: warning: 'pcs' attribute directive ignored
jni/jnienv.h:149: warning: 'pcs' attribute directive ignored
jni/jnienv.h:150: warning: 'pcs' attribute directive ignored
jni/jnienv.h:151: warning: 'pcs' attribute directive ignored
jni/jnienv.h:152: warning: 'pcs' attribute directive ignored
jni/jnienv.h:153: warning: 'pcs' attribute directive ignored
jni/jnienv.h:154: warning: 'pcs' attribute directive ignored
jni/jnienv.h:155: warning: 'pcs' attribute directive ignored
jni/jnienv.h:156: warning: 'pcs' attribute directive ignored
jni/jnienv.h:157: warning: 'pcs' attribute directive ignored
jni/jnienv.h:158: warning: 'pcs' attribute directive ignored
jni/jnienv.h:159: warning: 'pcs' attribute directive ignored
jni/jnienv.h:160: warning: 'pcs' attribute directive ignored
jni/jnienv.h:161: warning: 'pcs' attribute directive ignored
jni/jnienv.h:162: warning: 'pcs' attribute directive ignored
jni/jnienv.h:163: warning: 'pcs' attribute directive ignored
jni/jnienv.h:164: warning: 'pcs' attribute directive ignored
jni/jnienv.h:165: warning: 'pcs' attribute directive ignored
jni/jnienv.h:166: warning: 'pcs' attribute directive ignored
jni/jnienv.h:167: warning: 'pcs' attribute directive ignored
jni/jnienv.h:168: warning: 'pcs' attribute directive ignored
jni/jnienv.h:169: warning: 'pcs' attribute directive ignored
jni/jnienv.h:170: warning: 'pcs' attribute directive ignored
jni/jnienv.h:171: warning: 'pcs' attribute directive ignored
jni/jnienv.h:172: warning: 'pcs' attribute directive ignored
jni/jnienv.h:173: warning: 'pcs' attribute directive ignored
jni/jnienv.h:174: warning: 'pcs' attribute directive ignored
jni/jnienv.h:175: warning: 'pcs' attribute directive ignored
jni/jnienv.h:176: warning: 'pcs' attribute directive ignored
jni/jnienv.h:177: warning: 'pcs' attribute directive ignored
jni/jnienv.h:178: warning: 'pcs' attribute directive ignored
jni/jnienv.h:179: warning: 'pcs' attribute directive ignored
jni/jnienv.h:180: warning: 'pcs' attribute directive ignored
jni/jnienv.h:181: warning: 'pcs' attribute directive ignored
jni/jnienv.h:182: warning: 'pcs' attribute directive ignored
jni/jnienv.h:183: warning: 'pcs' attribute directive ignored
jni/jnienv.h:184: warning: 'pcs' attribute directive ignored
jni/jnienv.h:185: warning: 'pcs' attribute directive ignored
jni/jnienv.h:186: warning: 'pcs' attribute directive ignored
jni/jnienv.h:187: warning: 'pcs' attribute directive ignored
jni/jnienv.h:188: warning: 'pcs' attribute directive ignored
jni/jnienv.h:189: warning: 'pcs' attribute directive ignored
jni/jnienv.h:190: warning: 'pcs' attribute directive ignored
jni/jnienv.h:191: warning: 'pcs' attribute directive ignored
jni/jnienv.h:192: warning: 'pcs' attribute directive ignored
jni/jnienv.h:193: warning: 'pcs' attribute directive ignored
jni/jnienv.h:194: warning: 'pcs' attribute directive ignored
jni/jnienv.h:195: warning: 'pcs' attribute directive ignored
jni/jnienv.h:196: warning: 'pcs' attribute directive ignored
jni/jnienv.h:197: warning: 'pcs' attribute directive ignored
jni/jnienv.h:198: warning: 'pcs' attribute directive ignored
jni/jnienv.h:199: warning: 'pcs' attribute directive ignored
jni/jnienv.h:200: warning: 'pcs' attribute directive ignored
jni/jnienv.h:201: warning: 'pcs' attribute directive ignored
jni/jnienv.h:202: warning: 'pcs' attribute directive ignored
jni/jnienv.h:203: warning: 'pcs' attribute directive ignored
jni/jnienv.h:204: warning: 'pcs' attribute directive ignored
jni/jnienv.h:205: warning: 'pcs' attribute directive ignored
jni/jnienv.h:206: warning: 'pcs' attribute directive ignored
jni/jnienv.h:207: warning: 'pcs' attribute directive ignored
jni/jnienv.h:208: warning: 'pcs' attribute directive ignored
jni/jnienv.h:209: warning: 'pcs' attribute directive ignored
jni/jnienv.h:210: warning: 'pcs' attribute directive ignored
jni/jnienv.h:211: warning: 'pcs' attribute directive ignored
jni/jnienv.h:212: warning: 'pcs' attribute directive ignored
jni/jnienv.h:213: warning: 'pcs' attribute directive ignored
jni/jnienv.h:214: warning: 'pcs' attribute directive ignored
jni/jnienv.h:215: warning: 'pcs' attribute directive ignored
jni/jnienv.h:216: warning: 'pcs' attribute directive ignored
jni/jnienv.h:217: warning: 'pcs' attribute directive ignored
jni/jnienv.h:218: warning: 'pcs' attribute directive ignored
jni/jnienv.h:219: warning: 'pcs' attribute directive ignored
jni/jnienv.h:220: warning: 'pcs' attribute directive ignored
jni/jnienv.h:221: warning: 'pcs' attribute directive ignored
jni/jnienv.h:222: warning: 'pcs' attribute directive ignored
jni/jnienv.h:223: warning: 'pcs' attribute directive ignored
jni/jnienv.h:224: warning: 'pcs' attribute directive ignored
jni/jnienv.h:225: warning: 'pcs' attribute directive ignored
jni/jnienv.h:226: warning: 'pcs' attribute directive ignored
jni/jnienv.h:227: warning: 'pcs' attribute directive ignored
jni/jnienv.h:228: warning: 'pcs' attribute directive ignored
jni/jnienv.h:229: warning: 'pcs' attribute directive ignored
jni/jnienv.h:230: warning: 'pcs' attribute directive ignored
jni/jnienv.h:231: warning: 'pcs' attribute directive ignored
jni/jnienv.h:232: warning: 'pcs' attribute directive ignored
jni/jnienv.h:233: warning: 'pcs' attribute directive ignored
jni/jnienv.h:234: warning: 'pcs' attribute directive ignored
jni/jnienv.h:235: warning: 'pcs' attribute directive ignored
jni/jnienv.h:236: warning: 'pcs' attribute directive ignored
jni/jnienv.h:237: warning: 'pcs' attribute directive ignored
jni/jnienv.h:238: warning: 'pcs' attribute directive ignored
jni/jnienv.h:239: warning: 'pcs' attribute directive ignored
jni/jnienv.h:240: warning: 'pcs' attribute directive ignored
jni/jnienv.h:241: warning: 'pcs' attribute directive ignored
jni/jnienv.h:242: warning: 'pcs' attribute directive ignored
jni/jnienv.h:243: warning: 'pcs' attribute directive ignored
jni/jnienv.h:244: warning: 'pcs' attribute directive ignored
jni/jnienv.h:245: warning: 'pcs' attribute directive ignored
jni/jnienv.h:246: warning: 'pcs' attribute directive ignored
jni/jnienv.h:247: warning: 'pcs' attribute directive ignored
jni/jnienv.h:248: warning: 'pcs' attribute directive ignored
jni/jnienv.h:249: warning: 'pcs' attribute directive ignored
jni/jnienv.h:250: warning: 'pcs' attribute directive ignored
jni/jnienv.h:251: warning: 'pcs' attribute directive ignored
jni/jnienv.h:252: warning: 'pcs' attribute directive ignored
jni/jnienv.h:253: warning: 'pcs' attribute directive ignored
jni/jnienv.h:254: warning: 'pcs' attribute directive ignored
jni/jnienv.h:255: warning: 'pcs' attribute directive ignored
jni/jnienv.h:256: warning: 'pcs' attribute directive ignored
jni/jnienv.h:257: warning: 'pcs' attribute directive ignored
jni/jnienv.h:258: warning: 'pcs' attribute directive ignored
jni/jnienv.h:259: warning: 'pcs' attribute directive ignored
jni/jnienv.h:260: warning: 'pcs' attribute directive ignored
jni/jnienv.h:261: warning: 'pcs' attribute directive ignored
jni/jnienv.h:262: warning: 'pcs' attribute directive ignored
jni/jnienv.h:263: warning: 'pcs' attribute directive ignored
jni/jnienv.h:264: warning: 'pcs' attribute directive ignored
jni/jnienv.h:265: warning: 'pcs' attribute directive ignored
jni/jnienv.h:266: warning: 'pcs' attribute directive ignored
jni/jnienv.h:267: warning: 'pcs' attribute directive ignored
jni/jnienv.h:268: warning: 'pcs' attribute directive ignored
jni/jnienv.h:269: warning: 'pcs' attribute directive ignored
jni/jnienv.h:270: warning: 'pcs' attribute directive ignored
jni/jnienv.h:271: warning: 'pcs' attribute directive ignored
jni/jnienv.h:272: warning: 'pcs' attribute directive ignored
jni/jnienv.h:273: warning: 'pcs' attribute directive ignored
jni/jnienv.h:274: warning: 'pcs' attribute directive ignored
jni/jnienv.h:275: warning: 'pcs' attribute directive ignored
jni/jnienv.h:276: warning: 'pcs' attribute directive ignored
jni/jnienv.h:277: warning: 'pcs' attribute directive ignored
jni/jnienv.h:278: warning: 'pcs' attribute directive ignored
jni/jnienv.h:279: warning: 'pcs' attribute directive ignored
jni/jnienv.h:280: warning: 'pcs' attribute directive ignored

apkenv.c: In function 'main':
apkenv.c:226: warning: implicit declaration of function 'SDL_GLES_Init'
apkenv.c:226: error: 'SDL_GLES_VERSION_1_1' undeclared (first use in this function)
apkenv.c:226: error: (Each undeclared identifier is reported only once
apkenv.c:226: error: for each function it appears in.)
apkenv.c:229: warning: implicit declaration of function 'SDL_GLES_MakeCurrent'
apkenv.c:229: warning: implicit declaration of function 'SDL_GLES_CreateContext'
apkenv.c:351: warning: implicit declaration of function 'SDL_GLES_SwapBuffers'
make: *** [apkenv.o] Error 1


evujumenuk 2012-12-23 21:04

Re: ApkEnv support module development
 
Do WoG and CtR actually start right now with the new modules?

Art-O 2012-12-23 21:11

Re: ApkEnv support module development
 
2 Attachment(s)
Quote:

Originally Posted by Kozzi (Post 1307039)
Is it possible to have binary file for n9 with added suport for those modules?

Here (attached) is precompiled apkenv for Harmattan (N9) with following modules:
- That Rabbit Game 2
- Angry Birds Space (some other versions & Amazing Alex might work)
- Fruit Ninja
- World of Goo (still early alpha. no sounds, no loading screen and randomly crashes) (And it takes long time to load so be patient)

Sorry, I can't make binaries for N900 for I don't have one...

I am going to take little holiday break for a while so
Happy Christmas for everyone :)


Art-O

Art-O 2012-12-23 21:19

Re: ApkEnv support module development
 
Quote:

Originally Posted by B-RUNO (Post 1307159)
Thank you very much for your reply Art-O this make allot of sense now.
Although I'm missing something here this is the output:

From first look it seems that you are missing some dependencies. Try
Code:

apt-get install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1
inside scratchbox.

coderus 2012-12-23 21:24

Re: ApkEnv support module development
 
please stay this thread for developing info only, keep releases away from it. it can be ppublished in main apkenv thread. please!

B-RUNO 2012-12-23 21:50

Re: ApkEnv support module development
 
Quote:

Originally Posted by Art-O (Post 1307163)
From first look it seems that you are missing some dependencies. Try
Code:

apt-get install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1
inside scratchbox.

You were right it was missing this packages although I still get this error:
Code:

jni/jnienv.h:295: warning: 'pcs' attribute directive ignored
apkenv.c: In function 'main':
apkenv.c:226: warning: implicit declaration of function 'SDL_GLES_Init'
apkenv.c:226: error: 'SDL_GLES_VERSION_1_1' undeclared (first use in this function)
apkenv.c:226: error: (Each undeclared identifier is reported only once
apkenv.c:226: error: for each function it appears in.)
apkenv.c:229: warning: implicit declaration of function 'SDL_GLES_MakeCurrent'
apkenv.c:229: warning: implicit declaration of function 'SDL_GLES_CreateContext'
apkenv.c:351: warning: implicit declaration of function 'SDL_GLES_SwapBuffers'
make: *** [apkenv.o] Error 1

But without bothering you today, Art-O have a very nice Christmas and enjoy your holidays.

farfary 2012-12-24 00:01

Re: ApkEnv support module development
 
Quote:

Originally Posted by Art-O (Post 1307162)
Here (attached) is precompiled apkenv for Harmattan (N9) with following modules:
- That Rabbit Game 2
- Angry Birds Space (some other versions & Amazing Alex might work)
- Fruit Ninja
- World of Goo (still early alpha. no sounds, no loading screen and randomly crashes) (And it takes long time to load so be patient)

Sorry, I can't make binaries for N900 for I don't have one...

I am going to take little holiday break for a while so
Happy Christmas for everyone :)


Art-O

WoooW :D Word Of Go Is Worked !!
very Thanks !!!
But in level 2 : Segmentation fault

Code:

[t=69.41] preparing images: done.
playing level 'EconomicDivide'

[t=69.41] playing level 'EconomicDivide'
warning: duplicate ids in scene file (retryButton)

[t=69.41] warning: duplicate ids in scene file (retryButton)
world: island: level: fps= 24.79 ups= 21.18

[t=69.41] fps= 24.79 ups= 21.18
Forcing dt 0.

[t=69.41] Forcing dt 0.
fps=  0.18 ups=  0.00

[t=69.41] fps=  0.18 ups=  0.00
Segmentation fault


colakang 2012-12-24 07:40

Re: ApkEnv support module development
 
how about wechat,whatsapp,line,etc...

is possible?

@thp @Art-O

coderus 2012-12-24 07:57

Re: ApkEnv support module development
 
@colakang go to MAIN APKENV THREAD and read it!

Bundyo 2012-12-24 16:15

Re: ApkEnv support module development
 
Btw, the Angry Birds Space module works for Amazing Alex too (as mentioned before in the thread), but only if apkenv was compiled with GLES1 - doesn't work with 2.

coderus 2012-12-24 16:28

Re: ApkEnv support module development
 
gles1 apps cant be run under gles2 same for gles2 in gles1.
you should have two apkenv for gles1 and gles2

automagic68 2012-12-24 16:44

Re: ApkEnv support module development
 
So this is written in C? Does it convert the Java in the .apk to C?

coderus 2012-12-24 17:08

Re: ApkEnv support module development
 
can you read topic before writing in it?

B-RUNO 2012-12-24 18:32

Re: ApkEnv support module development
 
Merry Christmas everybody!!!!

Brian_7 2012-12-24 23:33

Re: ApkEnv support module development
 
Hello i was trying to build my own apkenv too. I got this:

Quote:

[sbox-FREMANTLE_X86: ~/apkenv-master] > FREMANTLE=1 DEBUG=1 make
CC apkenv.o
apkenv.c:39:30: error: SDL/SDL_gles.h: No such file or directory
apkenv.c: In function 'apk_basename':
apkenv.c:193: warning: return discards qualifiers from pointer target type
apkenv.c: In function 'main':
apkenv.c:350: warning: implicit declaration of function 'SDL_GLES_Init'
apkenv.c:350: error: 'SDL_GLES_VERSION_1_1' undeclared (first use in this function)
apkenv.c:350: error: (Each undeclared identifier is reported only once
apkenv.c:350: error: for each function it appears in.)
apkenv.c:353: warning: implicit declaration of function 'SDL_GLES_MakeCurrent'
apkenv.c:353: warning: implicit declaration of function 'SDL_GLES_CreateContext'
apkenv.c:459: warning: implicit declaration of function 'SDL_GLES_SwapBuffers'
make: *** [apkenv.o] Error 1
How can i solve those errors?

Bundyo 2012-12-25 07:44

Re: ApkEnv support module development
 
You need the -dev packages of the dependencies listed on apkenv's site.

marmistrz 2012-12-25 15:11

Re: ApkEnv support module development
 
Quote:

Originally Posted by Art-O (Post 1307022)
Fruit Ninja uses ogg files for sound and it seems that N900 offical libsdl-mixer lacks support for these: http://talk.maemo.org/archive/index.php/t-81792.html.

But there seems to be libsdl-mixer1.2 version 1.2.6-5+0m5+ogg+mp3 in extras(?) repository. Can you get this version installed and test fruit ninja with that?

There's an ogg-support package

Brian_7 2012-12-25 15:26

Re: ApkEnv support module development
 
I tried to install the dependences and i got this:

Quote:

[sbox-FREMANTLE_X86: ~/apkenv-master] > apt-get install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1
Reading package lists... Done
Building dependency tree... Done
libsdl1.2 is already the newest version.
libsdl-mixer1.2 is already the newest version.
E: Couldn't find package libgles1-sgx-img
But i could install libsdl-gles1.2-dev

Now when i try FREMANTLE=1 DEBUG=1 make, i get an endless output of errors, this is the end of it:

Quote:

compat/gles_wrappers.c:1414: error: expected ')' before 'target'
compat/gles_wrappers.c:1420: error: expected ')' before 'device'
compat/gles_wrappers.c:1426: error: expected ')' before 'device'
compat/gles_wrappers.c:1431: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
compat/gles_wrappers.c:1438: error: expected ')' before 'index'
compat/gles_wrappers.c:1444: error: expected ')' before 'target'
compat/gles_wrappers.c:1450: error: expected ')' before 'target'
compat/gles_wrappers.c:1456: error: expected ')' before 'target'
compat/gles_wrappers.c:1462: error: expected ')' before 'target'
compat/gles_wrappers.c:1468: error: expected ')' before 'index'
compat/gles_wrappers.c:1474: error: expected ')' before 'target'
compat/gles_wrappers.c:1480: error: expected ')' before 'target'
compat/gles_wrappers.c:1486: error: expected ')' before 'target'
compat/gles_wrappers.c:1492: error: expected ')' before 'target'
compat/gles_wrappers.c:1498: error: expected ')' before 'index'
compat/gles_wrappers.c:1504: error: expected ')' before 'index'
compat/gles_wrappers.c:1510: error: expected ')' before 'index'
compat/gles_wrappers.c:1516: error: expected ')' before 'target'
compat/gles_wrappers.c:1522: error: expected ')' before 'target'
compat/gles_wrappers.c:1528: error: expected ')' before 'n'
compat/gles_wrappers.c:1534: error: expected ')' before 'n'
compat/gles_wrappers.c:1540: error: expected ')' before 'mode'
compat/gles_wrappers.c:1546: error: expected ')' before 'mode'
make: *** [compat/gles_wrappers.o] Error 1

xes 2012-12-26 22:23

Re: ApkEnv support module development
 
1 Attachment(s)
I have just built the latest apkenv snapshot with all the new modules for fremantle... (here attached)

All is working except WOG that does not starts at all giving segfault..

Thanks to all and... Happy Christmas!!! :)

Brian_7 2012-12-27 01:33

Re: ApkEnv support module development
 
Quote:

Originally Posted by xes (Post 1308018)
I have just built the latest apkenv snapshot with all the new modules for fremantle... (here attached)

All is working except WOG that does not starts at all giving segfault..

Thanks to all and... Happy Christmas!!! :)

Fruit ninja gave me a segfault

colakang 2012-12-27 05:32

Re: ApkEnv support module development
 
Quote:

Originally Posted by Brian_7 (Post 1307613)
I tried to install the dependences and i got this:



But i could install libsdl-gles1.2-dev

Now when i try FREMANTLE=1 DEBUG=1 make, i get an endless output of errors, this is the end of it:

1.add the MAEMO extra source to your sources.list.
2. try fakeroot apt-get install libsdl-gles1.2-dev again

you can read these page

ref: http://www.developer.nokia.com/Commu...h_Qt_for_Maemo

ref:
http://wiki.maemo.org/User:Javispedro/SDL-GLES

Brian_7 2012-12-27 15:55

Re: ApkEnv support module development
 
These are all my sources:

Quote:

[sbox-FREMANTLE_X86: ~/apkenv-master] > cat /etc/apt/sources.list
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free
deb http://repository.maemo.org/ fremantle/******************************** nokia-binaries
deb http://repository.maemo.org/extras-devel fremantle free non-free
deb-src http://repository.maemo.org/extras-devel fremantle free
deb http://repository.maemo.org/extras/ fremantle free non-free
deb-src http://repository.maemo.org/extras/ fremantle free
when i run apt-get update, i get these errors:

Quote:

Reading package lists... Done
W: GPG error: http://repository.maemo.org fremantle Release: Couldn't access keyring: 'No such file or directory'
W: GPG error: http://repository.maemo.org fremantle Release: Couldn't access keyring: 'No such file or directory'
W: You may want to run apt-get update to correct these problems
I already had libsdl-gles1.2-dev

Quote:

[sbox-FREMANTLE_X86: ~/apkenv-master] > fakeroot apt-get install libsdl-gles1.2-dev
Reading package lists... Done
Building dependency tree... Done
libsdl-gles1.2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
it can not still find libgles1-sgx-img

Quote:

[sbox-FREMANTLE_X86: ~] > apt-get install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1
Reading package lists... Done
Building dependency tree... Done
libsdl1.2 is already the newest version.
libsdl-mixer1.2 is already the newest version.
E: Couldn't find package libgles1-sgx-img

Sazpaimon 2012-12-27 16:09

Re: ApkEnv support module development
 
Run:
Code:

sb-conf select FREMANTLE_ARMEL
You need to be in the ARM toolchain for scratchbox, not x86. Then apt-get install all the packages you need.

Brian_7 2012-12-27 18:25

Re: ApkEnv support module development
 
Now i did everything on fremantle. I added the sources and i run apt-get update. But when i try to install the libs, i get this:

Quote:

[sbox-FREMANTLE_ARMEL: ~] > apt-get install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1
Reading package lists... Done
Building dependency tree... Done
libsdl1.2 is already the newest version.
libgles1-sgx-img is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgcc1: Depends: gcc-4.6-base (= 4.6.1-maemo6) but it is not going to be installed
libsdl-mixer1.2: Depends: libogg0 (>= 1:1.1.3) but it is not going to be installed
Depends: libsmpeg0 but it is not going to be installed
Depends: libvorbis0a (>= 1.2.3.tk1) but it is not going to be installed
Depends: libvorbisfile3 (>= 1.2.3.tk1) but it is not going to be installed
libsdl-mixer1.2-dev: Depends: libsdl-mixer1.2 (= 1:1.2.6-5+0m5)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install libsdl-gles1.2-dev
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgcc1: Depends: gcc-4.6-base (= 4.6.1-maemo6) but it is not going to be installed
libsdl-gles1.2-dev: Depends: libsdl-gles1.2-1 (= 1.0.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

When i run apt-get -f install:

Quote:

[sbox-FREMANTLE_ARMEL: ~] > apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
gcc-4.6-base
The following NEW packages will be installed:
gcc-4.6-base
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
Need to get 0B/136kB of archives.
After unpacking 209kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
gcc-4.6-base
Install these packages without verification [y/N]? y
dpkg: regarding .../gcc-4.6-base_4.6.1-maemo6_armel.deb containing gcc-4.6-base:
package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/gcc-4.6-base_4.6.1-maemo6_armel.deb (--unpack):
unsupported dependency problem - not installing gcc-4.6-base
Errors were encountered while processing:
/var/cache/apt/archives/gcc-4.6-base_4.6.1-maemo6_armel.deb
E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)
and now when i try to build apkenv, i get this:

Quote:

[sbox-FREMANTLE_ARMEL: ~/apkenv-master] > FREMANTLE=1 DEBUG=1 make
CC compat/gles_wrappers.o
compat/gles_wrappers.c: In function 'my_glIsRenderbufferOES':
compat/gles_wrappers.c:1184: warning: control reaches end of non-void function
compat/gles_wrappers.c: In function 'my_glIsFramebufferOES':
compat/gles_wrappers.c:1220: warning: control reaches end of non-void function
compat/gles_wrappers.c: In function 'my_glCheckFramebufferStatusOES':
compat/gles_wrappers.c:1244: warning: control reaches end of non-void function
compat/gles_wrappers.c: In function 'my_glQueryMatrixxOES':
compat/gles_wrappers.c:1298: warning: control reaches end of non-void function
compat/gles_wrappers.c: In function 'my_glMapBufferOES':
compat/gles_wrappers.c:1406: warning: control reaches end of non-void function
compat/gles_wrappers.c: In function 'my_glUnmapBufferOES':
compat/gles_wrappers.c:1412: warning: control reaches end of non-void function
compat/gles_wrappers.c: In function 'my_glGetTexStreamDeviceNameIMG':
compat/gles_wrappers.c:1436: warning: control reaches end of non-void function
CC compat/hooks.o
CC compat/libc_wrappers.o
CC compat/liblog_wrappers.o
CC compat/pthread_wrappers.o
CC apklib/apklib.o
CC apklib/ioapi.o
CC apklib/ioapi_mem.o
CC apklib/unzip.o
CC jni/jnienv.o
CC jni/shlib.o
LINK apkenv
/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lSDL_gles
collect2: ld returned 1 exit status
make: *** [apkenv] Error 1

Sazpaimon 2012-12-27 19:40

Re: ApkEnv support module development
 
If I were you I would remove extras-devel from your repository.

Brian_7 2012-12-27 20:04

Re: ApkEnv support module development
 
Quote:

Originally Posted by Sazpaimon (Post 1308292)
If I were you I would remove extras-devel from your repository.

Done, but i still have those unmet dependencies problems

Sazpaimon 2012-12-27 21:12

Re: ApkEnv support module development
 
You need to remove/purge all those broken packages pulled in from extras-devel. try to dpkg --remove --purge them and reinstall them. All else fails, you can reinstall the FREMANTLE_ARMEL toolchain and try again.

B-RUNO 2012-12-27 21:53

Re: ApkEnv support module development
 
Hello to all,
When ever I try to compile apkenv with GLES=2 I get this error
Code:

apkenv.c: In function 'apk_basename':
apkenv.c:193: warning: return discards qualifiers from pointer target type
apkenv.c: In function 'main':
apkenv.c:356: error: 'SDL_GL_CONTEXT_MAJOR_VERSION' undeclared (first use in this function)
apkenv.c:356: error: (Each undeclared identifier is reported only once
apkenv.c:356: error: for each function it appears in.)
apkenv.c:360: error: 'SDL_OPENGLES' undeclared (first use in this function)
make: *** [apkenv.o] Error 1

By the way I have "libsdl-gles1.2-dev and install libsdl1.2 libsdl-mixer1.2 libgles1-sgx-img libsdl-gles1.2-1" installed, though I'm able to compile OpenGL ES 1.x but I can't compile it with OpenGL ES 2.0
Does anyone have any idea what I'm missing :confused:

coderus 2012-12-28 04:25

Re: ApkEnv support module development
 
in harmattan we should install libgles2-dev for this

thp 2012-12-28 10:10

Re: ApkEnv support module development
 
You should be able to build apkenv in Scratchbox (for Harmattan) using:

Code:

dpkg-buildpackage -rfakeroot -b
If dependencies are missing, you should get a list of packages that you need to install. If the build still fails, then the packaging information is incomplete, and we need to add more dependencies. In addition to the default repositories added, on Maemo 5 I usually add the extras-devel repository, and on Harmattan you don't need to add additional repositories.

B-RUNO 2012-12-28 15:26

Re: ApkEnv support module development
 
Seems that libgles2-dev is only available Fremantle_x86 not Armel
Package Link
I believe that is the reason because I cannot compile with OpenGL ES 2.0 or Am I wrong?
:confused:

Sazpaimon 2012-12-28 16:02

Re: ApkEnv support module development
 
For armel the package is named libgles2-sgx-img-dev

thedead1440 2012-12-28 17:03

Re: ApkEnv support module development
 
Quote:

Originally Posted by thp (Post 1308432)
You should be able to build apkenv in Scratchbox (for Harmattan) using:

Code:

dpkg-buildpackage -rfakeroot -b

It built fine for me; thanks for this! It works well too; at least with the only game i've tried so far, fruit ninja :D

B-RUNO 2012-12-28 17:10

Re: ApkEnv support module development
 
Quote:

Originally Posted by Sazpaimon (Post 1308535)
For armel the package is named libgles2-sgx-img-dev

You're right Sazpaimon and without I realizing I had installed already and I still get the same error.
Quote:

apkenv.c: In function 'apk_basename':
apkenv.c:193: warning: return discards qualifiers from pointer target type
apkenv.c: In function 'main':
apkenv.c:358: error: 'SDL_GL_CONTEXT_MAJOR_VERSION' undeclared (first use in this function)
apkenv.c:358: error: (Each undeclared identifier is reported only once
apkenv.c:358: error: for each function it appears in.)
apkenv.c:360: error: 'SDL_OPENGLES' undeclared (first use in this function)
make: *** [apkenv.o] Error 1
So I guess I have to wait for someone with fremantle sdk to report if have the same problem or wait for thp.
Regards


All times are GMT. The time now is 05:00.

vBulletin® Version 3.8.8