Win32 native Toolchain for PSPSDK

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

where?

find $PSPDEV -iname '*gdb*' gives

Code: Select all

./doc/pspsdk/gdb-kernellib_8c.html
./doc/pspsdk/gdb-kernellib_8c__incl.map
./doc/pspsdk/gdb-kernellib_8c__incl.md5
./doc/pspsdk/gdb-kernellib_8c__incl.png
./doc/pspsdk/gdb-stub_8c.html
./doc/pspsdk/gdb-stub_8c__incl.map
./doc/pspsdk/gdb-stub_8c__incl.md5
./doc/pspsdk/gdb-stub_8c__incl.png
./doc/pspsdk/gdb-userlib_8c.html
./doc/pspsdk/gdb-userlib_8c__incl.map
./doc/pspsdk/gdb-userlib_8c__incl.md5
./doc/pspsdk/gdb-userlib_8c__incl.png
./psp/sdk/lib/libpspgdb.a
./psp/sdk/lib/libpspgdb_kernel.a
./psp/sdk/lib/libpspgdb_user.a
./psplink/psp/oe/usbgdb.prx
./psplink/psp/v1.0/psplink/usbgdb.prx
./psplink/psp/v1.5/psplink/usbgdb.prx
./psplink/psp/v1.5_nocorrupt/__SCE__psplink/usbgdb.prx
I believe I did the full install. I could try installing again....

~S
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

After reinstall, same thing. Would one of the older packages have gdb?
~S
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

sorry man, version 0.6 0.6.1 and 0.6.2 have gdb 6.7 (psp-gdb) but it seems that 0.7 is not packing it... I'll have a look...
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

thanks. i'll try just pulling gdb out of one of the older packages.
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

I tried out the gdb from 0.6. I get this error:

Code: Select all

d:\psp_project1\build\staged>psp-gdb debug_game_stripped.elf
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+&#58; GNU GPL version 3 or later <http&#58;//gnu.org/licenses/gpl.html>
This is free software&#58; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=psp"...
&#40;gdb&#41; target remote localhost&#58;10001
Remote debugging using localhost&#58;10001
&#91;New Thread 0&#93;
_start &#40;args=0, argp=0x0&#41; at crt0_prx.c&#58;109
109     crt0_prx.c&#58; No such file or directory.
        in crt0_prx.c
Current language&#58;  auto; currently c
&#40;gdb&#41; start
Breakpoint 1 at 0x8806024&#58; file src/main.cpp, line 47.
Starting program&#58; d&#58;\other_code\home_p4\psp_project1\build\staged/debug_game_stripped.elf
Don't know how to run.  Try "help target".
&#40;gdb&#41;
Is this something I am doing wrong, or is an imcompatibility between 0.7 gcc/g++ and 0.6 gdb?

~S
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

Hi,

I've released a new version (0.7.1) now with GDB and that make can compile correctly .S files.

From 0.6x to 0.7x there was a big jump, I've been removing my "own" patches and changed the scripts to be able to compile with minimal differences to the ps2dev.org official patches.

Fixed the bug that was daunting this project for not beeing able to build .S files because they were confused for .s on a CMD shell.

By mistake GDB was kept out on version 0.7 but is back in on 0.7.1

About debugging. I haven't spent much time on it (i mean using psp-gdb) but you should take a look at the PDF under your pspsdk\psplink. All debugging is made using this tool. You can skip all the build steps it is already built for you both the PSP part under C:\pspsdk\psplink\psp (just pick the right one for your firmware and the PC part is in C:\pspsdk\bin.
jube
Posts: 115
Joined: Tue Oct 23, 2007 2:26 am

Post by jube »

hi can confirm 0.7.1 works perfectly with stub files ( at least with "simple" linking, which is what my app is doing ! ), it also can co-exist with cygwin installation no problems! ( its all about the win PATH variable ) and the vsmake also works with no hitches yet.
I have 3 installations on my machine, native Xubuntu ( vbox ),cygwin,and this one, am comparing results of compiled code with all, will let you know if any snags but is all looking good !!
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

Yeah, i'm using the "old" make you posted and me too can confirm it's working with stubs. Oh, and ..ehm.. my apologizes to neoh: when he pointed out the problem, i was using another build tool and the problem he was having was identical to that coming out when i forget to cleanup complex projects before another build...Now i see...
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

Oh..noo.

Can you post alternate links to Latest 0.7.1?


Image
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

humm damn it! I'll seek another free hosting during the weekend... sorry guys...

If you have any good tips let me know! thanks!
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

if you don't need svn or exotical services, i can host your work on my site... let me know
jube
Posts: 115
Joined: Tue Oct 23, 2007 2:26 am

Post by jube »

ha the toolchain script made it to qj.net front page !!, unfortunatly they are not hosting the installer lol lol lol, but that means there is suddenly going to be an awfull lot of badly compiled/built versions out there soon!!, time to start a svn?
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

