Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
sedsed
Posts: 11
Joined: 19 Jan 2013, 23:50

[SOLVED]Installing usb_modeswitch (LINUX SUSE enter. deskt.)

Post by sedsed » 24 Jan 2013, 19:06

First of all sorry but i couldnt search the forum for this topic, it sais these words occure to often. So ia had to make a new topic.

I will make it quick>

Is this ok, when i try to instll:

Code: Select all

linux-cg83:~/Desktop/nesta/usb-modeswitch-1.2.5 # make install
gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb 
usb_modeswitch.c:58:17: error: usb.h: No such file or directory
In file included from usb_modeswitch.c:59:
usb_modeswitch.h:53: warning: ‘struct usb_dev_handle’ declared inside parameter list
usb_modeswitch.h:53: warning: its scope is only this definition or declaration, which is probably not what you want
usb_modeswitch.c: In function ‘main’:
usb_modeswitch.c:417: warning: implicit declaration of function ‘usb_init’
usb_modeswitch.c:420: warning: implicit declaration of function ‘usb_set_debug’
usb_modeswitch.c:422: warning: implicit declaration of function ‘usb_find_busses’
usb_modeswitch.c:423: warning: implicit declaration of function ‘usb_find_devices’
usb_modeswitch.c:454: error: dereferencing pointer to incomplete type
usb_modeswitch.c:455: error: dereferencing pointer to incomplete type
usb_modeswitch.c:458: warning: implicit declaration of function ‘usb_open’
usb_modeswitch.c:458: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:474: warning: passing argument 1 of ‘get_current_configuration’ from incompatible pointer type
usb_modeswitch.c:481: error: dereferencing pointer to incomplete type
usb_modeswitch.c:485: error: dereferencing pointer to incomplete type
usb_modeswitch.c:628: warning: passing argument 1 of ‘get_current_configuration’ from incompatible pointer type
usb_modeswitch.c:646: warning: implicit declaration of function ‘usb_close’
usb_modeswitch.c: In function ‘deviceDescription’:
usb_modeswitch.c:709: error: dereferencing pointer to incomplete type
usb_modeswitch.c:710: warning: implicit declaration of function ‘usb_get_string_simple’
usb_modeswitch.c:710: error: dereferencing pointer to incomplete type
usb_modeswitch.c:719: error: dereferencing pointer to incomplete type
usb_modeswitch.c:720: error: dereferencing pointer to incomplete type
usb_modeswitch.c:729: error: dereferencing pointer to incomplete type
usb_modeswitch.c:730: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘deviceInquire’:
usb_modeswitch.c:762: warning: implicit declaration of function ‘usb_claim_interface’
usb_modeswitch.c:767: warning: implicit declaration of function ‘usb_clear_halt’
usb_modeswitch.c:769: warning: implicit declaration of function ‘usb_bulk_write’
usb_modeswitch.c:775: warning: implicit declaration of function ‘usb_bulk_read’
usb_modeswitch.c:802: warning: implicit declaration of function ‘usb_release_interface’
usb_modeswitch.c: In function ‘findMBIMConfig’:
usb_modeswitch.c:815: warning: implicit declaration of function ‘usb_get_busses’
usb_modeswitch.c:815: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:815: error: dereferencing pointer to incomplete type
usb_modeswitch.c:817: error: dereferencing pointer to incomplete type
usb_modeswitch.c:820: error: dereferencing pointer to incomplete type
usb_modeswitch.c:820: error: dereferencing pointer to incomplete type
usb_modeswitch.c:822: error: dereferencing pointer to incomplete type
usb_modeswitch.c:827: error: dereferencing pointer to incomplete type
usb_modeswitch.c:829: error: dereferencing pointer to incomplete type
usb_modeswitch.c:835: error: dereferencing pointer to incomplete type
usb_modeswitch.c:839: error: dereferencing pointer to incomplete type
usb_modeswitch.c:840: error: dereferencing pointer to incomplete type
usb_modeswitch.c:841: error: dereferencing pointer to incomplete type
usb_modeswitch.c:845: error: dereferencing pointer to incomplete type
usb_modeswitch.c:846: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘resetUSB’:
usb_modeswitch.c:867: warning: implicit declaration of function ‘sleep’
usb_modeswitch.c:869: warning: implicit declaration of function ‘usb_reset’
usb_modeswitch.c: In function ‘switchSendMessage’:
usb_modeswitch.c:942: warning: implicit declaration of function ‘usleep’
usb_modeswitch.c: In function ‘switchConfiguration’:
usb_modeswitch.c:965: warning: implicit declaration of function ‘usb_set_configuration’
usb_modeswitch.c: In function ‘switchAltSetting’:
usb_modeswitch.c:984: warning: implicit declaration of function ‘usb_set_altinterface’
usb_modeswitch.c: In function ‘switchHuaweiMode’:
usb_modeswitch.c:1001: warning: implicit declaration of function ‘usb_control_msg’
usb_modeswitch.c:1001: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:1001: error: (Each undeclared identifier is reported only once
usb_modeswitch.c:1001: error: for each function it appears in.)
usb_modeswitch.c:1001: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:1001: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchKobilMode’:
usb_modeswitch.c:1051: error: ‘USB_TYPE_VENDOR’ undeclared (first use in this function)
usb_modeswitch.c:1051: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:1051: error: ‘USB_ENDPOINT_IN’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘switchSonyMode’:
usb_modeswitch.c:1120: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c: In function ‘switchActionMode’:
usb_modeswitch.c:1154: error: ‘USB_TYPE_CLASS’ undeclared (first use in this function)
usb_modeswitch.c:1154: error: ‘USB_RECIP_INTERFACE’ undeclared (first use in this function)
usb_modeswitch.c:1157: warning: implicit declaration of function ‘usb_interrupt_read’
usb_modeswitch.c:1160: warning: implicit declaration of function ‘usb_interrupt_write’
usb_modeswitch.c: In function ‘switchSequansMode’:
usb_modeswitch.c:1208: error: ‘USB_TYPE_VENDOR’ undeclared (first use in this function)
usb_modeswitch.c:1208: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘detachDriver’:
usb_modeswitch.c:1284: warning: implicit declaration of function ‘usb_get_driver_np’
usb_modeswitch.c:1302: warning: implicit declaration of function ‘usb_detach_kernel_driver_np’
usb_modeswitch.c: In function ‘checkSuccess’:
usb_modeswitch.c:1402: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1407: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1407: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘search_devices’:
usb_modeswitch.c:1528: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1528: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1530: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1533: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1533: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1535: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1541: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1541: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1542: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1563: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1570: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1570: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1572: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1581: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1589: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1591: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1594: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1595: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1619: warning: assignment makes pointer from integer without a cast
usb_modeswitch.c:1620: warning: passing argument 1 of ‘get_current_configuration’ from incompatible pointer type
usb_modeswitch.c: In function ‘find_first_bulk_output_endpoint’:
usb_modeswitch.c:1650: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1653: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1654: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1655: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1655: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1655: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1656: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1656: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1657: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘find_first_bulk_input_endpoint’:
usb_modeswitch.c:1668: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1671: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1672: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1673: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1673: error: ‘USB_ENDPOINT_TYPE_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1673: error: ‘USB_ENDPOINT_TYPE_BULK’ undeclared (first use in this function)
usb_modeswitch.c:1674: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1674: error: ‘USB_ENDPOINT_DIR_MASK’ undeclared (first use in this function)
usb_modeswitch.c:1675: error: dereferencing pointer to incomplete type
usb_modeswitch.c: At top level:
usb_modeswitch.c:1682: error: conflicting types for ‘get_current_configuration’
usb_modeswitch.h:53: error: previous declaration of ‘get_current_configuration’ was here
usb_modeswitch.c: In function ‘get_current_configuration’:
usb_modeswitch.c:1687: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
usb_modeswitch.c:1687: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
usb_modeswitch.c:1687: error: ‘USB_REQ_GET_CONFIGURATION’ undeclared (first use in this function)
usb_modeswitch.c: In function ‘get_interface0_class’:
usb_modeswitch.c:1707: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1710: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1711: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1712: error: dereferencing pointer to incomplete type
usb_modeswitch.c: In function ‘get_interface_class’:
usb_modeswitch.c:1722: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1724: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1725: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1728: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1729: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1730: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1732: error: dereferencing pointer to incomplete type
usb_modeswitch.c:1733: error: dereferencing pointer to incomplete type
make: *** [usb_modeswitch] Error 1
linux-cg83:~/Desktop/nesta/usb-modeswitch-1.2.5 # 

