#172901 - rome88 - Wed Mar 10, 2010 10:05 pm
Hi i followed the hello world guide here ( http://www.palib.info/wiki/doku.php?id=day1 ) but every time i run the make.bat i get this error.Any idea why ?
1>Performing Makefile project actions
1> 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
1>AllocationBase 0x71110000, BaseAddress 0x71110000, RegionSize 0x1000, State 0x1000
1>c:\devkitPro\msys\bin\sed.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
#172906 - SteveH - Thu Mar 11, 2010 1:43 am
Well I can see your problem, and all I read upto was the link you posted...
PALib is one of the worst libraries I've ever seen (that's including my own crap code). For a long time it was incompatible with the current versions of devkitARM that you had to use an old and buggy version that's not supported any more (more information here).
I'm not saying that PAlib is bad, it's just that 9 times out of 10 you need to use an older version of the toolchain that may not work at all with the changes to the way that the homebrew menu works.
#172911 - wintermute - Thu Mar 11, 2010 11:06 am
I really don't know why you wouldn't say PALib is bad unless you're just trying to be polite and lie about it to save people's feelings.
Installing old and unsupported versions of the devkitPro tools and libraries in order to use something of dubious benefit is a recipe for disaster. PALib is *not* supported by devkitPro.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog
#172913 - SteveH - Thu Mar 11, 2010 1:23 pm
wintermute wrote: |
I really don't know why you wouldn't say PALib is bad unless you're just trying to be polite and lie about it to save people's feelings. |
Yes, yes I am lieing and trying to save peoples feelings, but you have to admit that there are some good parts to PAlib, if you look hard enough, long enough and are ignoring the crap coding, there's some parts of the system that are nice...
I'M SORRY I CAN'T BE THIS POLITE ALL THE TIME - PALIB IS SHITE WITH A CAPITAL SHITE.....
/me goes postal on some unsuspecting people in BF2:BC2....
#172914 - rome88 - Thu Mar 11, 2010 2:06 pm
Ok thx for telling me that.
What development IDE environment have you got set up to code your home brew projects and did you set it up ?
If you take Palib out of the equation for developing home brews does that mean alot less functionality in projects?
#172915 - wintermute - Thu Mar 11, 2010 3:39 pm
Taking PALib out of the equation actually means more functionality in your projects. Quite a lot of the functions in PALib are either just PA_ named wrappers for other libraries - libnds, dswifi, libfat, helix, an old GBA jpeg decoder, libgif to name a few. Their examples are also using a template from several years ago which can, and often does, make it difficult to compile them with recent tools - assuming they've been rewritten to stop using libnds internals which were removed a long time ago.
As far as IDEs go, there's Programmer's Notepad that's installed by the windows installer but we have plans to go with CodeLite in the near future since it works on all 3 primary platforms.
The windows installer also installs a bunch of examples for DS, each example has a .pnproj file which you can doubleclick in order to launch PN2 with the example loaded - copy the template folder from examples/nds/arm9 to a new folder (without spaces in it's path). From there you can edit the code in template.c then click Tools->make or use the ALT 1 key compo to build your app.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog
#172919 - rome88 - Thu Mar 11, 2010 6:05 pm
Having some stupid problems again ive reinstalled devkitpro via the windows installer.I click on a .pnproj file in one of the examples in devkitpro/examples/nds/ and click tools+make still getting the original make error in programmers notepad.
Tried the same in devkitpro/examples/nds/templates/arm9 same make error even copied that folder elsewhere still the same error though.What next ?
#172924 - ritz - Thu Mar 11, 2010 7:59 pm
It seems this may be unrelated to devkitPro or installations in general. Googling the problem I discovered a lot of talk of anti-virus programs causing this issue. If you have an anti-virus program running, try disabling it and see what happens.
#172926 - rome88 - Thu Mar 11, 2010 8:43 pm
Disabled my av still the same make file error occurs.
#172929 - wintermute - Thu Mar 11, 2010 9:10 pm
#172936 - rome88 - Fri Mar 12, 2010 1:46 am
Thx that fixed the make error.Which is simpler to use as a total beginner in nds programming the api from PAlib or the standard ndslib ?
#172937 - SteveH - Fri Mar 12, 2010 1:49 am
rome88 wrote: |
Thx that fixed the make error.Which is simpler to use as a total beginner in nds programming the api from PAlib or the standard ndslib ? |
Neither., the easiest to use is libnds.
PAlib is crap (or as I like to think it's the carp from Dwarf Fortress)
and ndslib no longer exists, it was deprecated a few years ago
#172951 - rome88 - Fri Mar 12, 2010 1:51 pm
What are the latest libraries for use in nds development ?
Where can i find api references for nds development with devkitpro ?
What beginner tutorials do you recommend that dont use deprecated libraries like PAlib and are up to date with devkitpro changes/nds changes.
Thx
#172952 - SteveH - Fri Mar 12, 2010 2:15 pm
rome88 wrote: |
What are the latest libraries for use in nds development ?
Where can i find api references for nds development with devkitpro ?
What beginner tutorials do you recommend that dont use deprecated libraries like PAlib and are up to date with devkitpro changes/nds changes.
Thx |
Err...
http://libnds.devkitpro.org - the API docs
as for tutorials, there is none that are upto date as all the tutorials are about 1-2 years old :(. I know WinterMute is wanting someone to help out in this area, but preferably someone that knows how libnds works. Dovoto is also working on something to do with tutorials / video presentations (basically something like the Stanford iPhone dev tutorials) but I don't know how far he got with them.
#172954 - wintermute - Fri Mar 12, 2010 6:13 pm
The examples supplied by the installer are also worth looking through.
Patater's manual is worth a read, I'm not entirely sure how up to date it is but it should be recent enough to not cause too many problems.
http://patater.com/manual
For more advanced and in depth topics there's http://www.coranac.com/tonc/text/toc.htm which covers a lot of GBA features. This is a good grounding for the DS 2D hardware. Can be a little scary if you're just starting out.
There are a lot of helpful people on the IRC channels, see link in sig.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog