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 

USBHOSTFS_PC problem.

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



Joined: 17 Jan 2006
Posts: 80
Location: Ontario, Canada

PostPosted: Sat Sep 30, 2006 5:23 am    Post subject: USBHOSTFS_PC problem. Reply with quote

Hi,

I just checked out psplink and when I go into /psplink/usbhostfs_pc I can't make it, and thus cannot use it I suppose.. What can I do to rectify this?

Code:

jesusxp@jesusxp:~/psplink/usbhostfs_pc$ make
cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2   -c -o main.o main.c
main.c:19:17: error: usb.h: No such file or directory
main.c:97: error: syntax error before ‘*’ token
main.c:97: warning: type defaults to ‘int’ in declaration of ‘g_hDev’
main.c:97: warning: data definition has no type or storage class
main.c:207: error: syntax error before ‘*’ token
main.c: In function ‘euid_usb_bulk_write’:
main.c:214: warning: implicit declaration of function ‘usb_bulk_write’
main.c:214: error: ‘dev’ undeclared (first use in this function)
main.c:214: error: (Each undeclared identifier is reported only once
main.c:214: error: for each function it appears in.)
main.c:214: error: ‘ep’ undeclared (first use in this function)
main.c:214: error: ‘bytes’ undeclared (first use in this function)
main.c:214: error: ‘size’ undeclared (first use in this function)
main.c:214: error: ‘timeout’ undeclared (first use in this function)
main.c: At top level:
main.c:221: error: syntax error before ‘*’ token
main.c: In function ‘euid_usb_bulk_read’:
main.c:228: warning: implicit declaration of function ‘usb_bulk_read’
main.c:228: error: ‘dev’ undeclared (first use in this function)
main.c:228: error: ‘ep’ undeclared (first use in this function)
main.c:228: error: ‘bytes’ undeclared (first use in this function)
main.c:228: error: ‘size’ undeclared (first use in this function)
main.c:228: error: ‘timeout’ undeclared (first use in this function)
main.c: At top level:
main.c:235: error: syntax error before ‘*’ token
main.c:235: warning: ‘struct usb_bus’ declared inside parameter list
main.c:235: warning: its scope is only this definition or declaration, which is probably not what you want
main.c:236: warning: return type defaults to ‘int’
main.c: In function ‘open_device’:
main.c:243: error: dereferencing pointer to incomplete type
main.c:247: error: dereferencing pointer to incomplete type
main.c:247: error: dereferencing pointer to incomplete type
main.c:249: error: dereferencing pointer to incomplete type
main.c:250: error: dereferencing pointer to incomplete type
main.c:252: warning: implicit declaration of function ‘usb_open’
main.c:252: warning: assignment makes pointer from integer without a cast
main.c:256: warning: implicit declaration of function ‘usb_set_configuration’
main.c:259: warning: implicit declaration of function ‘usb_claim_interface’
main.c:264: warning: return from incompatible pointer type
main.c:268: warning: implicit declaration of function ‘usb_close’
main.c: At top level:
main.c:293: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c: In function ‘close_device’:
main.c:299: warning: implicit declaration of function ‘usb_release_interface’
main.c:300: warning: implicit declaration of function ‘usb_reset’
main.c: At top level:
main.c:840: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:851: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:895: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:969: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1063: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1130: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1185: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1216: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1281: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1328: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1383: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1438: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1493: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1645: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1693: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1776: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1827: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:1939: warning: ‘struct usb_dev_handle’ declared inside parameter list
main.c:2005: error: syntax error before ‘*’ token
main.c:2006: warning: return type defaults to ‘int’
main.c: In function ‘wait_for_device’:
main.c:2007: error: ‘usb_dev_handle’ undeclared (first use in this function)
main.c:2007: error: ‘hDev’ undeclared (first use in this function)
main.c:2011: warning: implicit declaration of function ‘usb_find_busses’
main.c:2012: warning: implicit declaration of function ‘usb_find_devices’
main.c:2014: warning: implicit declaration of function ‘usb_get_busses’
main.c:2014: warning: passing argument 1 of ‘open_device’ makes pointer from integer without a cast
main.c: In function ‘do_hostfs’:
main.c:2077: warning: passing argument 1 of ‘handle_hello’ from incompatible pointer type
main.c:2082: warning: passing argument 1 of ‘handle_open’ from incompatible pointer type
main.c:2087: warning: passing argument 1 of ‘handle_close’ from incompatible pointer type
main.c:2092: warning: passing argument 1 of ‘handle_write’ from incompatible pointer type
main.c:2097: warning: passing argument 1 of ‘handle_read’ from incompatible pointer type
main.c:2102: warning: passing argument 1 of ‘handle_lseek’ from incompatible pointer type
main.c:2107: warning: passing argument 1 of ‘handle_dopen’ from incompatible pointer type
main.c:2112: warning: passing argument 1 of ‘handle_dclose’ from incompatible pointer type
main.c:2117: warning: passing argument 1 of ‘handle_dread’ from incompatible pointer type
main.c:2122: warning: passing argument 1 of ‘handle_remove’ from incompatible pointer type
main.c:2127: warning: passing argument 1 of ‘handle_rmdir’ from incompatible pointer type
main.c:2132: warning: passing argument 1 of ‘handle_mkdir’ from incompatible pointer type
main.c:2137: warning: passing argument 1 of ‘handle_chdir’ from incompatible pointer type
main.c:2142: warning: passing argument 1 of ‘handle_rename’ from incompatible pointer type
main.c:2147: warning: passing argument 1 of ‘handle_getstat’ from incompatible pointer type
main.c:2152: warning: passing argument 1 of ‘handle_chstat’ from incompatible pointer type
main.c:2157: warning: passing argument 1 of ‘handle_ioctl’ from incompatible pointer type
main.c:2162: warning: passing argument 1 of ‘handle_devctl’ from incompatible pointer type
main.c: In function ‘start_hostfs’:
main.c:2316: warning: passing argument 1 of ‘close_device’ from incompatible pointer type
main.c: In function ‘exit_app’:
main.c:2461: warning: passing argument 1 of ‘close_device’ from incompatible pointer type
main.c: In function ‘main’:
main.c:3114: warning: implicit declaration of function ‘usb_init’
make: *** [main.o] Error 1
Back to top
View user's profile Send private message MSN Messenger
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Sep 30, 2006 5:58 am    Post subject: Reply with quote

If you are on windows do make BUILD_WIN32=1 if on linux (or a n other unix like os) then ensure you have libusb installed.
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