SkywalkerSW5
Posts: 80
Joined: Fri Apr 19, 2019 3:54 pm

Keep getting error while trying to compile idevicerestore

Mon Nov 04, 2019 10:14 pm

Hello

I am trying to compile idevicerestore, and have done so successfully until i run make.

Every time I run make, I get this:

Code: Select all

make  all-recursive
make[1]: Entering directory '/home/pi/Downloads/idevicerestore-master'
Making all in src
make[2]: Entering directory '/home/pi/Downloads/idevicerestore-master/src'
  CC       idevicerestore-idevicerestore.o
  CC       idevicerestore-common.o
  CC       idevicerestore-tss.o
  CC       idevicerestore-fls.o
  CC       idevicerestore-mbn.o
  CC       idevicerestore-img3.o
  CC       idevicerestore-img4.o
  CC       idevicerestore-ipsw.o
  CC       idevicerestore-normal.o
  CC       idevicerestore-dfu.o
  CC       idevicerestore-recovery.o
  CC       idevicerestore-restore.o
  CC       idevicerestore-asr.o
  CC       idevicerestore-limera1n.o
  CC       idevicerestore-download.o
  CC       idevicerestore-locking.o
  CCLD     idevicerestore
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:456: idevicerestore] Error 1
make[2]: Leaving directory '/home/pi/Downloads/idevicerestore-master/src'
make[1]: *** [Makefile:419: all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Downloads/idevicerestore-master'
make: *** [Makefile:351: all] Error 2
Can anyone tell me how to not get an error message?
Random dude. Likes dogs. And Linux. Complete NOOB.

trejan
Posts: 1114
Joined: Tue Jul 02, 2019 2:28 pm

Re: Keep getting error while trying to compile idevicerestore

Mon Nov 04, 2019 10:27 pm

sudo apt install libx11-dev

SkywalkerSW5
Posts: 80
Joined: Fri Apr 19, 2019 3:54 pm

Re: Keep getting error while trying to compile idevicerestore

Mon Nov 04, 2019 10:29 pm

trejan wrote:
Mon Nov 04, 2019 10:27 pm
sudo apt install libx11-dev
Installed, but says same thing.
Random dude. Likes dogs. And Linux. Complete NOOB.

trejan
Posts: 1114
Joined: Tue Jul 02, 2019 2:28 pm

Re: Keep getting error while trying to compile idevicerestore

Mon Nov 04, 2019 10:39 pm

Are you using the desktop version of Raspbian?

What does "ls -al /usr/lib/arm-linux-gnueabihf/libX11*" say?

SkywalkerSW5
Posts: 80
Joined: Fri Apr 19, 2019 3:54 pm

Re: Keep getting error while trying to compile idevicerestore

Mon Nov 04, 2019 10:45 pm

trejan wrote: Are you using the desktop version of Raspbian?

What does "ls -al /usr/lib/arm-linux-gnueabihf/libX11*" say?
I am using Raspbian Lite with MATE.

Here is the output:

Code: Select all

-rw-r--r-- 1 root root 1664468 Oct  9  2018 /usr/lib/arm-linux-gnueabihf/libX11.a
lrwxrwxrwx 1 root root      15 Oct  9  2018 /usr/lib/arm-linux-gnueabihf/libX11.so -> libX11.so.6.3.0
lrwxrwxrwx 1 root root      15 Oct  9  2018 /usr/lib/arm-linux-gnueabihf/libX11.so.6 -> libX11.so.6.3.0
-rw-r--r-- 1 root root 1120968 Oct  9  2018 /usr/lib/arm-linux-gnueabihf/libX11.so.6.3.0
lrwxrwxrwx 1 root root      19 Oct  9  2018 /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 -> libX11-xcb.so.1.0.0
-rw-r--r-- 1 root root    5368 Oct  9  2018 /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1.0.0
Random dude. Likes dogs. And Linux. Complete NOOB.

SkywalkerSW5
Posts: 80
Joined: Fri Apr 19, 2019 3:54 pm

Re: Keep getting error while trying to compile idevicerestore

Mon Nov 04, 2019 11:22 pm

I tried compiling the official idevicerestore, but got this:

Code: Select all

make  all-recursive
make[1]: Entering directory '/home/pi/idevicerestore'
Making all in src
make[2]: Entering directory '/home/pi/idevicerestore/src'
  CC       idevicerestore-normal.o
normal.c:31:10: fatal error: libimobiledevice/preboard.h: No such file or directory
 #include <libimobiledevice/preboard.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:665: idevicerestore-normal.o] Error 1
make[2]: Leaving directory '/home/pi/idevicerestore/src'
make[1]: *** [Makefile:433: all-recursive] Error 1
make[1]: Leaving directory '/home/pi/idevicerestore'
make: *** [Makefile:365: all] Error 2
Random dude. Likes dogs. And Linux. Complete NOOB.

Return to “General discussion”