storoj / libimobiledevice-win32

win32 port of libimobiledevice (http://libimobiledevice.org)
64 stars 61 forks source link

idevicebackup does not build #2

Open KocherTech opened 11 years ago

KocherTech commented 11 years ago

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

storoj commented 11 years ago

please checkout my fix

KocherTech commented 11 years ago

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

storoj commented 11 years ago

yes, you should use idevicebackup2 i will port it asap

KocherTech commented 11 years ago

Hi,

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

storoj commented 11 years ago

Hi

just made it compilable, please check it out

KocherTech commented 11 years ago

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

KocherTech commented 11 years ago

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++

chauhanakhil commented 10 years ago

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

chauhanakhil commented 10 years ago

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