You are not logged in.
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
void TexCache_SetTexture(u32 format, u32 texpal);
change to
void TexCache_SetTexture(u32, u32);
Offline
With this code change I can compile, but I got "segmentation fault" when loading a rom.
Offline
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
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
nope, i have no use for ubuntu. we'll have to wait to see if anyone else comes across this issue
Offline
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
youre a linux user. youre compiling. do you have to ask how to make a debug version?
Offline