Toolchain on ubuntu 8.04

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

Moderators: cheriff, TyRaNiD

Post Reply
fiorello
Posts: 14
Joined: Sat Jun 21, 2008 11:01 pm

Toolchain on ubuntu 8.04

Post by fiorello »

  • W funkcji `gdb_setup_readline,:
    w pp_base_format, w pliku pretty-print.c:529
    Proszę przesłać pełny raport o błędzie,
    wraz z preprocesowanym zródłem, jeśli to odpowiednie.
    Po wi&#281;cej informacji zobacz <URL:http://gcc.gnu.org/bugs.html>.
    For Debian GNU/Linux specific bug reporting instructions,
    see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.
    make[2]: *** [event-top.o] B&#322;&#261;d 1
    make[2]: *** Oczekiwanie na niezako&#324;czone zadania....
    make[2]: Opuszczenie katalogu `/home/daniel/psptoolchain/build/gdb-6.4/build-psp/gdb'
    make[1]: *** [all-gdb] B&#322;&#261;d 2
    make[1]: Opuszczenie katalogu `/home/daniel/psptoolchain/build/gdb-6.4/build-psp'
    make: *** [all] B&#322;&#261;d 2
    ../scripts/007-gdb-6.4.sh: Failed.
    ERROR: Could not run the toolchain script.
    root@daniel-desktop:/home/daniel/psptoolchain#
So, any help ? OS Ubuntu 8.04
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

It just failed on the GDB step (which is one of the last and optional anyway). So you should be able to develop and compile already.
If you require a working GDB installation for debugging, you'd have to manually try to install and compile it (see the /scripts/007-gdb-6.4.sh shell script for steps to do).
Also, if you want PSPLINK you should run /scripts/009-psplinkusb.sh manually too (or just type in "./toolchain.sh 9" in the shell).
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
fiorello
Posts: 14
Joined: Sat Jun 21, 2008 11:01 pm

Post by fiorello »

OK thanks, anyway i have problems with -lpng flag

nevermind, downloaded psplibraries
Last edited by fiorello on Sat Aug 16, 2008 11:35 pm, edited 1 time in total.
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Have you downloaded and installed libpng correctly? Maybe also take a look at the psplibraries script chain:
svn://svn.ps2dev.org/psp/trunk/psplibraries
It downloads and installs some of the most used libraries for psp development (including jpeg, png, tremor, etc.)
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
fiorello
Posts: 14
Joined: Sat Jun 21, 2008 11:01 pm

Post by fiorello »

Code: Select all

daniel@daniel-desktop&#58;~/psplinkusb/tools/remotejoy/pcsdl$ make
make&#58; sdl-config&#58; Polecenie nie znalezione
cc -O2 -Wall -g    -c -o remotejoy.o remotejoy.c
remotejoy.c&#58;28&#58;17&#58; error&#58; SDL.h&#58; No such file or directory
remotejoy.c&#58;29&#58;24&#58; error&#58; SDL_thread.h&#58; No such file or directory
remotejoy.c&#58;209&#58; b&#322;&#261;d&#58; expected `&#41;, before `*, token
remotejoy.c&#58;372&#58; b&#322;&#261;d&#58; expected `&#41;, before `*, token
remotejoy.c&#58; W funkcji `post_event,&#58;
remotejoy.c&#58;532&#58; b&#322;&#261;d&#58; `SDL_Event, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;532&#58; b&#322;&#261;d&#58; &#40;Each undeclared identifier is reported only once
remotejoy.c&#58;532&#58; b&#322;&#261;d&#58; for each function it appears in.&#41;
remotejoy.c&#58;532&#58; b&#322;&#261;d&#58; expected `;, before `event,
remotejoy.c&#58;534&#58; b&#322;&#261;d&#58; `event, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;534&#58; b&#322;&#261;d&#58; `SDL_USEREVENT, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;539&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_PushEvent,
remotejoy.c&#58; Na najwy&#380;szym poziomie&#58;

