gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Unable to run several examples from libnds (SOLVED)

#130573 - tempest - Tue Jun 05, 2007 11:23 am

Hello, I'm quite new to the field of DS homebrew, so I thought that the best start would be browsing through the examples of libnds.

However, I can't get several of them to run correctly in any emulator or in actual hardware (I use a SuperCard SD).

Some more detail, about Graphics/3D/nehe directory:


    using an emulator, I can't get examples 1-5 to display anything on screen, while examples 6-11 display a frame on screen and then become unresponsive. All of them don't handle input;

    using the actual hardware, I get examples 1-5 to display the first frame (but again, they ignore any input, so I think that the hw froze), while 6-11 don't display anything.


Many examples in Graphics/3D/misc directory show nothing or freeze the hardware. However, the Env_Mapping demo, which uses display lists, works correctly on emulators (but not on the DS).

This is with devkitARM r20, libnds-20070503 (I also tried 20070327, but with no better luck) and nds-examples-20070327.

Does anybody have a clue? It seems very strange to me that examples for the library don't work, I suspect a flaw in my building setup, but again I just installed devkitARM and used the builtin msys shell to build the examples, nothing fancy at all.

Thanks in advance for any suggestion!


Last edited by tempest on Mon Jun 11, 2007 1:50 pm; edited 1 time in total

#130621 - tempest - Tue Jun 05, 2007 9:02 pm

Sorry for bumping, but this one is giving me a headscratch. I've just installed a vanilla windows xp, with the latest devkitpro, and compiled nds-examples-20070327 , with the same results described in my previous post.

Is it me, or libnds' examples just don't work at all?

#130632 - Rajveer - Tue Jun 05, 2007 10:59 pm

Just to make sure, as you're using a Supercard are you converting the application with the Supercard homebrew converter? (I'm not sure if you need to still do this anymore as I've stopped developing on my SC SD).

#130637 - dovoto - Wed Jun 06, 2007 12:47 am

I just did a make clean of the nehe examples and tried a couple (lessons 2 - 5 specificaly) and they work fine on no$gba and on hardware.

I built using r20 and the latest examples from the cvs. Not sure if they have changed much since they were last packaged.
_________________
www.drunkencoders.com

#130660 - tempest - Wed Jun 06, 2007 7:52 am

Thanks for your replies!

Rajveer: yes, I'm patching the generated .nds files with the supercard converter. It's still needed since it's one of the "old" SC (the big one for the "ugly" DSes), I don't think that newer ones still need patching.

dovoto: I will try to pull them from CVS. Actually in the packaged version some examples still use the deprecated (I think) glIdentity instead of glLoadIdentity.


Anyway, I think I've tracked down part of the problem. I've just discovered that my "vanilla" xp image actually has a MinGW compiler installed into it; having in the PATH both the directory of its binaries and devkitARM's was probably messing up things.

So I've removed the path to MinGW and things are much better: now all examples can be run in no$gba (will try them on hardware too)... except for those examples that can't be compiled due to glIdentity use in the source (obviously), and example03 that still won't run.

no$gba brings up a set of dialogs as soon as the example03 rom is loaded (wr_ptr , rd_ptr, etc...) and a final "Unexpected error".

#130676 - dovoto - Wed Jun 06, 2007 3:59 pm

tempest wrote:

no$gba brings up a set of dialogs as soon as the example03 rom is loaded (wr_ptr , rd_ptr, etc...) and a final "Unexpected error".


I get that same error on that example from no$, however it works ifne on hardware.

Good to see you are having a bit more luck.
_________________
www.drunkencoders.com

#131139 - tempest - Mon Jun 11, 2007 1:50 pm

Quote:
I get that same error on that example from no$, however it works ifne on hardware.


Ok, at least now I'm sure that my development environment is fine, and that the fault is on no$gba's side.

Thanks again for all the suggestions!