gcc7 patch for Digikam

revised README-Raspberry-Pi3.md
pull/7/head
Ray-V 7 years ago
parent 8f1b5e4ceb
commit 811055bbeb

@ -33,6 +33,32 @@ getsource_fn
untar_fn untar_fn
## fix for gcc7:
##In file included from ../../../../../digikam/imageplugins/coreplugin/sharpnesseditor/matrix.cpp:35:0:
##/usr/include/stdlib.h:751:12: error: expected unqualified-id before int
## extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
## ^
echo '--- digikam/imageplugins/coreplugin/sharpnesseditor/clapack/f2c.h
+++ digikam/imageplugins/coreplugin/sharpnesseditor/clapack/f2c.h
@@ -157 +156,0 @@
-#define abs(x) ((x) >= 0 ? (x) : -(x))
--- digikam/imageplugins/coreplugin/sharpnesseditor/matrix.cpp
+++ digikam/imageplugins/coreplugin/sharpnesseditor/matrix.cpp
@@ -32,0 +33,5 @@
+// C++ includes.
+#include <stdlib.h>
+#include <cmath>
+using ::abs;
+
@@ -38,4 +42,0 @@
-
-// C++ includes.
-
-#include <cmath>' | while read line
do
patch -p0
done
listdocs_fn listdocs_fn
# set support for additional language(s) as per I18N variable # set support for additional language(s) as per I18N variable

@ -4,21 +4,20 @@ BUILD-TDE.sh has been set up with an option to build TDE on the Raspberry Pi3, w
All packages build on Slackware current, but because the gcc version is 7.x.x, there have been a number of patches to the source code. Building on Slackware 14.2 has not been completely tested. All packages build on Slackware current, but because the gcc version is 7.x.x, there have been a number of patches to the source code. Building on Slackware 14.2 has not been completely tested.
Build times are as shown, with the number of parallel jobs set at 8, and with one internationalization locale being included. The build was run with the top off the Pi casing, and the cpu temperature generally remained below 80 °C, occasionally peaking at about [82.5 °C](https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md) without heatsinks. All four cpus ran @ 1200MHz [4]. Build times are as shown, with the number of parallel jobs set at 8 [1], and with one internationalization locale being included. The build was run with the top off the Pi casing, and the cpu temperature generally remained below 80 °C, occasionally peaking at about 82.5 °C without heatsinks. All four cpus ran @ 1200MHz [2].
<hr> <hr>
[1]
inkscape froze the Pi with anything other than -j1, and was therefore built separately with that number. [1] This may not be the optimum. Based on a sample, builds may be quicker or slower at -j6, some with little difference at -j4, so YMMV. I assume this is because performance is degraded at temperatures in excess of [80 °C](https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md)
[2] [2]
Digikam build failed with gcc-7.x.x, and was built with gcc-5.4.0 on current. Hopefully, a solution to TDE bug [2832](http://bugs.pearsoncomputing.net/show_bug.cgi?id=2832) will eventually be available. `echo ondemand > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor` if needed.
[3] [3]
Avahi-tqt needs non-Slackware libdaemon and avahi packages installed, and these can be built on the Pi from the SlackBuilds.org scripts. Avahi-tqt needs libdaemon and avahi packages installed, and these can be built on the Pi from the SlackBuilds.org scripts.
[4] [4]
`echo ondemand > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor` if needed. inkscape needs too much memory for a build with more than one make process, and using swap slows the build, so the build was done with 'make -j1'.
**Build times** **Build times**
@ -62,12 +61,12 @@ tde-i18n 13:42
GraphicsMagick 7:08 GraphicsMagick 7:08
abakus 1:05 abakus 1:05
avahi-tqt [3] 2:16 avahi-tqt [3] 2:16
digikam [2] 32:17 digikam 32:17
dolphin 1:18 dolphin 1:18
graphviz 21:36 graphviz 21:36
gtk-qt-engine 46 gtk-qt-engine 46
gtk3-tqt-engine 2:35 gtk3-tqt-engine 2:35
inkscape 3:11:11 [1] inkscape 3:11:11 [4]
k9copy 5:27 k9copy 5:27
kaffeine 6:28 kaffeine 6:28
kbfx 2:03 kbfx 2:03

Loading…
Cancel
Save