Compiling Nano-X

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

Moderators: cheriff, TyRaNiD

Post Reply
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Compiling Nano-X

Post by Magriep »

I've downloaded microwindows off of svn, and I've tried compiling it, but I get this error right near the beginning:
Compiling drivers/scr_psp.c ...
psp-gcc -c -DMWPIXEL_FORMAT=MWPF_TRUECOLORABGR -DNONETWORK=1 -DERASEMOVE=1 -DUPD
ATEREGIONS=1 -DPSP=1 -DMW_NOSIGNALS -DMW_FEATURE_GDERROR=1 -DHAVE_TIMER_SUPPORT
-Wall -Wpointer-arith -O3 -I`psp-config --pspsdk-path`/include -G0 -O2 -s -I. -I
/home/Michael/pspsdk-1.0+beta/sdk/microwindows/include -o /home/Michael/pspsdk-1
.0+beta/sdk/microwindows/obj/drivers/scr_psp.o /home/Michael/pspsdk-1.0+beta/sdk
/microwindows/drivers/scr_psp.c
/home/Michael/pspsdk-1.0+beta/sdk/microwindows/drivers/scr_psp.c: In function 'f
b_open':
/home/Michael/pspsdk-1.0+beta/sdk/microwindows/drivers/scr_psp.c:88: error: inva
lid operands to binary |
make[1]: *** [/home/Michael/pspsdk-1.0+beta/sdk/microwindows/obj/drivers/scr_psp
.o] Error 1
make[1]: Leaving directory `/home/Michael/pspsdk-1.0+beta/sdk/microwindows/mwin'

make: *** [subdir-/home/Michael/pspsdk-1.0+beta/sdk/microwindows/mwin] Error 2
I'm using Cygwin and just updated the toolchain/SDK today. Any help would be appreciated.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Microwindows went in over a month ago and hasn't been touched since. It's suffering from bitrot, so someone has to get it working with the current PSPSDK.

Hmm, actually, looking at that line, just cast the return value of sceGeEdramGetAddr() to u32.

Keep in mind that any other errors are probably similiar - interfaces and types have changed in PSPSDK.
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Re: Compiling Nano-X

Post by Arwin »

Magriep wrote:I've downloaded microwindows off of svn, and I've tried compiling it, but I get this error right near the beginning:
Compiling drivers/scr_psp.c ...
psp-gcc -c -DMWPIXEL_FORMAT=MWPF_TRUECOLORABGR -DNONETWORK=1 -DERASEMOVE=1 -DUPD
ATEREGIONS=1 -DPSP=1 -DMW_NOSIGNALS -DMW_FEATURE_GDERROR=1 -DHAVE_TIMER_SUPPORT
-Wall -Wpointer-arith -O3 -I`psp-config --pspsdk-path`/include -G0 -O2 -s -I. -I
/home/Michael/pspsdk-1.0+beta/sdk/microwindows/include -o /home/Michael/pspsdk-1
.0+beta/sdk/microwindows/obj/drivers/scr_psp.o /home/Michael/pspsdk-1.0+beta/sdk
/microwindows/drivers/scr_psp.c
/home/Michael/pspsdk-1.0+beta/sdk/microwindows/drivers/scr_psp.c: In function 'f
b_open':
/home/Michael/pspsdk-1.0+beta/sdk/microwindows/drivers/scr_psp.c:88: error: inva
lid operands to binary |
make[1]: *** [/home/Michael/pspsdk-1.0+beta/sdk/microwindows/obj/drivers/scr_psp
.o] Error 1
make[1]: Leaving directory `/home/Michael/pspsdk-1.0+beta/sdk/microwindows/mwin'

make: *** [subdir-/home/Michael/pspsdk-1.0+beta/sdk/microwindows/mwin] Error 2
I'm using Cygwin and just updated the toolchain/SDK today. Any help would be appreciated.
mr.brown is not wrong, but look at this:

pspsdk-1.0+beta/sdk

