That's what I wanted to do originally, but I don't have a PSP at the moment (stolen), so I thought at least I could try it out on my computer, but oh well... :sad: So, there's no way to get it to work with PSPE?Zitat:
Zitat von Smerity
Printable View
That's what I wanted to do originally, but I don't have a PSP at the moment (stolen), so I thought at least I could try it out on my computer, but oh well... :sad: So, there's no way to get it to work with PSPE?Zitat:
Zitat von Smerity
Ok, new problem. I've just finished the 4th tutorial, but I have no idea what to put in the makefile at this point: "LDFLAGS = ". What do I set it equal to? :PC:
Harker - Are you actually getting compile errors? As far as I know, there are no specific linker flags for 4th tutorial... Should just be empty
some reason the SVN toolchain update wont run Cygwin says command not found. I got cygwin run right and psptoolchain installed under my name.
i have a big problem,
i did the first tut, but it dont run,
i installed CYGWIN, i made the directory,
then i dowloaded "psptollchain", unzip into folder ("c:/cygwin/home/darkelf/")
then the tutorial says that i have to execute toolchain.sh, ok, i type ./toolchain.sh or/and "toolchain.sh", but there always stand "ERROR: Please make sure you have GNU 'make' installed,
plz help :cry:
(sorry for my bad englisch ^^)
did you check the devel to install? Seems like you didnt install/get the GNU make file
and where/who can i download it?, *plz say not, "look at the tutorial/sesson 1", i read it 10 times
SG57 gave you the right answer alivecrow. Some Cygwin installs, for unknown reasons, don't install the same stuff by default. You need to open up the Cygwin installer again, and when it asks what you want to install, you need to select the Devel (Development) fold down and click on Make and GCC if they're not there.
Just repeat that until you have all you need to install installed.
Yes, I'm getting compile errors. I left both the LIBDIR and LDFLAGS area blank in the Makefile, just like it says in the tutorial, but I get a huge error message when I type "make" in cygwin.Zitat:
Zitat von Smerity
What is that error message? Post it here, in CODE tags.
Here's part of the error:
Code:[email protected] /cygdrive/c/cygwin/home/owner/projects/PNGdisplay
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/
pspdev/psp/sdk/lib main.o graphics.o framebuffer.o -lpspgu -lz -lpng -lm -lpsp
debug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspne
t_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(png.o): In func
tion `png_reset_crc':
png.c: (.text+0x1b0): undefined reference to `crc32'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(png.o): In func
tion `png_calculate_crc':
png.c: (.text+0x1fc): undefined reference to `crc32'
png.c: (.text+0x228): undefined reference to `crc32'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(png.o): In func
tion `png_reset_zstream':
png.c: (.text+0xb98): undefined reference to `inflateReset'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngread.o): In
Next half:
Oh, and where it says "c: (", I meant "c:(", but the stupid thing wouldn't let me post it because it said I had "too many smilies".Code:function `png_create_read_struct_2':
pngread.c: (.text+0x134): undefined reference to `inflateInit_'
pngread.c: (.text+0x27c): undefined reference to `inflateInit_'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngread.o): In
function `png_read_init_3':
pngread.c: (.text+0x4ac): undefined reference to `inflateInit_'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngread.o): In
function `png_read_row':
pngread.c: (.text+0xfbc): undefined reference to `inflate'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngread.o): In
function `png_read_destroy':
pngread.c: (.text+0x1d24): undefined reference to `inflateEnd'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In
function `png_decompress_chunk':
pngrutil.c: (.text+0x334): undefined reference to `inflate'
pngrutil.c:(.text+0x43c): undefined reference to `inflateReset'
pngrutil.c:(.text+0x584): undefined reference to `inflateReset'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In
function `png_read_finish_row':
pngrutil.c:(.text+0x43d4): undefined reference to `inflate'
pngrutil.c:(.text+0x445c): undefined reference to `inflateReset'
pngrutil.c:(.text+0x44a4): undefined reference to `inflateReset'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwrite.o): In
function `png_write_flush':
pngwrite.c:(.text+0x18d4): undefined reference to `deflate'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwrite.o): In
function `png_write_destroy':
pngwrite.c: (.text+0x1998): undefined reference to `deflateEnd'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_text_compress':
pngwutil.c:(.text+0x298): undefined reference to `deflate'
pngwutil.c:(.text+0x37c): undefined reference to `deflate'
pngwutil.c:(.text+0x444): undefined reference to `deflate'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_write_compressed_data_out':
pngwutil.c:(.text+0x5d4): undefined reference to `deflateReset'
pngwutil.c:(.text+0x684): undefined reference to `deflateReset'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_write_IHDR':
pngwutil.c:(.text+0x8f8): undefined reference to `deflateInit2_'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_write_finish_row':
pngwutil.c:(.text+0x2cf4): undefined reference to `deflate'
$
pngwutil.c:(.text+0x2da0): undefined reference to `deflateReset'
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In
function `png_write_filtered_row':
pngwutil.c: (.text+0x3324): undefined reference to `deflate'
collect2: ld returned 1 exit status
make: *** [hello.elf] Error 1
$
Hey Yeldarb...great new addition to the tutorials...however i am finding that playing audio in this method is severly reducing the graphics output achievable...where would one look for information on sending sampledata to the audio lib directly...say for example playing a .mod file...and be able to add sound effects to the other channels for game stuff....
Cheers
Omfg...I just found the error. In the makefile, I had put -lpng after -lz next to "LIBS = ". I switched them around and everything compiled OK.
i just started this and forgive my noobish ways but im on lesson 1 :) and typed in cd psptoolchain and it said no such file or directory any help will be greatly appreciated
nevermind i gots it
Whenever i try to run CYGWIN bash shell (cygwin.bat). It gives me the error : Another Program is currently using this file. I've closed every program and yet it still gives me this error, i reinstalled it twice and tried restarting my computer. Help please.
I don't know why I'm having so much trouble with this, but I'm getting this error (I'm on lesson 5):Line 153 is the last line of my code, and all it has is one curly brace. I have no idea what's causing this error. Could somebody please help me? :PC:Code:$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o mai
n.c
main.c: In function 'main':
main.c:43: warning: implicit declaration of function 'setupCallbacks'
main.c:153: error: syntax error at end of input
make: *** [main.o] Error 1
You're probably missing another curly brace somewhere so it thinks something is still open.
Alright, it turns out I was missing a curly brace, but now it's giving me a different error:Zitat:
Zitat von Yeldarb
Code:$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/
pspdev/psp/sdk/lib main.o graphics.o framebuffer.o -lpspgu -lpsppower -lpng -l
z -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_i
net -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Backg
roundChanger.elf
main.o: In function `main':
main.c:(.text+0xfc): undefined reference to `setupCallbacks'
collect2: ld returned 1 exit status
make: *** [BackgroundChanger.elf] Error 1
Harker - You need to learn to debug by yourself, these are pretty simple problems =)
Maybe that would be another useful tutorial? Common debugging problems...
Anyway, to your problem. It's giving you an 'undefined reference to `setupCallbacks'' error. That means that setupCallbacks isn't included in the final compiled file.
If you're including the callbacks as 'callback.c', you need to add that target to your Makefile.
If you're not using 'callback.c' or similar, can you tell me where and how you are defining the callbacks?
Harker probably used the following function from Yeldarb's tutorial:
but calls it with "setupCallbacks", so the compiler can't find it. Change it to "SetupCallbacks" and it should work.Code:int SetupCallbacks(void) {
I agree with Smerity, learn to debug by yourself.
Thanks Percival, you're quite right. Not on the ball tonight
I'm just surprised the compiler didn't pick it up earlier. Usually it throws an error if you note a function that doesn't exist (quite rightly lol), before it gets to the linking stage.
Yes it's strange. How did Harker manage to get that main.o?Zitat:
Zitat von Smerity
Thanks for all your help. :icon_smil How do I learn how to debug? That's just figuring out how to fix errors by myself, right? I'm sure that'll come with experience, also I'll try my hardest not to post here about problems anymore.
i got many errors while toolchain was installing,
i tried it 2 times, but always this error...... :Argh:
http://darkelfxxx.da.funpic.de/bilder/error.jpg
do i anything wrong? :(
EDIT:
sorry for this big picture :(
Hi,
Im trying to do the first two tutorials. I installed the development tools(lesson1) and i created the helloworld app en build it succesfully(lesson 2).
But now I'm trying to start the app in the GTA Eloader, after that I get a black screen and my psp shutdown after a few seconds..
I got the 2.5 firmware with the new Brown Ale eloader.
Does any one know what I'm possibly doing wrong?
I also got another question:
Is it possible to test the homebrew at my computer? Cause uploading and testing at my psp used a lot of time.
I'm sure these questions are already asked but I can't find it on this forum. And reading all the posts in this thread is too much time. Or is there a way to search in this thread and become linking to the right page?
I hope someone can answer my questions and understands my crappy english ;) ?
I installed everything with no errors and i can compile my programs and all, but when I try the usb storage sample in: C:\cygwin\usr\local\pspde v\psp\sdk\samples I get the following error: too few arguments to function 'sceUsbDeactivate'. I have never had this problem before, any suggestions.
Could somebody give me an example of a code to add to the Lesson 3's code, so I could load EBOOT.PBP's instead of that timer? And btw, is there somewhere a good tutorial for setting up PSPSDK with Dev-C++?
EDIT:
Just noticed that a thread which tells how to set up Cygwin with Dev-C++, so I don't need that information anymore, but the sample code would be nice :P
I'm getting the same error as "alivecrow" when compiling with cygwin. ERROR BUILDING NEWLIB. It looks like it's looking for include files and can't find them.
This is with the latest psptoolchain script.
Anybody have a solution for this problem?
there are always errors,
if i type "./toolchain.sh -g" or "./toolchain.sh -p" (-n, -b),
always at the end of the installing is a error,
pls, can somebody help us?
And about "Lesson 6", is there a way to include the .mp3 to the .PBP, so there would be only the EBOOT.PBP, not EBOOT.PBP and xxx.mp3?
EDIT:
And the same thing for the .PNG in "Lesson 4".
MiiKKiZ - Why do you ask curiously?
Onto the question, it's possible, but would be quite difficult to implement...
If you see some of the examples in the PSP-SDK some textures (for the 3D cube iirc) are converted to binary and stored in the eboot, but in general that really isn't a good idea.
The eboot(+music+graphics) will remain in memory, severly limiting what you can store (max of say, 3 or 4 Mp3s, and even that may be pushing it)
That, and you'd have to do a lot of rewriting to convert the load functions to loading from a spot in memory / a part of memory instead of from a file.
Sorry to say, quite difficult to do.
-Edit-
On the eboot loading thing, I'd first say -
Avoid it if you still haven't done all the tutorials / aren't a highly competent programmer yet (not insulting you, just saying it's difficult)
It's really isn't a plugin solution, the timer and the eboot loading code are completely disparate.
If you still really really want to do that, then look into any of the PSP OS style projects which support eboot loading. All but PSIX I believe are opensource (specially PSP-OSS =P) so you can find the code, and have a look at what is happening.
Zitat:
Zitat von Smerity
Yep, I was sure that It'll be hard to put the .MP3 inside the EBOOT, so maybe I don't even try it :) Last night I finally got my code to load another EBOOT "properly" (It loads the program, but it tilts right after :( ) I'll look into more source codes of PSP-OSS and such ->
EDIT:
Where can I find those PSP-SDK examples?
You can look at the Snakman source code, the images for that are compiled into the program.
Thanks, I'm going to look at it right now ->Zitat:
Zitat von Yeldarb
I love your tutorials!
the tutorial's great, here's somethin I came up with out of it:
http://rapidshare.de/files/15359409/_-o-_.rar.html
As soon as I open up the cygwin bash shell, the black prompt window comes up and closes immediately. I have tried running cygwin from the cmd prompt but that doesn't work for me either.
How do I solve this?
thanks for the tutorials! :icon_bigg
i've started working on creating a duck doom type game. this is a very early version, still alot to do and not sure if i will ever get around to it. just thought i'd share here. Let me know if you think it's worth continuing this project :icon_wink
at the minute it is very easy to kill a duck, as you can hold down the x button instead of it only firing one shot if you know what i mean.
link:
http://rapidshare.de/files/15423895/DuckDoom.rar.html
screenshot:
http://img210.imageshack.us/img210/7...ple15jb.th.jpg
YAY MY FIRST POST.....anyways
i cant fix this problem with cygwin when i start up psptoolchain.sh.
after about 4 hours (i have a crappy 700mhz computer) this error comes up.
INSTALL_DATA="/usr/bin/install -c -m 644" \
INSTALL_PROGRAM="/usr/bin/install -c" \
INSTALL_SCRIPT="/usr/bin/install -c" \
all); then \
true; \
else \
exit 1; \
fi; \
else true; \
fi; \
fi; \
done; \
fi
make[2]: Leaving directory `/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty'
make[1]: Leaving directory `/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty'
make[1]: Entering directory `/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libstdc++-
3'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libstdc++-v
'
make: *** [all-target-libstdc++-v3] Error 2
ERROR BUILDING GCC (C++)
can anybody help me because i want to start coding once i get this fixed (and when i get my new battery pack because it wont charge).