Comments (3)
Looks like you have to install libusb1-dev or whatever it is called on
debian squeeze.
On Fri, Mar 8, 2013 at 5:49 AM, vavoli [email protected] wrote:
Hi,
I was able to connect my samsung galaxy S 3 lte and with udev I can mount
and umount (both auto) with normal user. I've download go-mtpfs binary from
your site. I wasn't able to compile your package cause the following errors:go install github.com/hanwen/go-mtpfs
github.com/hanwen/go-mtpfs/usberror: 'libusb_error_name' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: 'LIBUSB_SPEED_SUPER' undeclared (first use in this function)
error: 'LIBUSB_SPEED_LOW' undeclared (first use in this function)
error: 'libusb_get_device_speed' undeclared (first use in this function)
error: 'LIBUSB_SPEED_UNKNOWN' undeclared (first use in this function)
error: 'LIBUSB_SPEED_HIGH' undeclared (first use in this function)
error: 'LIBUSB_SPEED_FULL' undeclared (first use in this function)hear is my usb-go (relevant lines)
// The usb package is a straighforward cgo wrapping of the libusb 1.0
// API. It only supports the synchronous API, since Goroutines can be
// used for asynchronous use-cases.package usb
// #cgo LDFLAGS: -lusb-1.0
// #cgo CFLAGS: -I/usr/include/libusb-1.0
// #include
import "C"import (
"fmt"
"reflect"
"unsafe"
)const SPEED_UNKNOWN = C.LIBUSB_SPEED_UNKNOWN
const SPEED_LOW = C.LIBUSB_SPEED_LOW
const SPEED_FULL = C.LIBUSB_SPEED_FULL
const SPEED_HIGH = C.LIBUSB_SPEED_HIGH
const SPEED_SUPER = C.LIBUSB_SPEED_SUPERvar SPEED_names = map[byte]string{
byte(SPEED_UNKNOWN): "UNKNOWN",
byte(SPEED_LOW): "LOW",
byte(SPEED_FULL): "FULL",
byte(SPEED_HIGH): "HIGH",
byte(SPEED_SUPER): "SUPER",
}type ControlSetup C.struct_libusb_control_setup
type Transfer C.struct_libusb_transferI'm on debian squeeze. Thanks if you can help.
Regards
Vincenzo
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/32
.
Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen
from go-mtpfs.
I am trying to build on ubuntu 11.04 and I face the same issue...
I have libusb-1.0 installed on my PC
~$ pkg-config --cflags libusb-1.0
-I/usr/include/libusb-1.0
~$ pkg-config --libs libusb-1.0
-lusb-1.0
from go-mtpfs.
I am also have this problem with my old linuxmint 11 (ubuntu natty)
from go-mtpfs.
Related Issues (20)
- cannot find package "github.com/hanwen/go-fuse/v2/fs" HOT 3
- the directory containing `libusb-1.0.pc' HOT 1
- Question: Installation HOT 1
- Cannot build on Fedora 31 HOT 1
- Errors on first read HOT 2
- cannot find package "github.com/hanwen/go-fuse/v2/fs" HOT 4
- Cannot build on Fedora 31: go get error message: libusb_set_debug is deprecated HOT 1
- Not updating file list for new files HOT 1
- Not able to list the devices. HOT 5
- Progress callback for SendObject and GetObject HOT 6
- failed to access mountpoint: Transport endpoint is not connected HOT 3
- What is the fastest way to get the total file count in a file tree?
- build fails, instructions not enough...
- Build broken for latest versions of go
- many errors
- panic: runtime error: slice bounds out of range [:-99] HOT 3
- Connection drops after a while HOT 2
- rmdir on a non-empty directory does "rm -rf" rather than fail with an error HOT 1
- Detects Samsung Galaxy A12 but "no storage device found". HOT 1
- Encrypted names
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-mtpfs.