Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
We have moved to a new forum at http://jevois.usc.edu, please check it out. The forum at jevois.org/qa will not allow new user registrations but is maintained alive for its useful past questions and answers.

build.sh error

0 votes

Managed to follow the easy install and got the host and platform jevois & jevoisbase built and jevois-daemon working. But trying now to run flash an image, running jevois-build.sh in jevois-sdk I get a libfakeroot.so error in build.sh. 

....

....

chmod a+x /home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/build/_fakeroot.fs
PATH="/home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/bin:/home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/sbin:/home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/usr/bin:/home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/usr/sbin:/home/ali/bin:/home/ali/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/usr/bin/fakeroot -- /home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/build/_fakeroot.fs
fakeroot: preload library `libfakeroot.so' not found, aborting.
fs/ext2/ext2.mk:46: recipe for target '/home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/images/rootfs.ext2' failed
make: *** [/home/ali/jevois_src/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/images/rootfs.ext2] Error 1
make: Leaving directory '/home/ali/jevois_src/jevois-sdk/buildroot'
ERROR: build buildroot Failed

Any quick clue as two why? I did place all the folders inside one folder and setup the environment correctly. Could it be that the sdk libraries have static links? I did move jevois-sdk to ${HOME}/ and I get the same error as above. Also, the file libfakeroot.so is available in /jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/usr/lib/

asked Mar 21, 2017 in Programmer Questions by alsaibie (740 points)

1 Answer

0 votes
 
Best answer

can you try to add its location to your LD_LIBRARY_PATH, for example

export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:~/jevois-sdk/out/sun8iw5p1/linux/common/buildroot/host/usr/lib

(all in one line). Not sure why it is not being found on your machine.

answered Mar 21, 2017 by JeVois (46,580 points)
selected Mar 22, 2017 by alsaibie
I did try that. Didn't Help. I built the sdk from scratch and now I can compile and flash everything. It must had to do with changing src directory.
thanks for letting us know, this may also have to do with compiling the SDK on one machine (ours) and then trying to use it on another (yours). Maybe everybody will have to go through the daylong SDK-from-source experience...
Here are two temporary fixes. As noted here and in other threads, problems arise because the user name (ilab) that we used to precompile many of the files in the jevois-sdk gets hardwired into some scripts, libraries, etc which then fail when another user is attempting to build a microSD image.

Option 1: Create a user named ‘ilab’ on your linux box, and run the easy install in that user’s account. You should be able to follow the EASY INSTALL OPTION of https://github.com/jevois/jevois/blob/master/INSTALL and get everything setup and be able to flash new microSD cards.

Option 2: This takes a while to run and does require some manual intervention, but all steps are outlined and should be easy to follow. Basically, you will rebuild the JeVois operating system partially from scratch, which will eliminate the dependence on the hardcoded user name.

cd ~/jevois-sdk
rm -rf out

and then follow the instructions starting at line 302 of https://github.com/jevois/jevois/blob/master/INSTALL

We just tested it here using a different username and it worked fine. We will try to find a better solution soon. Maybe not all of the out/ directory has to be nuked.
I forgot, make sure you also rebuild jevois and jevoisbase since they got nuked in the process:

cd ~/jevois && git pull && ./rebuild-platform.sh
cd ~/jevoisbase && git pull && ./rebuild-platform.sh -DJEVOIS_MODULES_TO_BUILDROOT=ON
cd ~/jevois-sdk && git pull && ./jevois-build.sh -y /dev/sdX
...