问题描述
我需要一个 libmtp 的Windows端口( github_link ).因此,我在Msys/MingW环境下编译了libmtp.
Hi i need a windows port of libmtp (github_link). So i compiled libmtp under Msys/MingW Environment.
构建成功,并且在构建时没有错误,但是在运行时出现错误.调用函数(LIBMTP_Get_Connecte_Devices)时,此函数的返回值为(LIBMTP_ERROR_CONNECTING).
The build is successful and i have no error on build, but in runtime i have error. When function (LIBMTP_Get_Connecte_Devices) is called, the return value of this function is (LIBMTP_ERROR_CONNECTING).
LIBMTP_mtpdevice_t* device_list;
LIBMTP_error_number_t x = LIBMTP_GET_CONNECTED_Device(&device_list);
// x = LIBMTP_ERROR_CONNECTING
谁能解决我的问题?
此外,在哪里可以找到Windows的libmtp(libmtp-9.dll)的预构建版本?
In addition, where can i found prebuild versions of libmtp (libmtp-9.dll) for windows?
推荐答案
我认为这是因为libmtp需要libusb才能连接到您的设备.
I think it is because libmtp needs libusb to connect to your device.
这篇关于Windows(msys/mingw)中的Libmtp:运行问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!