Libmtp in windows (msys/mingw): Run problems

邮差的信 提交于 2019-12-11 16:15:37

问题


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?


回答1:


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

There are builds on the OpenSUSE Build Service



来源:https://stackoverflow.com/questions/52801967/libmtp-in-windows-msys-mingw-run-problems

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!