Toolchain building problems

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

Moderators: cheriff, TyRaNiD

Post Reply
Shapyi
Posts: 95
Joined: Mon Apr 25, 2005 9:31 am

Toolchain building problems

Post by Shapyi »

I have been trying to build the PSP toolchain on Windows with Cygwin for a day now. I have tried searching the forum but nothing seems to help. I know it is probably a missing library or something simple but I'd stuck. Here is what I am getting:

Code: Select all

make[1]: Entering directory `/home/Shapyi/psphome/psptoolchain/build/psplinkusb/
tools/remotejoy/pc'
cc -Wall -g   -c -o remotejoy.o remotejoy.c
remotejoy.c:27:28: linux/joystick.h: No such file or directory
remotejoy.c: In function `get_joyinfo':
remotejoy.c:318: warning: implicit declaration of function `ioctl'
remotejoy.c:318: warning: implicit declaration of function `JSIOCGNAME'
remotejoy.c:324: error: `JSIOCGVERSION' undeclared (first use in this function)
remotejoy.c:324: error: (Each undeclared identifier is reported only once
remotejoy.c:324: error: for each function it appears in.)
remotejoy.c:330: error: `JSIOCGAXES' undeclared (first use in this function)
remotejoy.c:336: error: `JSIOCGBUTTONS' undeclared (first use in this function)
remotejoy.c: At top level:
remotejoy.c:461: warning: "struct js_event" declared inside parameter list
remotejoy.c:461: warning: its scope is only this definition or declaration, whic
h is probably not what you want
remotejoy.c: In function `read_event':
remotejoy.c:467: error: invalid application of `sizeof' to incomplete type `js_e
vent'
remotejoy.c:481: error: dereferencing pointer to incomplete type
remotejoy.c:481: error: `JS_EVENT_INIT' undeclared (first use in this function)
remotejoy.c:486: error: dereferencing pointer to incomplete type
remotejoy.c: In function `make_mapfile':
remotejoy.c:498: error: storage size of 'joydata' isn't known
remotejoy.c:535: error: `JS_EVENT_AXIS' undeclared (first use in this function)
remotejoy.c:548: error: `JS_EVENT_BUTTON' undeclared (first use in this function
)
remotejoy.c:498: warning: unused variable `joydata'
remotejoy.c: In function `mainloop':
remotejoy.c:627: error: storage size of 'joydata' isn't known
remotejoy.c:678: error: `JS_EVENT_INIT' undeclared (first use in this function)
remotejoy.c:680: error: `JS_EVENT_BUTTON' undeclared (first use in this function
)
remotejoy.c:706: error: `JS_EVENT_AXIS' undeclared (first use in this function)
remotejoy.c:627: warning: unused variable `joydata'
make[1]: *** [remotejoy.o] Error 1
make[1]: Leaving directory `/home/Shapyi/psphome/psptoolchain/build/psplinkusb/t
ools/remotejoy/pc'
make: *** [all] Error 2
../scripts/009-psplinkusb.sh: Failed.
Can anyone point me to what I am missing? I have libusb-win32 installed and libsdl. What else could it be? Thank you for the help guys.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Shapyi
Posts: 95
Joined: Mon Apr 25, 2005 9:31 am

Post by Shapyi »

Thanks for the thread but it really doesn't provide a solution to my problem building psplinkusb. Has anyone who is running cygwin been able to build this or get this final script to run?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

It's failing to build remotejoy. If you don't need that (you probably don't), you could just remove it from the psplink makefile.
Shapyi
Posts: 95
Joined: Mon Apr 25, 2005 9:31 am

Post by Shapyi »

Alright, I just removed it all from the makefile and it built fine. Thank you for the help.
Post Reply