Balls, lets hope my broken lan wire doesnt fallout then :( If you get dissconected is it able to pick it up again?
Also, I don't know if it is just me, but it looks like it is doing the same thing over and over again =/
Printable View
Balls, lets hope my broken lan wire doesnt fallout then :( If you get dissconected is it able to pick it up again?
Also, I don't know if it is just me, but it looks like it is doing the same thing over and over again =/
Noticed a small mistake in tutorial 5 (in case anyone is tearing their hair out like I've just been ;) ).
At the end it says the make file hasn't changed (except for the name) from tutorial 4 - but it has. The switch "-lpsppower" has been added to the "LIBS = " line. Just thought I'd point that out in case like me you'd tried clocking one of your own programs and been wondering why it failed to compile.
Oh, whoops, forgot about that. Thanks Fluke =)
Edit: Fixed
hi I'm keep having this problem:
http://img299.imageshack.us/img299/5820/help13xv.png
http://img299.imageshack.us/img299/673/help28ie.png
pleas someone help me, thnx
The author of the newest psptoolchain double packed the file. So you'll have to extract the psptoolchain.file, and rename it to psptoolchain.tgz and uncompress that.
how can I do that ? which program do I need to use to extract that file
edit: oh now I get it thanks it worked :icon_smil
Put the original file in your home folder (C:/cygwin/home/yourName)
And try typing this to extract it:
Code:tar xfvz psptoolchain-20051023.tgz
I have another problem:
http://img31.imageshack.us/img31/9972/error1jp.png
thnx
Great Tutorials... Suggestion for the PNG Tutorial though
I put the PNG code into a function which will lead to cleaner code and better performance in the long run. :icon_winkCode:#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspgu.h>
#include <png.h>
#include <stdlib.h>
#include <string.h>
#include "graphics.h"
#define printf pspDebugScreenPrintf
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
PSP_MODULE_INFO("PNG Tutorial", 0, 1, 1);
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}
int CallbackThread(SceSize args, void *argp) {
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();
return 0;
}
int SetupCallbacks(void) {
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0)
{
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
void screenblit(int posx, int posy, int sizex, int sizey, Image* imagevar)
{
int x = 0;
int y = 0;
sceDisplayWaitVblankStart();
while (x < sizex) {
while (y < sizey) {
blitAlphaImageToScreen(posx ,posy ,sizex , sizey, imagevar, x, y);
y += sizey;
}
x += sizex;
y = 0;
}
}
int main() {
SceCtrlData pad;
char buffer[200];
Image* Image_01;
SetupCallbacks();
initGraphics();
sceCtrlSetSamplingCycle(0);
sceCtrlSetSamplingMode(PSP_CTRL_MODE_DIGITAL);
sprintf(buffer,"01.png");
Image_01 = loadImage(buffer);
while (1) {
sceCtrlReadBufferPositive(&pad, 1);
screenblit(0, 0, 480, 272, Image_01);
flipScreen();
if (pad.Buttons & PSP_CTRL_CROSS) {
break;
}
}
sceKernelExitGame();
return 0;
}
got this message trying to install psptoolchain from the tutorial! any help?
http://forums.qj.net/attachment.php?...tid=2386&stc=1
I THINK I GOT IT NOW BUT CAN ANYONE TELL ME WHAT THE SCRIPT "toolchain.sh" LOOKS LIKE WHEN ITS COMPLETE? (mine doesnt say anything about being done but its not scripting anymore!) THANKS!
I need help with this error:
................./../src/display -I../../src/ge -I../../src/user -g -O2 -G0 -Wall -DF_sceGumLoadIdentity_vfp u pspgum_vfpu.c -c -o sceGumLoadIdentity_vfpu.o
/tmp/ccSWjTDk.s: Assembler messages:
/tmp/ccSWjTDk.s:25: Error: illegal operands `vmidt.q M300'
gmake[3]: *** [sceGumLoadIdentity_vfpu.o] Error 1
gmake[3]: Leaving directory `/tmp/pspdev/pspsdk/src/gum'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/pspdev/pspsdk/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/pspdev/pspsdk'
gmake: *** [all] Error 2
ERROR BUILDING PSPSDK
I use redhat fedora btw.
Well, are you root?
yes .Zitat:
Zitat von Ravine
Could it be that you are useing gmake instead of just make? I'm just guessing i don't know what the toolchain requires :icon_wink
I'm having the same issue installing the toolchain:Zitat:
Zitat von Immike
XP
CYGWIN (latest as of yesterday)
psptoolchain-20051202 and psptoolchain-20060110
I'm not root as far as I can tell.
i am getting this error when i try to compile my program!!
Anyone getting errors trying to install the toolchain, please go back to the tutorial and start at where it says "Due to a recent problem..."
Hopefully this update will fix it. Someone who had the "Error: illegal operands 'vmidt.qM300'" problem, please post with whether or not this fixed it.
all you did was make a folder and tried to build a program out of it...Make the C file...Zitat:
Zitat von bbrink68
I am going to move to setting this up instead of using lua like i did before. I will try and make either a 2.00+ homebrew app, or attempt to port one
thnx it workedZitat:
Zitat von Yeldarb
but now i have another problem
http://img518.imageshack.us/img518/2558/help4hg.png
Thanks
Your Makefile is a .txt go into Explorer and goto [Tools] then [Folder Options] Next goto [View] and under [Advanced Settings] you should see [Hide extension for known file types] uncheck that now go into your folder and rename your makefile then delete the .txt at the end :icon_wink
@IchigoKurosaki thnx
but now i have another problem (again):
http://img10.imageshack.us/img10/127...34123121rw.png
Code://Hello World - My First app for the PSP
/*
This program was created by Mike on 21/01/06
*/
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("Hello World", 0, 1, 1);
#define printf pspDebugScreenPrintf
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}
/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCall back(cbid);
sceKernelSleepThreadCB();
return 0;
}
/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void) {
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0) {
sceKernelStartThread(thid , 0, 0);
}
return thid;
}
int main()
{
pspDebugScreenInit();
SetupCallbacks();
printf("Hello World. I have made my first PSP app.");
sceKernelSleepThread();
return 0;
}
Code:TARGET = hello
OBJS = main.o
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
I can't get Cgywin, each time I start the installation, I choose a mirror and it fails... Maximum I have gotten is to %99 then "Can't download" or something like that... Help me please!
Keep trying different mirrors, some of them are outdated and do not provide a very good download service. I always go for an ac.uk one, as they seem to be pretty stable.
Ok, thanks, will try :D
ahhhh i had that problem i kno how to fix it!Zitat:
Zitat von NaYoN
dont insatll from internet just download them from the intetnet (thast hte option below the install one) theonce there downloaded just start the cygwin installation thing angain and just click install from a local directory and BAM...u just got it working
ok this happend to me too! weird...o wellZitat:
Zitat von Immike
this is what u do...
rename main.c to main.cpp and rename makefile to just makefile all over again and it should work, atleast it did for me and what progrma are u using to amke ur programs? cause WordPad DOES NOT WORK....atleast for me because when i saved it after like an hour of coding...i tried to compli it but it just scrunched all the codes together into like 4 lines nad the word wrap didnt help at all oir anything and there wasnt any of those [] things tha mean space, it just scrunched thm all up into like 4 lines of code when it really was like 200...
O an d just thot id put this out there for new coders/programmers with firmware 1.5, when compling(make), instaed of typing 'make' type 'make kxploit' and it will make 2 folders (1 with %) and ready to put on ur firmware version 1.5 psp
once again this is just for new coders who just finished like the first lesson or so...
[Off topic] SG57: Have the mods edited your link in your sig =P
And do not tripple post please...
All went fine, but now I can't compile helloworld.. It seems I am making a mistake somewhere and tried hard to figure it out myself, but I can't... could you please help me?
and here's the error... Though I bet you guys solved it without looking at the error but...Code:#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("Hello World", 0, 1, 1);
#define printf pspDebugScreenPrintf
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}
/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallback(cbid);
sceKernelSleepThreadCB();
return 0;
}
/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void) {
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
int main{
pspDebugScreenInit();
SetupCallbacks();
printf("Hello World");
sceKernelSleepThread();
return 0;
}
http://i32.photobucket.com/albums/d7...ayon/error.jpg
Using the error messages is easier than just looking at the code. The error is telling you that on line 38 there's something wrong right before the { symbol. What's wrong is main is a function so it needs to either declare input parameters or specifiy that there are no inputs: (void).Zitat:
Zitat von NaYoN
Use the error messages, they detail you on which line in your code has errors, and specifically what the error is. For example the first error states that you are missing a ). So fill that in the line where it belongs.
........
http://img365.imageshack.us/img365/3735/gasf8lz.png
thnx
cygwin in some way emulates unix's environment, and there, case matters.
Try renaming your file form Main.c to main.c
wow thanks it worked :D
ya i had that problem, it was soemtimese caused because the functions and such i used in my program, main.c is a c source file, while a main.cpp is a c++ source file, so i had ot rename my main.c to main.cpp and it worked
just putting this out there
On compiling lesson 4, I got this, and have no idea what it is supposed to mean:
http://www.ohsunrise.org/khedderegoe...msglesson4.jpg
What does your main.c file look like?
hey all, I had the illegal operands error why trying to install the toolchain. yeldarb said to get updates but I don't know how to get thoses updates. I suck in english so it might be the dumbest question ever.
Just go through the first tutorial again starting with "Due to a recent problem"