build on Mint
This commit is contained in:
commit
e856283c48
4 changed files with 109 additions and 16 deletions
|
|
@ -1,6 +1,7 @@
|
|||
Backporting to older platforms
|
||||
==============================
|
||||
:Date: 8/2015
|
||||
:Date: 11/2015
|
||||
:toc:
|
||||
|
||||
GCC-4.9
|
||||
-------
|
||||
|
|
@ -59,4 +60,83 @@ sudo update-alternatives --config gcc
|
|||
----
|
||||
|
||||
|
||||
Building on Mint 17.2 (Rafaela) -- gcc and Libstdc++ 4.9
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Since Mint is based on Ubuntu LTS, we're facing pretty much the same situation here.
|
||||
But what makes matters yet more confusing is the fact, that Mint offers even a Clang-3.6
|
||||
package, which is _unfortunately_ built to rely on the gcc-4.8 libraries; there is a known
|
||||
header inclusion bug in these libraries, which kicks in as soon as we switch to C++14.
|
||||
|
||||
Thus it is _mandatory_ to install the gcc-4.9 from above mentioned Ubuntu-Toolchain PPA,
|
||||
which is indeed linked against the 4.9 libraries. Stay away from Clang on Mint for now!
|
||||
|
||||
Transcript from a build session on a ``pristine'' Mint 17.2 installation:
|
||||
|
||||
* add the following to your `/etc/apt/sources.list`
|
||||
+
|
||||
----
|
||||
deb http://lumiera.org/debian/ rafaela experimental
|
||||
deb-src http://lumiera.org/debian/ rafaela experimental
|
||||
----
|
||||
|
||||
* install _Ichthyo's_ DEB signing key
|
||||
+
|
||||
----
|
||||
gpg --keyserver keyserver.ubuntu.com --recv A1DE94B2
|
||||
gpg --export -a A1DE94B2 | sudo apt-key add -
|
||||
----
|
||||
|
||||
* prepare build environment
|
||||
+
|
||||
----
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
sudo apt-get update
|
||||
sudo apt-get install build-essential gcc-4.9 g++-4.9 git-core
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 \
|
||||
--slave /usr/bin/g++ g++ /usr/bin/g++-4.9
|
||||
|
||||
sudo apt-get build-dep lumiera
|
||||
----
|
||||
+
|
||||
after that, your system is prepared for building Lumiera
|
||||
|
||||
* now build
|
||||
|
||||
* either by (re)compiling the debian package
|
||||
+
|
||||
----
|
||||
apt-get source lumiera
|
||||
cd lumiera
|
||||
dpkg-buildpackage
|
||||
----
|
||||
|
||||
* or check out the source and hack away...
|
||||
+
|
||||
----
|
||||
git clone git://git.lumiera.org/LUMIERA
|
||||
cd LUMIERA
|
||||
|
||||
patch -p1 << EOF
|
||||
--- lumiera-0.pre.03.orig/admin/scons/Platform.py
|
||||
+++ lumiera-0.pre.03/admin/scons/Platform.py
|
||||
@@ -120,7 +120,7 @@ def configure(env):
|
||||
if not conf.CheckPkgConfig('cairomm-1.0', 0.6):
|
||||
problems.append('Unable to configure Cairo--')
|
||||
|
||||
- verGDL = '3.12'
|
||||
+ verGDL = '3.8' # NOTE: lowered requriements here (was originally '3.12')
|
||||
verGDLmm = '3.7.3'
|
||||
urlGDLmm = 'http://ftp.gnome.org/pub/GNOME/sources/gdlmm/'
|
||||
urlGDLmmDEB = 'http://lumiera.org/debian/'
|
||||
EOF
|
||||
|
||||
scons CC=gcc-4.9 CXX=g++-4.9
|
||||
----
|
||||
+
|
||||
...as usual, from this point on, the compiler setting will be remembered in the file
|
||||
`optcache`, so no need to repeat it for subsequent `scons` invocations.
|
||||
|
||||
TIP: Just run `scons` for standard build or run the testsuite with `scons check`.
|
||||
Use the switch `-j#` with # corresponding to the number of your cores.
|
||||
Probably you'll need at least 2GB of memory on AMD64, to build with `-j6`
|
||||
|
||||
|
|
|
|||
|
|
@ -79,6 +79,11 @@ libgavl-dev libgtkmm-3.0-dev libgdl-3-dev librsvg2-dev libxv-dev
|
|||
Ubuntu note::
|
||||
some people reported you need to install the `intltool` package from the standard
|
||||
Ubuntu repository (for this reason it is included in the above collection)
|
||||
Mint-17.2 (Rafaela) and Ubuntu 12.LTS note::
|
||||
We really need the gcc-4.9, so building on these platforms is a bit tricky. See our
|
||||
link:{ldoc}/technical/howto/backporting.html#_building_on_mint_17_2_rafaela_8201_8212_8201_gcc_and_libstdc_4_9[»Backporting«]
|
||||
page for detailed info...
|
||||
|
||||
|
||||
|
||||
Build Directory
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ fact, many user interfaces should be possible.
|
|||
- The initial GUI on which considerable work has already been done has been
|
||||
implemented using the GTK toolkit. However, considerable more work needs to be
|
||||
done on this present GUI.
|
||||
- the stylesheet has been roughly ported to GTK-3, but needs a lot more polishing
|
||||
- we urgently need conceptual (non-coding) contributions
|
||||
|
||||
* work out a coherent UI handling concept, in accordance with model and core
|
||||
|
|
|
|||
|
|
@ -2842,20 +2842,6 @@
|
|||
</html>
|
||||
</richcontent>
|
||||
<icon BUILTIN="full-7"/>
|
||||
<node CREATED="1446482059173" ID="ID_101470007" MODIFIED="1446482153165">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<font color="#d1013e">totmachen</font>: Debian/Wheezy (stable) : i386 and x86_64 deprecated: to be discontinued
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<icon BUILTIN="messagebox_warning"/>
|
||||
</node>
|
||||
<node CREATED="1446482059174" ID="ID_1294670881" MODIFIED="1446482105272">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
|
@ -2874,7 +2860,9 @@
|
|||
</node>
|
||||
<node CREATED="1446482059174" ID="ID_1906801117" MODIFIED="1446482059174" TEXT="Ubuntu/Vivid (15.04) : i386 (planned)"/>
|
||||
<node CREATED="1446482059175" ID="ID_1107419581" MODIFIED="1446482059175" TEXT="Ubuntu/Wily (15.10) : x86_64 (planned)"/>
|
||||
<node CREATED="1446482059175" ID="ID_904094860" MODIFIED="1446482059175" TEXT="Mint/Rafaela (17.2.LTS) : x86_64 (planned)"/>
|
||||
<node CREATED="1446482059175" ID="ID_904094860" MODIFIED="1446686512777" TEXT="Mint/Rafaela (17.2.LTS) : x86_64 (planned)">
|
||||
<icon BUILTIN="button_ok"/>
|
||||
</node>
|
||||
<node CREATED="1446482249336" ID="ID_1088469455" MODIFIED="1446482274886" TEXT="Web/Doku aktualisieren">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
|
@ -2889,6 +2877,25 @@
|
|||
</richcontent>
|
||||
<icon BUILTIN="messagebox_warning"/>
|
||||
</node>
|
||||
<node CREATED="1446589479832" ID="ID_1851762530" MODIFIED="1446589486970" TEXT="alte Repos wegwerfen">
|
||||
<node CREATED="1446589487798" ID="ID_1080472422" MODIFIED="1446589494881" TEXT="Lumi-Depot: Wheezy"/>
|
||||
<node CREATED="1446589495445" ID="ID_1083044545" MODIFIED="1446589501064" TEXT="VBox Wheezy">
|
||||
<node CREATED="1446482059173" ID="ID_101470007" MODIFIED="1446482153165">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<font color="#d1013e">totmachen</font>: Debian/Wheezy (stable) : i386 and x86_64 deprecated: to be discontinued
|
||||
</p>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<icon BUILTIN="messagebox_warning"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1446589502132" ID="ID_271504207" MODIFIED="1446589507863" TEXT="VBox Mint Quiana"/>
|
||||
</node>
|
||||
<node CREATED="1446481892624" ID="ID_1020531472" MODIFIED="1446482073185" TEXT="Ticket schließen">
|
||||
<font BOLD="true" NAME="SansSerif" SIZE="12"/>
|
||||
</node>
|
||||
|
|
|
|||
Loading…
Reference in a new issue