Help - Search - Members - Calendar
Full Version: Can't compile code from repository
1Emulation.Com > Official Emulator Forums > DSEmu
crazyjul
I'd like to work on the emulator, but when I try to compile, nmake complains about missing file mmu.c. As it seems gpu.c is also lacking. Any ideas??

Thanks

Crazyjul
doublec
Are you using the Darcs repository? Are you using the VC6 project files? Don't use the Makefile, it's out of date.
crazyjul
I'm currently working with darcs files

I've tried both.

With nmake, files are missing, with vc6 project, symbols are missing ( symbols seems to come from mmu.c )

I've really no idea about what happens

Crazyjul
doublec
I'll take a look tonight and see if I can find the problem. In the meantime you could try unpulling the latest patch:

darcs unpull

from within your darcs repository. Then try to rebuild.
crazyjul
After unpulling the archive, it's working.

Maybe you've forgot to put a file in the repository?

Thanks for your fast answer.

Crazyjul
crazyjul
To complete, when I compile the DS dll I get those link errors :


dsmmumain.obj : error LNK2019: unresolved external symbol _sram_read referenced in function _MMUMainrdB
dsmmusub.obj : error LNK2001: unresolved external symbol _sram_read
dsmmumain.obj : error LNK2019: unresolved external symbol _sram_write referenced in function _MMUMainwrB
dsmmusub.obj : error LNK2001: unresolved external symbol _sram_write
glds.obj : error LNK2001: unresolved external symbol _sram_save
glds.obj : error LNK2001: unresolved external symbol _sram_load
.\..\..\Build\Debug/ds.dll : fatal error LNK1120: 4 unresolved externals

Hope it help

crazyjul
crazyjul
Finally found what was wrong!!!

The file sram.c was lacking in the project.

Thanks for your help

Do you want me to submit a patch?
doublec
That would be great, thanks! The sram patch was a contribution I received and I applied the patch, but after I tested it I forgot to save and record the project.
crazyjul
QUOTE (doublec @ Aug 18 2005, 12:17 AM)
That would be great, thanks! The sram patch was a contribution I received and I applied the patch, but after I tested it I forgot to save and record the project.
*


With the sram fixed, I've made a bit of cleaning.

I've remove nearly all warnings.
I also fix declarations of all function.

I think I've found a bug:

In the sqrt intruction, you're doing : src=arm7reg.r[0]; arm7reg.r[0]= (u32) sqrt(src);

As far as I know, this sqrt is made on integer and not float. Am I right??
If yes, as math.h was not include, sqrt was returning a float, but was treated as an int. IF no, the code should work,but it's better to cast the register as a float before calling sqrt.

Hope it help

I've send you the patchs with darcs send command.

Crazyjul
doublec
Thanks for the fixes. I've not yet received the patch though. If you are on Windows the automatic sending of the patch sometimes doesn't work. I recommend using the '-o' option to darcs send:

darcs send -o file.patch http://www.double.co.nz/nintendo_ds/dsemu

Then zip up the file.patch (so the emailer doesn't corrupt it on sending by inserting line breaks) and email me the zip file.

I've not yet looked at the bios implementations for the math functions so i'll take a look when I receive you patch. Thanks again!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.