The Following 6 Users Say Thank You to pinsh For This Useful Post: | ||
![]() |
2009-11-11
, 22:20
|
Posts: 12 |
Thanked: 23 times |
Joined on Nov 2009
@ San Francisco, CA
|
#12
|
SBOX_GROUP="sbox" RESTRICT="strip binchecks" DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier." HOMEPAGE="http://www.scratchbox.org/" SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="=dev-embedded/scratchbox-1.0*" RDEPEND="" TARGET_DIR="/opt/scratchbox" S=${WORKDIR}/scratchbox src_install() { dodir ${TARGET_DIR} cp -pRP * "${D}/${TARGET_DIR}" }
SBOX_GROUP="sbox" RESTRICT="strip binchecks" DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier." HOMEPAGE="http://www.scratchbox.org/" SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="=dev-embedded/scratchbox-1.0*" RDEPEND="" TARGET_DIR="/opt/scratchbox" S=${WORKDIR}/scratchbox src_install() { dodir ${TARGET_DIR} cp -pRP * "${D}/${TARGET_DIR}" }
ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild digest ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild digest
## maemo5 dev-embedded/scratchbox ~* dev-embedded/scratchbox-devkit-apt-https ~* dev-embedded/scratchbox-devkit-debian ~* dev-embedded/scratchbox-devkit-doctools ~* dev-embedded/scratchbox-devkit-perl ~* dev-embedded/scratchbox-devkit-qemu ~* dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5 ~* dev-embedded/scratchbox-devkit-git ~* dev-embedded/scratchbox-devkit-svn ~*
emerge -av scratchbox scratchbox-devkit-apt-https scratchbox-devkit-debian scratchbox-devkit-doctools scratchbox-devkit-perl scratchbox-devkit-qemu scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-devkit-git scratchbox-devkit-svn
sysctl abi.vsyscall32 sysctl vm.vdso_enabled sysctl kernel.vdso
sysctl abi.vsyscall32=0
abi.vsyscall32=0
/etc/init.d/scratchbox start
gpassed sbox -a YOURUSERNAME
/opt/scratchbox/sbin/sbox_adduser YOURUSERNAME
./maemo-sdk-install_5.0.sh -s /opt/scratchbox/
/opt/scratchbox/login
[sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL [sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list # add deb line stored in step 8 [sbox-FREMANTLE_ARMEL: ~] > apt-get update [sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps
[sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_X86 [sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list # add deb line stored in step 8 [sbox-FREMANTLE_X86: ~] > apt-get update [sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps
![]() |
2009-12-04
, 08:26
|
Posts: 8 |
Thanked: 0 times |
Joined on Nov 2009
@ Los Angeles, CA, USA
|
#13
|
[sbox-FREMANTLE_ARMEL: ~/MyDocs] > gcc -Wall helloworld.c -o helloworld /scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/libgcc.a when searching for -lgcc /scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status
![]() |
2009-12-08
, 21:14
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#14
|
The Following User Says Thank You to Rob1n For This Useful Post: | ||
![]() |
2009-12-09
, 08:55
|
Posts: 8 |
Thanked: 0 times |
Joined on Nov 2009
@ Los Angeles, CA, USA
|
#15
|
./compilers/cs2007q3-glibc2.5-arm7/bin/arm-none-linux-gnueabi-gcc packages/hello.c -o /tmp/helloArm ./compilers/cs2007q3-glibc2.5-i486/bin/i486-pc-linux-gnu-gcc packages/hello.c -o /tmp/helloX86
![]() |
2009-12-09
, 11:46
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#16
|
RESTRICT="strip binchecks"
![]() |
2009-12-09
, 18:01
|
Posts: 8 |
Thanked: 0 times |
Joined on Nov 2009
@ Los Angeles, CA, USA
|
#17
|
![]() |
2009-12-10
, 14:30
|
Posts: 74 |
Thanked: 142 times |
Joined on Oct 2009
@ Chicago, US
|
#18
|
![]() |
2009-12-10
, 14:32
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#19
|
![]() |
2009-12-17
, 11:10
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#20
|
I just verified everything with the beta installer :-( maybe some else can test the following with the final version. Please look at the final instructions http://wiki.maemo.org/Documentation/...K_Installation and adjust the SDK installation part below.
Here are updated instructions, please use these not the instructions above:
1. Re-emerge x11-base/xorg-server with the "kdrive" USE flag enabled, this will give you Xephyr.
2. Install app-arch/dpkg (Debian package maintenance system), this is needed by the maemo 5 SDK installer.
3. Instead of using the scratchbox installer from maemo, install scratchbox using portage. Unfortunately, scratchbox-devkit-git
and scratchbox-devkit-svn are not yet in portage, so we roll our own ebuilds (assuming PORTDIR_OVERLAY="/usr/portage/local"):
Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild and paste the following into it:
/etc/portage/package.keywords/maemo5 :
Install everything:
and where to download the installer). Install the SDK as follows:
http://wiki.maemo.org/Documentation/...K_Installation
6. Install the nokia-binaries (URL shown by the installer script, see instructions for more info)
7. Follow the instructions "2. Starting/shutting down the SDK UI", but use
Note that the versions of the scratchbox packages installed are slightly different than those installed by the maemo scratchbox installer. So far I haven't done any serious development using the SDK setup as described here nor have I tried compiling and running packages for the ARM target (unfortunately I don't have a N900 to test it).