Libmtp in windows (msys/mingw): Run problems

2019-08-16 23:23发布

Hi i need a windows port of libmtp (github_link). So i compiled libmtp under Msys/MingW Environment.

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

Can anyone can solve my problem?

In addition, where can i found prebuild versions of libmtp (libmtp-9.dll) for windows?

标签: dll mingw mtp
1条回答
做自己的国王
2楼-- · 2019-08-16 23:31

I think it is because libmtp needs libusb to connect to your device.

There are builds on the OpenSUSE Build Service

查看更多
登录 后发表回答