| Author |
Message |
|
|
jprokos
|
Posted: Mon Mar 14, 2011 1:38 pm |
|
|
| Posts: 3Joined: Mon Mar 14, 2011 1:17 am
|
Dear all,
I am trying to install on Mac OS X 10.4.11.
Someone with more experience may be able to spot the issue quickly. I've successfully compiled and installed the latest libusb libraries, 0.1.12 into /usr/local/lib. Files, usb.h and usbpp.h were installed into /usr/local/include
Following the directions in the USB_ModeSwitch install instructions gets me nowhere fast. My terminal output after running sudo make install:
Code: PowerBook:~/Desktop/usb-modeswitch-1.1.7 jp$ sudo make install gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb usb_modeswitch.c: In function 'detachDriver': usb_modeswitch.c:994: warning: implicit declaration of function 'usb_get_driver_np' usb_modeswitch.c:1010: warning: implicit declaration of function 'usb_detach_kernel_driver_np' install -D -s --mode=755 usb_modeswitch /usr/sbin/usb_modeswitch install: illegal option -- D usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... make: *** [install] Error 64
It looks like USB_ModeSwitch was built but couldn't be installed in the directory it wanted to be. A directory was created at /usr/share/usb_modeswitch but it's empty.
Installing the data package gave me the same results.
Obviously, I am new to command line basics… any help please.
Poking around in the usb_modeswitch.d folder I see that the data file for my device is present, so that's good news.
|
|
Top
|
|
|
jprokos
|
Posted: Tue Mar 15, 2011 5:36 am |
|
|
| Posts: 3Joined: Mon Mar 14, 2011 1:17 am
|
OK… on Mac's version of install the -D flag is not available, only the -d flag. Reading over their differences makes me hesitant to change anything in USB_ModeSwitch's makefile. I have no idea what to do at this point. Looking at the man page for Mac OS X 10.6.6's version of install shows exactly the same flags as in 10.4.11's version of install. Other people have installed USB_ModeSwitch on Mac, how did they get past this issue?? Is it an important difference??
|
|
Top
|
|
|
jprokos
|
Posted: Wed Mar 16, 2011 6:10 am |
|
|
| Posts: 3Joined: Mon Mar 14, 2011 1:17 am
|
No suggestions?
|
|
Top
|
|
|
Josh
|
Posted: Tue Mar 22, 2011 11:27 pm |
|
|
| Site AdminPosts: 3683Joined: Sat Nov 03, 2007 12:30 am
|
The -D flag is only about creating directories.
Everything that "install" is supposed to do you can do manually as well. Just mind that you copy the stuff to the right places.
|
|
Top
|
|
|
fry15
|
Posted: Fri Apr 15, 2011 4:52 pm |
|
|
| Posts: 1Location: Brighton, UKJoined: Fri Apr 15, 2011 4:49 pm
|
I managed to get this all setup on my mac by manually doing each install step in the make file, but i was then presented with this:
Quote: USB description data (for identification) ------------------------- Manufacturer: Huawei Incorporated Product: T-Mobile 3G Phone Serial No.: not provided ------------------------- Cant't do driver detection and detaching on this platform. Setting up communication with interface 0 ... usb_claim_interface: called for interface 0 USB error: usb_release_interface(USBInterfaceClose): device not opened for exclusive access Interface 0 of device is 0x00000143 claim_interface: Interface 0 of device from QueryInterface is 0x10015cc80 USB error: claim_interface(USBInterfaceOpen): another process has device opened for exclusive access USB error: usb_claim_interface: couldn't claim interface Could not claim interface (error -16). Skipping message sending
I'm guessing it's just not gonna work on a mac...
Did you get anywhere with it?
|
|
Top
|
|
|
Josh
|
Posted: Fri Apr 15, 2011 5:28 pm |
|
|
| Site AdminPosts: 3683Joined: Sat Nov 03, 2007 12:30 am
|
|
|
Top
|
|
|
|