forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling Nano-X

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Magriep



Joined: 28 Aug 2005
Posts: 8

PostPosted: Wed Aug 31, 2005 3:51 am    Post subject: Compiling Nano-X Reply with quote

I've downloaded microwindows off of svn, and I've tried compiling it, but I get this error right near the beginning:
Quote:
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.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Aug 31, 2005 5:35 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed Aug 31, 2005 5:39 am    Post subject: Re: Compiling Nano-X Reply with quote

Magriep wrote:
I've downloaded microwindows off of svn, and I've tried compiling it, but I get this error right near the beginning:
Quote:
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.
Back to top
View user's profile Send private message
Magriep



Joined: 28 Aug 2005
Posts: 8

PostPosted: Wed Aug 31, 2005 9:23 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Wed Aug 31, 2005 4:42 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Magriep



Joined: 28 Aug 2005
Posts: 8

PostPosted: Thu Sep 01, 2005 3:34 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Thu Sep 01, 2005 3:41 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Magriep



Joined: 28 Aug 2005
Posts: 8

PostPosted: Thu Sep 01, 2005 4:07 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Thu Sep 01, 2005 7:57 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Magriep



Joined: 28 Aug 2005
Posts: 8

PostPosted: Thu Sep 01, 2005 9:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Thu Sep 01, 2005 7:54 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Magriep



Joined: 28 Aug 2005
Posts: 8

PostPosted: Fri Sep 02, 2005 11:01 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Arwin



Joined: 12 Jul 2005
Posts: 426

PostPosted: Fri Sep 02, 2005 7:21 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group