The Following 10 Users Say Thank You to toojays For This Useful Post: | ||
|
2015-05-11
, 00:51
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#2
|
The Following User Says Thank You to endsormeans For This Useful Post: | ||
|
2015-05-13
, 21:31
|
Posts: 22 |
Thanked: 51 times |
Joined on Sep 2009
@ offshore UK
|
#3
|
The Following 2 Users Say Thank You to vectis For This Useful Post: | ||
|
2015-05-19
, 17:48
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#4
|
The Following User Says Thank You to endsormeans For This Useful Post: | ||
|
2015-05-21
, 12:18
|
Posts: 14 |
Thanked: 36 times |
Joined on Dec 2009
@ Adelaide, Australia
|
#5
|
I'd prefer to have scratchless development if possible for us all...
consequently I have done some digging..because I remembered seeing something very specific..after hunting..found this:
http://rbelem.info/2010/01/14/maemo-...ut-scratchbox/
haven't tried it yet for fremantle..it has been 5 years since this post....hopefully it ends up being snarl-free.
If it is feasible to adapt instructions to diablo and bora (for 770 hacker edition 2007) then this would be a huge headache gone.
|
2015-05-21
, 15:14
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#6
|
|
2015-05-21
, 23:04
|
Posts: 22 |
Thanked: 51 times |
Joined on Sep 2009
@ offshore UK
|
#7
|
What do you want to do with this environment? Actually run graphical applications? Or just build packages?
The Following User Says Thank You to vectis For This Useful Post: | ||
|
2015-05-21
, 23:31
|
Posts: 22 |
Thanked: 51 times |
Joined on Sep 2009
@ offshore UK
|
#8
|
The Following User Says Thank You to vectis For This Useful Post: | ||
|
2015-05-22
, 01:17
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#9
|
Tags |
gcc-5, maemo 4 |
Thread Tools | |
|
With this update, I'm providing the rootstrap in a separate package to the compiler. There's also an additional package to make it easy to install additional development packages into the rootstrap.
Here's a quick walkthrough describing how to get started with this toolchain. First we'll install the compiler and make a trivial "Hello world" console program. Then we'll install gtkmm development libraries, and build a minimal gtkmm program. Familiarity with GCC, C++, make and apt-get is assumed.
1. Add the repository and install GCC.
Add a new apt source with the following repository:
The compiler installs under /opt/diablo/gcc-5/bin, and the binary names are all prefixed with arm-none-linux-gnueabi-. Let's compile a trivial program just to check that we can make working binaries.
The diablo-root package (which was installed as a pre-requisite when we installed diablo-gcc-5) contains a development sysroot, installed at /opt/diablo/root. Initially this only contains the very basics - the standard C and C++ libraries. To compile a graphical application, we're going to need more development libraries.
I've made a diablo-package-tools package which helps here. This package contains versions of apt-get and dpkg which can be used to install Diablo packages into our sysroot.
Let's install the gtkmm development packages into our sysroot:
For the purpose of the next example, you need pkg-config and make installed on your host system. Use apt-get to install those if you don't already have them.
This is about the simplest gtkmm program which does something:
A future improvement to this toolchain would be to integrate it with tools for creating deb packages which can be installed on the N800.
For now, I'm happy with being able to compile C++11 binaries and not having to mess around with scratchbox. I'd be interested to know if this toolchain is useful to anyone else.