Compiling Under (XP) w/cygwin : ISSUES

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

Moderators: cheriff, TyRaNiD

Post Reply
Smeg0rz
Posts: 4
Joined: Sun Jun 26, 2005 4:24 am

Compiling Under (XP) w/cygwin : ISSUES

Post by Smeg0rz »

Hello, i've been looking thru these forums for a while, and usually solve most problems by searching this forum, but since getting back into coding, i've never used Cygwin before.

I'm after some help with compiling nem's 'hellopsp' source code. Having installed Cygwin with the required features I continued to follow some instructions to help setup the tool kit utilities.

(These are what i'm following : http://staff.philau.edu/barberej/psp_dev_guide.htm )

After i type 'psp-gcc -g -c pg.c' i get the following errors, and i really have tryed my best googling/searching for this fault, but could find nothing, so i thought maybe since i've done much research myself on this issue someone here could help me.

Error :

pg.c: In Function 'pgFillvram':
pg.c:110: Warning: Pointer targets in assignment differ in signedness
pg.c: In Function 'pgBitBlt':
pg.c:124:Warning: Pointer targets in assignment differ in signedness
pg.c: In Function 'pgPutChar':
pg.c:153: warning: comparison is always false due to limited range of data type
pg.c:155: warning: Pointer targets in assignment differ in signedness

If anyone could help me, would be really great!

Cheers guys.
jboldiga
Posts: 27
Joined: Mon Jun 20, 2005 10:16 am

Post by jboldiga »

they are only warning, not errors...should still compile fine.
Smeg0rz
Posts: 4
Joined: Sun Jun 26, 2005 4:24 am

Post by Smeg0rz »

Ok, thanks I wasnt sure not to continue with these 'warnings' but i shall continue and see what i get!

Thanks.

Continued and it seems to be going ok, but on the last part :

mkdir elf2pbp
cd elf2pbp
wget http://www.internalreality.com/elf2pbp3.zip
unzip elf2pbp3.zip
cd src
g++ elf2pbp.cpp -o elf2pbp
cp elf2pbp ../
cd /psphome/src/hellopsp_src/

../../elf2pbp/elf2pbp outp

elf src compiles ok, but when ii type :

cp elf2pbp ../
cd /psphome/src/hellopsp_src/

../../elf2pbp/elf2pbp outp

I get :

bash : ../../elf2pbp/elf2pbp: Premission Denied

:(
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

I dont know how cgywin does root.. but type in 'su' w/o the ''s and that *might* get you to root, which you can then do that.

If you still cant, try a 'chmod u+x FILE' on the file, then try running it again. What that'll do is say "i want this FILE to modify the permissions (chmod) so that this current user (u) can add excecutible rights (+x)
Post Reply