ecros / procfw

Automatically exported from code.google.com/p/procfw
0 stars 0 forks source link

pspgz.py Failed to compress VshCtrl.prx. #494

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download latest repo of procfw
2. type make CONFIG_620=1
3. look at compile log

What is the expected output? What do you see instead?
Done!

psp-fixup-imports vshctrl.elf
psp-prxgen vshctrl.elf vshctrl.prx
../contrib/pspgz.py vshctrl.prx ../contrib/SystemControl.hdr vshctrl.prx 
VshCtrl 0x1007
process_begin: CreateProcess((null), python 
C:\cygwin\home\RAC\projects\procfw\contrib\pspgz.py vshctrl.prx 
../contrib/SystemControl.hdr vshctrl.prx VshCtrl 0x1007, ...) failed.
make (e=2): The system cannot find the file specified.
C:\pspsdk\bin\make.exe[1]: *** [all] Error 2
C:\pspsdk\bin\make.exe[1]: Leaving directory 
`C:/cygwin/home/RAC/projects/procfw/Vshctrl'
C:\pspsdk\bin\make.exe: *** [all] Error 2

What version of the product are you using? On what operating system?
pspsdk 0.11.2r3, latest Cygwin with fresh install of all packages. Windows 7 
Home premium 

Please provide any additional information below.
I tried to compile usbdevice and it fails at the pspgz python script. 

Original issue reported on code.google.com by lilmnm616@gmail.com on 3 Aug 2012 at 1:30

GoogleCodeExporter commented 9 years ago
after further investigation of the compiling log. I noticed that after where it 
says "process_begin:" its trying to run pspgz.py with a path that uses 
backslashes "\" instead of forward slashes "/" so its not finding pspgzp.py. so 
i tried running the script where it left off and compressed vshctrl.prx manualy 
using pspgz.py and it worked. so i wrote a script to compress all the files 
that were being compressed directly after build time and put the script to run 
after the Live-system Components which worked fine. then when the compiler 
moved to the PXE executables and it was gonna run creat_module_include.py and 
ran in the same error as before

Original comment by lilmnm616@gmail.com on 4 Aug 2012 at 11:32

GoogleCodeExporter commented 9 years ago
I have found the problem and fixed it and am including my fix and readme. but 
first here is an explanation or at least what i think is happening. When the 
makefile calls the pspgz.py or create_module_include.py scripts and trys to 
find and run it but falls to find it and returns an error 2 error which means 
make couldnt find the *py file and run it. the reason is that when it gets 
called the path is converted to a posix or Windows path format (i.e. 
C:\cygwin\home\...) but the backslashes are removed so make looks for the *.py 
file in a folder that is named the whole path that was stated, but can't as the 
folder doesn't exist. 

Please read the README.txt with in the zip included on how to use the patch and 
some troubleshooting if it doesn't work

Original comment by lilmnm616@gmail.com on 7 Aug 2012 at 1:26

Attachments: