Zeige Ergebnis 9.481 bis 9.510 von 10174
C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; $(PSPBIN) is not properly set....
-
01-07-2009, 04:54 PM #9481It's good to be free...

- Registriert seit
- Feb 2007
- Beiträge
- 2.440
- Points
- 10.420
- Level
- 67
- Downloads
- 0
- Uploads
- 0
$(PSPBIN) is not properly set.
pəʇuɒɹɓ ɹoɟ ɓuɪɥʇou əʞɒʇ
-
01-07-2009, 05:03 PM #9482xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
yea change it to the REAL path =P
~!SlasheR!~
-
01-08-2009, 02:22 AM #9483QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- Germany
- Beiträge
- 216
- Points
- 4.511
- Level
- 42
- Downloads
- 0
- Uploads
- 0
Well, first of all thanks for all the aswers, but it still won't work. I now get the original errors that he (still) can't find "freetype/config/ftheader.h". As for the environment variables, if this is what you geht when you type "echo %PATH%" - the (right) bin path is there - twice!
-=Double Post Merge =-
Ok, here comes the cheap solution. Inside the includedirectory was a folder "freetype2", inside that a folder "freetype" with all the files in it. Copied "freetype" into the include directory, everything works. I could have tried that earlier -_-. Anyways, thanks for all the help.Geändert von Lukeson (01-08-2009 um 03:35 AM Uhr) Grund: Automerged Doublepost
-
01-08-2009, 04:59 AM #9484
do echo %PSPBIN% and see what it outputs
because.. ya know.. pspbin env variable is not the path variable..-- Code Monkey : Sarien, Fishguts, Cracks and Crevices --
"Did IQ's just drop sharply while I was away?" (Ripley)
-
01-08-2009, 07:09 AM #9485QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- Germany
- Beiträge
- 216
- Points
- 4.511
- Level
- 42
- Downloads
- 0
- Uploads
- 0
It echos... wait for it... %PSPBIN% !
Where can I change that?
-
01-08-2009, 12:34 PM #9486QJ Gamer Blue
- Registriert seit
- Jul 2007
- Beiträge
- 296
- Points
- 3.795
- Level
- 38
- Downloads
- 0
- Uploads
- 0
It's not a windows environment variable, you have to do it for cygwin.
Type (In a cygwin command prompt):
Depending on the directory freetype-config is in.PSPBIN = /usr/local/pspdev/bin
or
PSPBIN = /usr/local/pspdev/psp/bin
Then try running it again.
-
01-08-2009, 10:02 PM #9487xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
could some1 please answer my question???
[help] xmb plugin
~!SlasheR!~
-
01-09-2009, 04:50 AM #9488QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- Germany
- Beiträge
- 216
- Points
- 4.511
- Level
- 42
- Downloads
- 0
- Uploads
- 0
Thx!
-=Double Post Merge =-
I'm having troubles with pgeFont. I use it with the graphics.c library from Psilocybeing that is included as a sample that comes with pgeFont.
When I print a font with pge to the screen and use blitAlphaImageToScreen from the library, the image is totally messed up. I can do that before I print the text of after that, the result is the same.
Does anyone have a clue?Geändert von Lukeson (01-09-2009 um 06:12 AM Uhr) Grund: Automerged Doublepost
-
01-09-2009, 06:25 AM #9489I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
I read the thread and you've been given plenty of help. Use sceDisplayGetFrameBuf to get the address to send to pspDebugScreenSetOffset. Theres not much more that we can say without giving you the code.
-Aura
Is there any functions to open/read/modify an archive in the SDK? I need to use an archive (type not important) but I don't want to reinvent the wheel if theres a way already.Geändert von Auraomega (01-09-2009 um 09:52 AM Uhr)
-
01-09-2009, 06:52 PM #9490xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Yea i know Aura but i still need help?
thanks to every1 =)
~!SlasheR!~
-
01-10-2009, 08:29 AM #9491
-
01-10-2009, 10:09 AM #9492I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
-
01-10-2009, 04:51 PM #9493xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
any libs for unraring files?
~!SlasheR!~
-
01-10-2009, 05:40 PM #9494I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Is there a way to list heap UIDs? I see functions for listing the UID of modules but I've not found anything for memory. Am I right in assuming the PSP_HEAP_SIZE_KB allocates a heap with a determinable UID also? Finally if I allocate a heap in a function using sceKernelCreateHeap does that remove the need for the PSP_HEAP_SIZE_KB macro and no extra additions, or would I then have to allocate from the heap each time using sceKernelAllocHeapMemory? I'm just not sure if the latter function is a method of using malloc with a heap?
Sorry for all the questions, I just stumbled across sysmem and become interested
-Aura
-
01-10-2009, 07:13 PM #9495
-- Code Monkey : Sarien, Fishguts, Cracks and Crevices --
"Did IQ's just drop sharply while I was away?" (Ripley)
-
01-11-2009, 12:42 AM #9496xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
yep i did i found the one that ur talking about (rar2)
but i was wondering if there was any rar3 ones out there
Thx 4 ur reply anyways
~!SlasheR!~
-
01-11-2009, 10:35 AM #9497
-
01-11-2009, 01:37 PM #9498
-
01-11-2009, 02:23 PM #9499I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Is there any reason for a prx (as in, a module not an app on its own) to give me errors when its C++ and not C? Whenever I compile a module in C++ it gives me:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: warning: cannot find
entry symbol module_start; defaulting to 0000000000000000
/usr/local/pspdev/psp/sdk/lib/prxexports.o
.rodata.sceResident+0x8): undefined
reference to `module_start'
collect2: ld returned 1 exit status
make: *** [heaparea1.elf] Error 1
if the extention is C it works fine...
I'm compiling with -lstdc++ as well...
At the moment its no major biggy, I can get away with using C but when I want to introduce classes things are going to get hairy.
-Aura
-
01-11-2009, 05:58 PM #9500
I'm pretty sure there are some essential differences between the two, so you might have to use extern tags.
I gone and made that one power spoofer and that gay cheat device.
-
01-11-2009, 06:51 PM #9501QJ Gamer Bronze
- Registriert seit
- Aug 2008
- Ort
- thugz mansion
- Beiträge
- 875
- Points
- 5.594
- Level
- 48
- Downloads
- 0
- Uploads
- 0
Anybody know where theres some samples to how the vlf library works.
Like something simple i was only able to find one and i was to complex for my tiny brain to take in.
Zitat von SuperBatXS
-
01-11-2009, 07:13 PM #9502xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
what does that library do...?

ive heard of it but dont know what it does
~!SlasheR!~
-
01-11-2009, 07:19 PM #9503QJ Gamer Bronze
- Registriert seit
- Aug 2008
- Ort
- thugz mansion
- Beiträge
- 875
- Points
- 5.594
- Level
- 48
- Downloads
- 0
- Uploads
- 0
-
01-11-2009, 08:01 PM #9504xMod.
- Registriert seit
- Oct 2008
- Ort
- Melbourne, Australia
- Beiträge
- 675
- Points
- 4.576
- Level
- 43
- My Mood
-
- Downloads
- 0
- Uploads
- 0
thats KOOL as!!!
ill look into it if i figure out anything ill pm u
~!SlasheR!~
-
01-13-2009, 06:52 AM #9505QJ Gamer Green
- Registriert seit
- May 2008
- Ort
- The Netherlands
- Beiträge
- 330
- Points
- 3.567
- Level
- 37
- Downloads
- 0
- Uploads
- 0
I didn't accomplish to get my menu to work, and fixing the errors is giving me even
more problems. Can somebody sort this out for me?:
Spoiler for main.c:
Spoiler for Makefile:
Error I'm getting:
Code:main.c: In function 'MainMenu': main.c:<.text+0x9c>: Undefined reference to 'sceCtrlBufferPeekPositive' main.c:<.text+0xfc>: Undefined reference to 'sceCtrlBufferPeekPositive' collect2: ld returned 1 exit status make: ** [menu.elf] Error1
[spoiler=My Releases So Far]
PSP_Operator v2.0 Final (and earlier; stopped with this one)
Mario's Road v2.0 (working on 2.5:D)
UMD_Operator v0.0.2 (and earlier; stopped with this one)
PSP-Quiz v0.1 (working on v0.2 already:D)
[/spoiler]
-
01-13-2009, 07:22 AM #9506QJ Gamer Bronze

- Registriert seit
- Aug 2007
- Ort
- Australia
- Beiträge
- 659
- Points
- 8.045
- Level
- 60
- Downloads
- 0
- Uploads
- 0
add -lpspctrl to your makefile
-
01-13-2009, 07:38 AM #9507QJ Gamer Green
- Registriert seit
- May 2008
- Ort
- The Netherlands
- Beiträge
- 330
- Points
- 3.567
- Level
- 37
- Downloads
- 0
- Uploads
- 0
It's giving the same errors again.
[spoiler=My Releases So Far]
PSP_Operator v2.0 Final (and earlier; stopped with this one)
Mario's Road v2.0 (working on 2.5:D)
UMD_Operator v0.0.2 (and earlier; stopped with this one)
PSP-Quiz v0.1 (working on v0.2 already:D)
[/spoiler]
-
01-13-2009, 08:14 AM #9508I'm back!

- Registriert seit
- Feb 2007
- Ort
- England
- Beiträge
- 902
- Points
- 8.236
- Level
- 61
- Downloads
- 0
- Uploads
- 0
*Facepalm*
Check the header file in the future please, it'll save us all so many headaches:
Your code:
headerCode:... sceCtrlBufferPeekPositive ...
-AuraCode:... sceCtrlPeekBufferPositive ...
-
01-13-2009, 09:15 AM #9509QJ Gamer Green
- Registriert seit
- May 2008
- Ort
- The Netherlands
- Beiträge
- 330
- Points
- 3.567
- Level
- 37
- Downloads
- 0
- Uploads
- 0
I don't understand your answer actually
[spoiler=My Releases So Far]
PSP_Operator v2.0 Final (and earlier; stopped with this one)
Mario's Road v2.0 (working on 2.5:D)
UMD_Operator v0.0.2 (and earlier; stopped with this one)
PSP-Quiz v0.1 (working on v0.2 already:D)
[/spoiler]
-
01-13-2009, 09:37 AM #9510QJ Gamer Bronze
- Registriert seit
- Aug 2008
- Ort
- thugz mansion
- Beiträge
- 875
- Points
- 5.594
- Level
- 48
- Downloads
- 0
- Uploads
- 0
I just changed it for you.#include <pspsdk.h>
#include <pspkernel.h>
#include <psppower.h>
#include <pspctrl.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("menu", 0, 1, 0);
PSP_MAIN_THREAD_ATTR(PSP_ THREAD_ATTR_USER);
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);
sceKernelRegisterExitCall back(cbid);
sceKernelSleepThreadCB();
return 0;
}
int SetupCallbacks(void)
{
int thid = 0;
thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0)
{
sceKernelStartThread(thid , 0, 0);
}
return thid;
}
#define N_Entries 3
char *MenuItems[] =
{
"ITEM",
"ITEM2",
"ITEM3"
};
int MainMenu()
{
SceCtrlData menupad, lastpad;
sceCtrlPeekBufferPositive (&lastpad, 1);
int i, selection = 0;
while(1)
{
pspDebugScreenSetXY(0, 0);
printf("Welcome to PROGRAM-NAME\n");
for(i = 0; i < N_Entries; i++)
{
if (i != selection)
printf(" %s\n", MenuItems[i]);
else
printf(" -> %s\n", MenuItems[i]);
}
sceCtrlPeekBufferPositive (&menupad, 1);
if (lastpad.Buttons != menupad.Buttons)
{
lastpad.Buttons = menupad.Buttons;
if (menupad.Buttons & PSP_CTRL_DOWN)
{
selection++;
if (selection >= N_Entries)
selection = 0;
}
else if(menupad.Buttons & PSP_CTRL_UP)
{
selection--;
if (selection < 0)
selection = N_Entries - 1;
}
else if(menupad.Buttons & PSP_CTRL_CROSS)
{
break;
}
}
}
return selection;
}
Use the code tag it looks sloppy as a spoiler or quote.
Zitat von SuperBatXS


LinkBack URL
About LinkBacks
Mit Zitat antworten


Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum