Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idevicebackup does not build #2

Open
KocherTech opened this issue Jul 4, 2013 · 9 comments
Open

idevicebackup does not build #2

KocherTech opened this issue Jul 4, 2013 · 9 comments

Comments

@KocherTech
Copy link

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
Copy link
Owner

storoj commented Jul 4, 2013

please checkout my fix

@KocherTech
Copy link
Author

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
Copy link
Owner

storoj commented Jul 5, 2013

yes, you should use idevicebackup2
i will port it asap

@KocherTech
Copy link
Author

Hi,

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

@storoj
Copy link
Owner

storoj commented Jul 10, 2013

Hi

just made it compilable, please check it out

@KocherTech
Copy link
Author

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

@KocherTech
Copy link
Author

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
Copy link

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

@chauhanakhil
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants