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 

ps2sdk compilation on win32 - some notes

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



Joined: 08 May 2004
Posts: 92
Location: Czech Republic

PostPosted: Sat Jul 31, 2004 6:56 am    Post subject: ps2sdk compilation on win32 - some notes Reply with quote

A few notes for ps2sdk compilation on win32 machine, no cygwin just pure cmd shell.

At first I have to congratulate you guys! Good work. No serious problem during compilation encountered.

Here are some minor glitches:

1) command mkdir is internal command in win32 so shell ignores the gnu mkdir.exe. When internal mkdir tries to create directory and that directory already exists then error is returned and make process is halted. It happens all the time when obj and bin directories were created. I had to make my own mkdir2.exe that ignores already existing direcotries and then modified the ps2sdk makefiles to use my mkdir2.exe. Another solution is to call "make clean" that cleans all obj and bin directories before every "make" call.

2) chmod command in makefiles. No chmod on win32, so i just made fake chmod.exe that do nothing (except that it can be executed :)

3) strays "\" in the sources caused errors. I suspect that my "smart" cvs program convereted all sources to win32 text format so I had to convert it back to unix format. Another solution could be precompiler replacement or instaltion of the recent gcc toolchain (I'am lazy to switch to new things).

4) the bin2s program reported : "Failed to read file" so I was not able to create *.S files for further compilation. The problem seems to be that files are opened in text mode and some irx'es apparently had "eof" mark inside. Solution is to open file in binary ("rb") mode.

5) -lgcc library was not found during linking. Maybe it's a bug in my environment. Again I was too lazy to figure out how to fix my environment so I just copied libgcc to more accessible place.

6) stdarg.h could not be found when compiling iop stuff. Similar problem and solution as 5).

7) the Makefile.iopglobal was missing in the samples directory. I copied it form ps2lib and it works fine.
Back to top
View user's profile Send private message
Waruwaru



Joined: 01 Aug 2004
Posts: 15

PostPosted: Tue Aug 03, 2004 11:47 am    Post subject: Reply with quote

More notes in here
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 -> PS2 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