remotejoy.c&#58;551&#58; b&#322;&#261;d&#58; expected `&#41;, before `*, token
remotejoy.c&#58;712&#58; b&#322;&#261;d&#58; expected `=,, `,,, `;,, `asm, or `__attribute__, before `*, token
remotejoy.c&#58;768&#58; b&#322;&#261;d&#58; expected `&#41;, before `*, token
remotejoy.c&#58; W funkcji `mainloop,&#58;
remotejoy.c&#58;801&#58; b&#322;&#261;d&#58; `SDL_Joystick, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;801&#58; b&#322;&#261;d&#58; `stick, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;802&#58; b&#322;&#261;d&#58; `SDL_Surface, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;802&#58; b&#322;&#261;d&#58; `screen, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;803&#58; b&#322;&#261;d&#58; `buf1, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;804&#58; b&#322;&#261;d&#58; `buf2, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;805&#58; b&#322;&#261;d&#58; `SDL_Thread, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;805&#58; b&#322;&#261;d&#58; `thread, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;811&#58; b&#322;&#261;d&#58; `SDL_HWSURFACE, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;817&#58; b&#322;&#261;d&#58; `SDL_FULLSCREEN, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;839&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_Init,
remotejoy.c&#58;839&#58; b&#322;&#261;d&#58; `SDL_INIT_VIDEO, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;839&#58; b&#322;&#261;d&#58; `SDL_INIT_JOYSTICK, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;853&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_SetVideoMode,
remotejoy.c&#58;860&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_ShowCursor,
remotejoy.c&#58;860&#58; b&#322;&#261;d&#58; `SDL_DISABLE, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;863&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `create_surface,
remotejoy.c&#58;875&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_WM_SetCaption,
remotejoy.c&#58;879&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_NumJoysticks,
remotejoy.c&#58;881&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_JoystickOpen,
remotejoy.c&#58;887&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `get_joyinfo,
remotejoy.c&#58;910&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_CreateThread,
remotejoy.c&#58;918&#58; b&#322;&#261;d&#58; `SDL_Event, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;918&#58; b&#322;&#261;d&#58; expected `;, before `event,
remotejoy.c&#58;920&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_WaitEvent,
remotejoy.c&#58;920&#58; b&#322;&#261;d&#58; `event, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;925&#58; b&#322;&#261;d&#58; `SDL_VIDEORESIZE, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;927&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_FreeSurface,
remotejoy.c&#58;933&#58; b&#322;&#261;d&#58; `SDL_USEREVENT, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;952&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_BlitSurface,
remotejoy.c&#58;955&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `update_fps,
remotejoy.c&#58;957&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_UpdateRect,
remotejoy.c&#58;979&#58; b&#322;&#261;d&#58; `SDL_KEYDOWN, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;979&#58; b&#322;&#261;d&#58; `SDL_KEYUP, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;982&#58; b&#322;&#261;d&#58; `SDL_KeyboardEvent, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;982&#58; b&#322;&#261;d&#58; `key, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;982&#58; b&#322;&#261;d&#58; expected expression before `&#41;, token
remotejoy.c&#58;984&#58; b&#322;&#261;d&#58; `SDLK_ESCAPE, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;989&#58; b&#322;&#261;d&#58; `SDLK_F8, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;993&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_WM_ToggleFullScreen,
remotejoy.c&#58;999&#58; b&#322;&#261;d&#58; `SDLK_F3, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1014&#58; b&#322;&#261;d&#58; `SDLK_F4, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1041&#58; b&#322;&#261;d&#58; `SDLK_F5, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1068&#58; b&#322;&#261;d&#58; `SDLK_F9, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1076&#58; b&#322;&#261;d&#58; `SDLK_F10, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1080&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `save_screenshot,
remotejoy.c&#58;1086&#58; b&#322;&#261;d&#58; `SDLK_LEFT, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1088&#58; b&#322;&#261;d&#58; `SDLK_RIGHT, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1090&#58; b&#322;&#261;d&#58; `SDLK_UP, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1092&#58; b&#322;&#261;d&#58; `SDLK_DOWN, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1094&#58; b&#322;&#261;d&#58; `SDLK_a, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1096&#58; b&#322;&#261;d&#58; `SDLK_s, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1098&#58; b&#322;&#261;d&#58; `SDLK_z, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1100&#58; b&#322;&#261;d&#58; `SDLK_x, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1102&#58; b&#322;&#261;d&#58; `SDLK_q, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1104&#58; b&#322;&#261;d&#58; `SDLK_w, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1106&#58; b&#322;&#261;d&#58; `SDLK_RETURN, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1108&#58; b&#322;&#261;d&#58; `SDLK_SPACE, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1110&#58; b&#322;&#261;d&#58; `SDLK_y, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1112&#58; b&#322;&#261;d&#58; `SDLK_u, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1114&#58; b&#322;&#261;d&#58; `SDLK_i, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1116&#58; b&#322;&#261;d&#58; `SDLK_o, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1118&#58; b&#322;&#261;d&#58; `SDLK_p, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1141&#58; b&#322;&#261;d&#58; `SDL_QUIT, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1146&#58; b&#322;&#261;d&#58; `SDL_JOYBUTTONDOWN, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1146&#58; b&#322;&#261;d&#58; `SDL_JOYBUTTONUP, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1172&#58; b&#322;&#261;d&#58; `SDL_JOYAXISMOTION, undeclared &#40;first use in this function&#41;
remotejoy.c&#58;1302&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_JoystickClose,
remotejoy.c&#58;1319&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_KillThread,
remotejoy.c&#58;1324&#58; ostrze&#380;enie&#58; niejawna deklaracja funkcji `SDL_Quit,
- wneh i try to compile pcsdl in remotejoy folder
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Again a optional component. Remotejoy is a tool that allows you to output the PSPs display on your PC monitor through USB connection. If you don't need this tool you can just ignore those errors. If you want it, install SDL sources for PC on your ubuntu box.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
fiorello
Posts: 14
Joined: Sat Jun 21, 2008 11:01 pm

Post by fiorello »

How do i do this ? i tried to copy sdl.h and sdl_xxxx.h files into sdk/include folder but it gave me nothing. Is there any magical way ?
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

remotejoy requires the PC SDL libraries not the PSP port, as it's a pc host application.

http://ubuntuforums.org/showthread.php?t=136765
sudo apt-get install libsdl1.2-dev libsdl1.2debian
I don't know if that's correct or the latest version really as I don't have an UBUNTU (or other LINUX) environment around atm.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
DairyKing
Posts: 13
Joined: Sat Jun 28, 2008 8:59 am
Contact:

Post by DairyKing »

Did you run the 'toolchain.sh' or 'sudo toolchain-sudo.sh'?

On Ubuntu, should be the latter, if still doesnt work, try to go to the individual directories and manually 'make'.
fiorello
Posts: 14
Joined: Sat Jun 21, 2008 11:01 pm

Post by fiorello »

OK, i sucessfully set up evrything, but now i have question. What IDE to use so i can build my project, then app is copied to my ms0 and command is send to pspsh to start my game. ? I dont care what IDE, i just care how easily i can set it up.
fiorello
Posts: 14
Joined: Sat Jun 21, 2008 11:01 pm

Post by fiorello »

very sorry for double posting but i need script that will mount drive 0 as ../../psp/psprpg, in pspsh cd to host0 and then it will execute main.prx/EBOOT.pbp from this folder.
Post Reply