are you sure it's using the right sdk? maybe wrong environment settings? This looks like the old one. I've updated using the toolchains recently too, but I can still compile.
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Post by Magriep »

Ok, I updated the sdk again (clean install). And the error still came up. The pspsdk-1.0+beta/sdk was a directory (where microwindows was). I moved it to /home/projects/microwindows with no change. The cast did however fix the problem and it compiled. But I'm not exactly sure what to do with mdemo/mine; I'm positive it's not a .pbp file, but not sure what else is needed to make it a pbp.

-Thanks
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Magriep wrote:Ok, I updated the sdk again (clean install). And the error still came up. The pspsdk-1.0+beta/sdk was a directory (where microwindows was). I moved it to /home/projects/microwindows with no change. The cast did however fix the problem and it compiled. But I'm not exactly sure what to do with mdemo/mine; I'm positive it's not a .pbp file, but not sure what else is needed to make it a pbp.

-Thanks
It's basically an .elf file without the extention. Just rename it to .elf, and then either run it with File Assistant ++ or make a pbp out of it with something like elf2pbp.
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Post by Magriep »

I tried using elf2pbp, but I get an error saying the game can't load for mdemo, and for the mine demo it locks up. I used PSP Brew to copy the pbp over to the psp.
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Magriep wrote:I tried using elf2pbp, but I get an error saying the game can't load for mdemo, and for the mine demo it locks up. I used PSP Brew to copy the pbp over to the psp.
Well always try with kxploit first, as that's the only one that pretty much always works.

Also, I recommend trying file assistant ++ for loading .elf files directly, just to test if they work.
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Post by Magriep »

Murphy's Law just doesn't want to go away :-). I installed file assistant, and got a read error (couldn't start game). So I renamed the folder it was in so it'd show the corrupted data, and it ran after that. I then copy the two elf files, and when I try running the mdemo, I get the game could not be started error with error number 8001001C, which is ufortunately, not on the error code list in PSP Wiki :-P.

I'll eventually get this working...
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Magriep wrote:Murphy's Law just doesn't want to go away :-). I installed file assistant, and got a read error (couldn't start game). So I renamed the folder it was in so it'd show the corrupted data, and it ran after that. I then copy the two elf files, and when I try running the mdemo, I get the game could not be started error with error number 8001001C, which is ufortunately, not on the error code list in PSP Wiki :-P.

I'll eventually get this working...
The 2nd last version of File Assistant ++ had a problem with .elf files. Be sure you have the latest version .... That, or the very very first version (FA), which also works ok.
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Post by Magriep »

Ok, with .08 installed, I still get an error starting the assistant if the corrupt files are hidden, and it still doesn't work when I load the elf files. So I'm going to upload them and see if it's just me, or if it's the elf files.

http://www.magriep.com/elf.zip
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Magriep wrote:Ok, with .08 installed, I still get an error starting the assistant if the corrupt files are hidden, and it still doesn't work when I load the elf files. So I'm going to upload them and see if it's just me, or if it's the elf files.

http://www.magriep.com/elf.zip
It's the elf files. My version of the mdemo with p-sprint enabled works fine, but yours gives the error.

But why, I have no clue!
Magriep
Posts: 8
Joined: Sun Aug 28, 2005 10:10 am

Post by Magriep »

p-sprint is the keyboard emulator you made right? If so, that shouldn't affect whether or not microwindows should run. So it must be my psp. I have 1.5 firmware, so that shouldn't be the issue. The only other thing I have on there is the uo_Snes9x 0.02y32 emulator and a few saved games.
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Magriep wrote:p-sprint is the keyboard emulator you made right? If so, that shouldn't affect whether or not microwindows should run. So it must be my psp. I have 1.5 firmware, so that shouldn't be the issue. The only other thing I have on there is the uo_Snes9x 0.02y32 emulator and a few saved games.
It must have something to do with compiling ...

Maybe you can try to delete the .o and .n files in the obj/drivers directory (that is from memory, might be slightly different but I think that's it). These aren't recompiled unless they're not present.
Post Reply