libimobiledevice-win32 icon indicating copy to clipboard operation
libimobiledevice-win32 copied to clipboard

idevicebackup does not build

Open KocherTech opened this issue 11 years ago • 9 comments

When I build idevicebackup project, it shows errors such as


Error 1 error C1083: Cannot open include file: 'libcompat.h': No such file or directory c:\users\abc\documents\visual studio 2012\projects\libimobiledevice-win32-master\libimobiledevice-tools\idevicebackup\idevicebackup.cpp 48 1 idevicebackup

Fixing the above error generates new errors such as


3 IntelliSense: identifier "usleep" is undefined c:\Users\abc\Documents\Visual Studio 2012\Projects\libimobiledevice-win32-master\libimobiledevice-tools\idevicebackup\idevicebackup.cpp 1044 6 idevicebackup

Trying to fix all errors still fails the build. Need help over this.

PS: I'm using Visual Studio 2012 to build

KocherTech avatar Jul 04 '13 06:07 KocherTech

please checkout my fix

storoj avatar Jul 04 '13 11:07 storoj

Thanks for the commit. The code compiles without error but when I execute it I get an error dialog and it crashes. I've attached the screenshot of the error and below is the command I'm trying to execute.

idevicebackup.exe backup "C:\Users\abc\Desktop\AddressBook"

Also I noticed that the similar code that compiles and runs perfectly on UNIX based systems has another version of idevicebackup i.e. idevicebackup2 (refer here http://www.libimobiledevice.org/)

capture

KocherTech avatar Jul 05 '13 11:07 KocherTech

yes, you should use idevicebackup2 i will port it asap

storoj avatar Jul 05 '13 12:07 storoj

Hi,

Wanted to know if you've got a chance to port idevicebackup2 to Win32

KocherTech avatar Jul 10 '13 06:07 KocherTech

Hi

just made it compilable, please check it out

storoj avatar Jul 10 '13 09:07 storoj

Thanks a lot. I'll check and let you know.

KocherTech avatar Jul 11 '13 05:07 KocherTech

The code compiles and executes as required. The issue I find right now is that it doesn't build in the Release mode. It throws errors. I edited the release configuration by setting the changes as below. A few errors are fixed but there're many more errors. Can you please try compiling the code in Release mode to see the errors?

Changes till now: "Additional Include Directories" in "General" under C/C++ "Compile As" in Advanced under C/C++

KocherTech avatar Jul 11 '13 11:07 KocherTech

i am facing the problem : 6>LINK : fatal error LNK1104: cannot open file 'libcompat.lib'

chauhanakhil avatar Aug 26 '14 10:08 chauhanakhil

please show me how to get 'libcompat.lib".

chauhanakhil avatar Aug 26 '14 10:08 chauhanakhil