thx fr helping
Last edited by sedsed on 26 Jan 2013, 21:02, edited 3 times in total.

sedsed
Posts: 11
Joined: 19 Jan 2013, 23:50

Re: Insstalling usb_modeswitch

Post by sedsed » 24 Jan 2013, 19:10

In Software Manager - YaST, it still says i have version 1.1.6-2.3.1

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Installing usb_modeswitch (on LINUX SUSE enterprise desk

Post by Josh » 24 Jan 2013, 20:27

I suggest you read the README contained in the source package. You need the development package of libusb.

sedsed
Posts: 11
Joined: 19 Jan 2013, 23:50

Re: Installing usb_modeswitch (on LINUX SUSE enterprise desk

Post by sedsed » 24 Jan 2013, 20:50

i fund this but im not sure which archiecture to choose>
http://packages.debian.org/sid/libusb-dev

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Installing usb_modeswitch (on LINUX SUSE enterprise desk

Post by Josh » 25 Jan 2013, 00:19

There should be a similar package (rpm) in SuSE. Don't use the one for Debian.

sedsed
Posts: 11
Joined: 19 Jan 2013, 23:50

Re: Installing usb_modeswitch (on LINUX SUSE enterprise desk

Post by sedsed » 25 Jan 2013, 01:38

nothing provides libusbpp-0_1-4 = 0.1.12 needed by libusb-devel-0.1.12-139.1.1.i586

i got the information that i have to install the SUSE SP2 SDK. After that i should be able to continue.



Thank you

sedsed
Posts: 11
Joined: 19 Jan 2013, 23:50

Re: Installing usb_modeswitch (on LINUX SUSE enterprise desk

Post by sedsed » 26 Jan 2013, 21:00

I installed the libusb-devel and now it works.
The solution is here:
http://www.draisberghof.de/usb_modeswit ... f=4&t=1266

Thank you

Post Reply