How about uploaded.to ?
helboi
Posts: 9
Joined: Wed Mar 26, 2008 1:18 am

Post by helboi »

Sorry guys but i could not download none of the files above
Could anyone reupload it to another server
Thanks a lot
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

how about a temporary server for the weekend?
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

here it's coming....
http://www.ecando.it/files/pspsdk.zip
(i'm still uploading...if it fails, retry later...)

glad to help for useful works like this
[EDIT] .....no luck, same old technical problems with my line (i'm running 56k to write!)...you'll have to wait a few hours
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

I'll host them temporarily over but I don't have an uninstalled copy right now.
~S
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

[[link removed]]
OK...link up and running!!! Happy coding!

jean
Last edited by jean on Mon Aug 18, 2008 6:21 am, edited 1 time in total.
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

Thanks jean, I never thought it would become so popular, I'm waiting for sourceforge to accept my project request and it will allow me to host my sources, binaries and have a forum and issue tracker to keep making this SDK builds better and better :)
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

After a stressful weekend with bandwidth shortage here is the latest download links, hopefully they should work better now :)

http://sourceforge.net/project/showfile ... _id=223830

Also included at SourceForge is my scripts under SVN.

I'll try to add a website during the next couple of days with tutorials and other stuff...

Hopefully I won't run out of space of bandwidth so quickly :)
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

Very good, but the tutorial for what? For install the toolchian?
I'think isn't need because with a basically know of C\C++ you must know the gcc, and the various utils for compiling...
However, very good, now all is perfect in your toolchian and with no modify the makefile i can compile correctly the .S file!
Thanks Heimdall!!
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

New devpaks:

giflib 4.1.6
libpspmath v3 + demo

all available at http://sourceforge.net/projects/minpspw

I'm working on building libflac + pthreads + boost4psp

In the meanwhile I'll rebuild SDL to have jim paris latest patch for work with 3.XX kernels and rebuild the SDK to include the unpack-pbp patch.
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

Heimdall wrote:New devpaks:

giflib 4.1.6
libpspmath v3 + demo

all available at http://sourceforge.net/projects/minpspw

I'm working on building libflac + pthreads + boost4psp

In the meanwhile I'll rebuild SDL to have jim paris latest patch for work with 3.XX kernels and rebuild the SDK to include the unpack-pbp patch.
Libpspmath v4 by mrmrice is also available. Replace URL v3 w/ v4
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

Updated libpspmath to v4 and added flac
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

update: 0.7.2 sync to SVN and removed some patch from devkitpro that didn't seem to do anything there...

added tinyxml devpak and updated SDL for user mode 3.xx firmwares.

all here:
http://sourceforge.net/projects/minpspw
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

OSLib also added as a devpak
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

Hi,

I stil cant get it to work,
this is what I get when I try to build the Hello World project

Code: Select all

**** Build of configuration Default for project Hello World ****

make all 
MAKE Version 5.2  Copyright &#40;c&#41; 1987, 1998 Inprise Corp.
Error makefile 18&#58; Command syntax error
*** 1 errors during make ***
What did I screw?
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

Hi kralyk,

i think your sdk is not setup properly, the gnu make i ship it not the one you're invoking, so i guess you have other build tools in your path that are conflicting with this.

on the console do:

echo %PATH%

and see if the pspsdk path is present and before other build tools, also make sure that when you invoke: make the response is:

C:\Documents and Settings\Paulo>make --version

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for mingw32
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <[email protected]>.


C:\Documents and Settings\Paulo>

if it's not this you have a problem in your path, try then to invoke:

C:\pspsdk\bin\make

giving the full path might solve your problem

Cheers,
Paulo
hlide
Posts: 739
Joined: Sun Sep 10, 2006 2:31 am

Post by hlide »

gauri made a patch for gcc 4.3.0. Could you make an experimental sdk with it so people may test it. This new version has some real additions for c++ (variadic template parameters for instance) which I'm looking for. Besides, it seems to have less bugs than gcc 4.2.x.
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

yeah you were right, in my %path% pspsdk conflicted with Borland Delphi:

Code: Select all

C&#58;\Documents and Settings\vojta>echo %path%
C&#58;\Apps\Delphi\Bin;C&#58;\Apps\Delphi\Projects\Bpl\;C&#58;\Apps\Apache\_PHP\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C&#58;\Apps\Pspsdk\bin

MAKE Version 5.2  Copyright &#40;c&#41; 1987, 1998 Inprise Corp.
Incorrect command line argument&#58; --version

Syntax&#58; MAKE &#91;options ...&#93; target&#91;s&#93;
    -B                Builds all targets regardless of dependency dates
    -Dsymbol&#91;=string&#93; Defines symbol &#91;equal to string&#93;
    -Idirectory       Names an include directory
    -K                Keeps &#40;does not erase&#41; temporary files created by MAKE
... etc...
So I removed Delphi\Bin and everything works fine...
(well, except delphi I guess, but it doesnt really matter...)


Thanks!
Post Reply