You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2009-10-30 03:21:21

fernandoc1
Member
Registered: 2009-04-26
Posts: 17

Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

When I'm trying to compile Desmume 0.9.4 on Ubuntu Karmic Koala with "gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)" I'm getting the following error: texcache.h:47: error: declaration of 'u32 format'
texcache.h:46: error:  shadows template parm 'TexCache_TexFormat format'.
Is there any changes in the code that I could do to solve this?

Offline

#2 2009-10-30 03:43:48

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,243

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

void TexCache_SetTexture(u32 format, u32 texpal);
change to
void TexCache_SetTexture(u32, u32);

Offline

#3 2009-10-30 12:45:03

fernandoc1
Member
Registered: 2009-04-26
Posts: 17

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

With this code change I can compile, but I got "segmentation fault" when loading a rom.

Offline

#4 2009-10-30 14:06:51

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,243

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

thats a sham,e maybe youre compiling 64bits i dont remember whether 0.9.4 worked on 64bits linux but i wouldve thought so.

Offline

#5 2009-10-30 16:40:07

fernandoc1
Member
Registered: 2009-04-26
Posts: 17

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

No, I'm using the 32bits version of Ubuntu Karmic Koala:
fernando@fernando-desktop:~$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)

And I have already tried running Desmume 0.9.4 on Ubuntu jaunty 64bits and it worked without problems.

I think that there should be some code that is buggy and so it crash by trying to access an system protected memory area.

This should be a problem with the newer GCC that is installed in Karmic.

Have you tried compile and run desmume on Karmic?

Offline

#6 2009-10-30 22:31:51

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,243

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

nope, i have no use for ubuntu. we'll have to wait to see if anyone else comes across this issue

Offline

#7 2009-10-31 15:57:18

fernandoc1
Member
Registered: 2009-04-26
Posts: 17

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

Is there a debug version of Desmume 0.9.4?
I will try to track why I'm getting a segmentation fault, when I have time.

Offline

#8 2009-10-31 18:37:02

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,243

Re: Error when compiling Desmume 0.9.4 on Ubuntu Karmic Koala

youre a linux user. youre compiling. do you have to ask how to make a debug version?

Offline

Board footer

Powered by FluxBB