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 

aalib doesnīt know fd_set

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



Joined: 15 Oct 2006
Posts: 4

PostPosted: Mon Apr 02, 2007 1:05 am    Post subject: aalib doesnīt know fd_set Reply with quote

Hello,

hope I picked the right sub-forum. Lets begin ;).
Iīm trying to compile aalib for PSP projects in cygwin. So i checkout and cd into it:
Code:

svn checkout svn://svn.pspdev.org/psp/trunk/aalib
(works fine..., rev 2211)
cd aalib

Now I type make as the readme.psp says, nothing special so far. Here is the complete output:
Code:

$ make
make -C src all
make[1]: Entering directory `/tmp/aalib/src'
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aafont.o aafont.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aafonts.o aafonts.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aavyhen.o aavyhen.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aamktabl.o aamktabl.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aamem.o aamem.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaprintf.o aaprintf.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aahelp.o aahelp.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaslnkbd.o aaslnkbd.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaslang.o aaslang.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aafastre.o aafastre.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontgl.o fontgl.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font16.o font16.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font14.o font14.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontx16.o fontx16.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontx13.o fontx13.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontx13b.o fontx13b.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontcour.o fontcour.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aarec.o aarec.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font9.o font9.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font8.o font8.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontline.o fontline.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aalib.o aalib.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaflush.o aaflush.c
aaflush.c: In function 'aa_display':
aaflush.c:40: warning: pointer targets in passing argument 2 of 'c->driver->prin
t' differ in signedness
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aarender.o aarender.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaout.o aaout.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aain.o aain.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaedit.o aaedit.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaregist.o aaregist.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aasave.o aasave.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aastdout.o aastdout.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aagu.o aagu.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aastdin.o aastdin.c
aastdin.c: In function 'stdin_getchar':
aastdin.c:58: error: 'fd_set' undeclared (first use in this function)
aastdin.c:58: error: (Each undeclared identifier is reported only once
aastdin.c:58: error: for each function it appears in.)
aastdin.c:58: error: syntax error before 'readfds'
aastdin.c:61: error: 'readfds' undeclared (first use in this function)
make[1]: *** [aastdin.o] Error 1
make[1]: Leaving directory `/tmp/aalib/src'
make: *** [all] Error 2


So, could anyone help me get this working? I donīt really know what have to be in a fd_set var :/.

Regards,
eiffel56
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Mon Apr 02, 2007 1:51 am    Post subject: Reply with quote

Normally, the fd_set should be defined within the sys/types.h header, but it seems the sys/types.h in PSPSDK fails to do that. Try adding #include <sys/fd_set.h> right after the #include <sys/types.h> in aastdin.c and recompile.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
eiffel56



Joined: 15 Oct 2006
Posts: 4

PostPosted: Mon Apr 02, 2007 2:53 am    Post subject: Reply with quote

Ah, works fine now. Thank you ;).
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