Qt-RaspberryPiBavery

From Qt Wiki
Revision as of 17:08, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Poorly Worded and Poorly Thought Out Instructions

This has only been tested on a Fedora Core 14 host.
It should work from a Fedora Core 14 chroot on an Ubuntu host.

If you are on a large shared machine, you may want to make a fedora chroot first so you don’t conflict with your neighbors. There is a mkFedoraChroot script and readme to do this.

0) git clone ssh://leda.nrcc.noklab.com/git/mt-cross-tools

1. Make sure that ~/bin is in your path. Links to the

2. Install the core developer tools and links

3. Install the sysroot in /usr/ARCH-redhat-linux-gnueabi/sys-root

There are five scripts used for accessing the new sysroot:

1. rpm-armv5tel

Use as the normal rpm command, but executes in the sysroot. For example,

2. rpmbuild-armv5tel

3. zypper-armv5tel

4. zypper-download-armv5tel
The zypper-download script downloads RPM and SRPM packages from the sysroot repositories and copies them to your current directory. This script is a convenience to make it easy to grab the binary and source RPM files.

5. zypper-build-dep-armv5tel

As an example, let’s download and build the source code for rsync.

First, we grab the source code:

Next, we install the source code in the sysroot:
The code is now in the rpmbuild-armv5tel directory.
We try to build it.

The build fails because we’re missing some dependencies. We use zypper-build-dep
to pull those dependencies in and install them.
Now the build should work:
And the results are in ~/rpmbuild-armv5tel/RPMS and SRPMS.

Directories: