Closed lootkips closed 5 years ago
I'm getting same error too
Seems like the headers you are using are from an older build.
Seems like the headers you are using are from an older build.
Great to know, but how to fix that, or how to work around?
To answer my own question: apt-get build-dep libimobiledevice apt-get source libimobiledevice apt-get install doxygen
Then download the 3 source files from the next Ubuntu Release, extract the tar.bz2 and the tar.xz into 1 folder dpkg-buildpackage -b And then install the built packages
after that the required header files are present, and the build of this repo suceeds.
You need to make sure to always use the latest libraries (libimobiledevice, etc.).
When running make on current ubuntu build getting the following error
Any suggestions? Kinda a linux noob and got libimobiledevice working to my suprise now just need to get the device activation working. Using a clone from GIT.
make make all-recursive make[1]: Entering directory '/home/ki/Desktop/libideviceactivation' Making all in src make[2]: Entering directory '/home/ki/Desktop/libideviceactivation/src' CC activation.lo CCLD libideviceactivation.la ar:
u' modifier ignored since
D' is the default (see `U') make[2]: Leaving directory '/home/ki/Desktop/libideviceactivation/src' Making all in include make[2]: Entering directory '/home/ki/Desktop/libideviceactivation/include' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/ki/Desktop/libideviceactivation/include' Making all in tools make[2]: Entering directory '/home/ki/Desktop/libideviceactivation/tools' CC ideviceactivation-ideviceactivation.o ideviceactivation.c: In function ‘main’: ideviceactivation.c:371:42: error: too many arguments to function ‘mobileactivation_activate_with_session’ if (MOBILEACTIVATION_E_SUCCESS != mobileactivation_activate_with_session(ma, record, headers)) { ^~~~~~~~~~ In file included from ideviceactivation.c:36:0: /usr/include/libimobiledevice/mobileactivation.h:176:26: note: declared here mobileactivation_error_t mobileactivation_activate_with_session(mobileactivation_client_t client, plist_t activation_record); ^~~~~~~~~~ ideviceactivation.c:452:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%1023s", input); ^~~~~~ Makefile:449: recipe for target 'ideviceactivation-ideviceactivation.o' failed make[2]: [ideviceactivation-ideviceactivation.o] Error 1 make[2]: Leaving directory '/home/ki/Desktop/libideviceactivation/tools' Makefile:424: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/ki/Desktop/libideviceactivation' Makefile:356: recipe for target 'all' failed make: *** [all] Error 2