LuigiDC
Posts: 2
Joined: Sun Nov 25, 2012 5:55 pm

Cross-Compiler SB2:Can't create temporary cache file /etc/l

Sun Nov 25, 2012 6:48 pm

Hello to Everyone,
I'm new to this Board and also a beginner with the Rasp & Linux. I found a lot of good information in this great community for RP and i thought to improve my knowledge with linux and RP. After i compiled some programms under the RP i tried out to configure a cross-compiler to speed up this process. I read a lot of howtos and readmes. I achieved to install Scratchbox2 with Qemu under Ubuntu and also NFS for the RP bootup process.

I tried now to install some requiered packages for compiling xbmc with

Code: Select all

sb2 -eR apt-get -y install autoconf libboost-dev libass-dev libmpeg2-4-dev libmad0-dev libjpeg-dev libsamplerate0-dev libogg-dev libvorbis-dev libmodplug-dev libcurl4-gnutls-dev libflac-dev libmysqlclient-dev libbz2-dev libtiff4-dev libssl-dev libssh-dev libsmbclient-dev libyajl-dev libfribidi-dev libsqlite3-dev libpng12-dev libpcre3-dev libpcrecpp0 libcdio-dev libiso9660-dev libfreetype6-dev libjasper-dev libmicrohttpd-dev python-dev python-sqlite libplist-dev libavahi-client-dev libtinyxml-dev libstdc++6-4.7-dev libgcrypt-dev nfs-common
under the scratchbox-environment without success.
I'm getting for every package the error:

Code: Select all

/home/luigi/RaspberryPi/devel/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: No such file or directory
Return Error code 1
But under ~/RaspberryPi/devel//etc/ ld.so.cache is existent.

I read the readme to ldconfig but until now i dont understand how all this folders works together and how i know which of the libs the compiler and linker is using in the environment.
I tried to edit

Code: Select all

~/RaspberryPi/devel/etc/ld.so.conf.d/arm-linux-gnueabihf.conf 
~/RaspberryPi/devel/etc/ld.so.conf.d/libc.conf 
 /etc/ld.so.conf
with adding e.g ~/RaspberryPi/devel/ without success.

I also executed

Code: Select all

sb2 -eR /sbin/ldconfig -v
sb2 -eR /sbin/ldconfig -n

under my ~/RaspberryPi/devel folder without success. I don't know what else to do that the compiler usees the right folders. :roll:
A normal execution of

Code: Select all

 sb2 -eR apt-get update
works fine.
I would be thankful for every hint or help.

LuigiDC
Posts: 2
Joined: Sun Nov 25, 2012 5:55 pm

Re: Cross-Compiler SB2:Can't create temporary cache file /et

Mon Nov 26, 2012 4:57 pm

Ok, i got it.
It was a simple step. Used
chmod -R 777 *
to the complete file directory "devel" and it worked.

Return to “General programming discussion”