Reply
Thread Tools
Posts: 268 | Thanked: 75 times | Joined on Jan 2011
#61
Hello i was trying to build my own apkenv too. I got this:

[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?

Last edited by Brian_7; 2012-12-25 at 05:29.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#62
You need the -dev packages of the dependencies listed on apkenv's site.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 2 Users Say Thank You to Bundyo For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#63
Originally Posted by Art-O View Post
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
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 268 | Thanked: 75 times | Joined on Jan 2011
#64
I tried to install the dependences and i got this:

[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:

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
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#65
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!!!
Attached Files
File Type: gz apkenv_20121226_n900_xes.tar.gz (76.1 KB, 408 views)
 

The Following 7 Users Say Thank You to xes For This Useful Post:
Posts: 268 | Thanked: 75 times | Joined on Jan 2011
#66
Originally Posted by xes View Post
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
 
Posts: 24 | Thanked: 10 times | Joined on Jun 2010
#67
Originally Posted by Brian_7 View Post
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
 

The Following 2 Users Say Thank You to colakang For This Useful Post:
Posts: 268 | Thanked: 75 times | Joined on Jan 2011
#68
These are all my sources:

[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:

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

[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

[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
 
Posts: 98 | Thanked: 142 times | Joined on Mar 2011
#69
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.
 

The Following User Says Thank You to Sazpaimon For This Useful Post:
Posts: 268 | Thanked: 75 times | Joined on Jan 2011
#70
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:

[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:

[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:

[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
 
Reply

Tags
apkenv


 
Forum Jump


All times are GMT. The time now is 10:55.