LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current (https://www.linuxquestions.org/questions/slackware-arm-108/compilation-error-with-slackbuild-qt5-5-9-7-and-slackwarearm-current-4175653264/)

jowski 05-03-2019 01:02 PM

compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current
 
I'm trying to use the slackbuild for qt5 (5.9.7) on a slackwareARM-current (as of Apr 24, 2019) and it won't compile.


The errors are:

ERROR: Feature 'openssl-linked' was enabled, but the pre-condition '!features.securetransport && libs.openssl' failed.

ERROR: Feature 'openssl' was enabled, but the pre-condition '!features.securetransport && (features.openssl-linked || libs.openssl_headers)' failed.


The command line is: CCACHE=yes PROPRIETARY_CODECS=yes WEBENGINE=no ./qt5.SlackBuild


Configure summary:

Build type: linux-g++ (arm, CPU features: <none>)
Configuration: ccache compile_examples enable_new_dtags largefile nostrip shared release c++11 concurrent dbus reduce_exports stl
Build options:
Mode ................................... release
Optimize release build for size ........ no
Building shared libraries .............. yes
Using C++ standard ..................... C++11
Using ccache ........................... yes
Using gold linker ...................... no
Using new DTAGS ........................ yes
Using precompiled headers .............. no
Using LTCG ............................. no
Target compiler supports:
NEON ................................. no
Build parts ............................ libs tools
Qt modules and options:
Qt Concurrent .......................... yes
Qt D-Bus ............................... yes
Qt D-Bus directly linked to libdbus .... yes
Qt Gui ................................. yes
Qt Network ............................. yes
Qt Sql ................................. yes
Qt Testlib ............................. yes
Qt Widgets ............................. yes
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... yes
QML debugging .......................... yes
udev ................................... yes
Using system zlib ...................... yes
Qt Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... yes
iconv .................................. no
ICU .................................... yes
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
Using system PCRE2 ..................... yes
Qt Network:
getaddrinfo() .......................... yes
getifaddrs() ........................... yes
IPv6 ifname ............................ yes
libproxy ............................... no
OpenSSL ................................ no
Qt directly linked to OpenSSL ........ no
SCTP ................................... no
Use system proxies ..................... yes
Qt Gui:
Accessibility .......................... yes
FreeType ............................... yes
Using system FreeType ................ yes
HarfBuzz ............................... yes
Using system HarfBuzz ................ yes
Fontconfig ............................. yes
Image formats:
GIF .................................. yes
ICO .................................. yes
JPEG ................................. yes
Using system libjpeg ............... yes
PNG .................................. yes
Using system libpng ................ yes
EGL .................................... yes
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... yes
OpenGL ES 2.0 ........................ no
OpenGL ES 3.0 ........................ no
OpenGL ES 3.1 ........................ no
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. yes
libinput ............................... yes
INTEGRITY HID .......................... no
mtdev .................................. yes
tslib .................................. no
xkbcommon-evdev ........................ yes
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... yes
EGLFS GBM ............................ yes
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
EGL on X11 ........................... yes
LinuxFB ................................ yes
VNC .................................... yes
Mir client ............................. no
X11:
Using system-provided XCB libraries .. yes
EGL on X11 ........................... yes
Xinput2 .............................. yes
XCB XKB .............................. yes
XLib ................................. yes
XCB render ........................... yes
XCB GLX .............................. yes
XCB Xlib ............................. yes
Using system-provided xkbcommon ...... yes
Qt Widgets:
GTK+ ................................... yes
Styles ................................. Fusion Windows
Qt PrintSupport:
CUPS ................................... yes
Qt Sql:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. yes
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... yes
TDS (Sybase) ........................... no
Qt SerialBus:
Socket CAN ............................. yes
Socket CAN FD .......................... yes
QtXmlPatterns:
XML schema support ..................... yes
Qt QML:
QML interpreter ........................ yes
QML network support .................... yes
Qt Quick:
Direct3D 12 ............................ no
AnimatedImage item ..................... yes
Canvas item ............................ yes
Support for Qt Quick Designer .......... yes
Flipable item .......................... yes
GridView item .......................... yes
ListView item .......................... yes
Path support ........................... yes
PathView item .......................... yes
Positioner items ....................... yes
ShaderEffect item ...................... yes
Sprite item ............................ yes
Qt Gamepad:
SDL2 ................................... yes
Qt 3D:
Assimp ................................. yes
System Assimp .......................... no
Output Qt3D Job traces ................. no
Output Qt3D GL traces .................. no
Qt 3D GeometryLoaders:
Autodesk FBX ........................... no
Qt Wayland Client ........................ no
Qt Wayland Compositor .................... no
Qt Bluetooth:
BlueZ .................................. yes
BlueZ Low Energy ....................... yes
Linux Crypto API ....................... yes
Qt Sensors:
sensorfw ............................... no
Qt Quick Controls 2:
Styles ................................. Default Material Universal
Qt Quick Templates 2:
Hover support .......................... yes
Multi-touch support .................... yes
Qt Positioning:
Gypsy GPS Daemon ....................... no
WinRT Geolocation API .................. no
Qt Location:
Geoservice plugins:
OpenStreetMap ........................ yes
HERE ................................. yes
Esri ................................. yes
Mapbox ............................... yes
MapboxGL ............................. no
Itemsoverlay ......................... yes
Qt Multimedia:
ALSA ................................... yes
GStreamer 1.0 .......................... yes
GStreamer 0.10 ......................... no
Video for Linux ........................ yes
OpenAL ................................. no
PulseAudio ............................. yes
Resource Policy (libresourceqt5) ....... no
Windows Audio Services ................. no
DirectShow ............................. no
Windows Media Foundation ............... no
Qt WebEngine:
Embedded build ......................... no
Pepper Plugins ......................... yes
Printing and PDF ....................... yes
Proprietary Codecs ..................... yes
Spellchecker ........................... yes
WebRTC ................................. yes
Using system ninja ..................... yes
ALSA ................................... yes
PulseAudio ............................. yes
System libraries:
re2 .................................. no
ICU .................................. no
libwebp and libwebpdemux ............. yes
Opus ................................. yes
ffmpeg ............................... no


Thanks,
Jim

elcore 05-05-2019 05:02 AM

This is what ponce shared in SBo thread:
Quote:

it seems the new qt5-5.9.7 version doesn't work with openssl-1.1.x: the best option is, IMHO, to revert to version 5.9.6.
Also note there is 5.9.8 source available, but I'm not sure if that'll fix your problem because I only tested on 14.2 x86_64 which has openssl-1.0.2r

ponce 05-05-2019 10:09 AM

you will also need a patch that applies to qt5-5.9.6 for openssl-1.1.x support and another for gcc >= 8.x

http://cgit.ponce.cc/slackbuilds/commit/?h=qt5

NOTE: I haven't tested the script myself on slackwarearm-current, just on x86 and x86_64.

jowski 05-07-2019 11:13 AM

I decided to abandon 5.9.7 and went all the way to 5.12.3 with better results. I also upgraded openssl to libssl.so.3. It still won't finish the compilation but turning off the EXAMPLES and DOCS should do it. I'll know tomorrow. :) If this compilation works, I'll go back to libssl.so.1.1 and see what happens.

Any suggestions for how to cross compile this beast?


time CCACHE=yes PROPRIETARY_CODECS=yes WEBENGINE=no ./qt5.SlackBuild

make[2]: Leaving directory '/tmp/SBo/qt-everywhere-src-5.12.3/qttranslations/translations'
make[1]: Leaving directory '/tmp/SBo/qt-everywhere-src-5.12.3/qttranslations'
cd qtdoc/ && ( test -e Makefile || /tmp/SBo/qt-everywhere-src-5.12.3/qtbase/bin/qmake -o Makefile /tmp/SBo/qt-everywhere-src-5.12.3/qtdoc/qtdoc.pro ) && make -f Makefile install
make[1]: Entering directory '/tmp/SBo/qt-everywhere-src-5.12.3/qtdoc'
cd doc/ && ( test -e Makefile || /tmp/SBo/qt-everywhere-src-5.12.3/qtbase/bin/qmake -o Makefile /tmp/SBo/qt-everywhere-src-5.12.3/qtdoc/doc/doc.pro ) && make -f Makefile install
make[2]: Entering directory '/tmp/SBo/qt-everywhere-src-5.12.3/qtdoc/doc'
make[2]: Nothing to be done for 'install'.
make[2]: Leaving directory '/tmp/SBo/qt-everywhere-src-5.12.3/qtdoc/doc'
make[1]: Leaving directory '/tmp/SBo/qt-everywhere-src-5.12.3/qtdoc'
sed: can't read /tmp/SBo/package-qt5/usr/lib/libqgsttools_p.prl: No such file or directory

real 1267m3.606s
user 1205m22.740s
sys 56m14.922s

------added----------
New command line deleting EXAMPLES and DOCS:

time CCACHE=yes PROPRIETARY_CODECS=yes WEBENGINE=no DOCS=no EXAMPLES=no ./qt5.SlackBuild


It seems that libqgsttools_p.prl can't be found. Hmmm, sounds like a problem for the Qt folks.

Also, here's the diff for the slackbuild:

------cut here---------

diff -Naur qt5.SlackBuild.orig qt5.SlackBuild
--- qt5.SlackBuild.orig 2018-12-15 05:49:17.000000000 -0800
+++ qt5.SlackBuild 2019-05-06 09:36:42.418605703 -0700
@@ -50,7 +50,7 @@
# Adapted for Qt 5.9.6 by David Woodfall

PRGNAM=qt5
-VERSION=${VERSION:-5.9.7}
+VERSION=${VERSION:-5.12.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

@@ -146,9 +146,9 @@
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
echo "Removing any existing source directory. Please wait..."
-rm -rf ${PRGNAM/5/}-everywhere-opensource-src-$VERSION
-tar xvf $CWD/${PRGNAM/5/}-everywhere-opensource-src-$VERSION.tar.xz $EXCLUDE
-cd ${PRGNAM/5/}-everywhere-opensource-src-$VERSION
+rm -rf ${PRGNAM/5/}-everywhere-src-$VERSION
+tar xvf $CWD/${PRGNAM/5/}-everywhere-src-$VERSION.tar.xz $EXCLUDE
+cd ${PRGNAM/5/}-everywhere-src-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \

---------end of cut-------

kermitdafrog8 05-28-2019 07:54 PM

compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current
 
Does Webengine compile on ARM (Raspberry Pi3)?

jowski 05-29-2019 01:30 AM

Quote:

Originally Posted by kermitdafrog8 (Post 5999903)
Does Webengine compile on ARM (Raspberry Pi3)?

I haven't tried it yet. Webengine adds to the build time and isn't needed for what I'm doing.

stormtracknole 06-07-2019 02:03 PM

I have tried (and failed) in building qt5 on arm. I know it can be done, because it is available on Raspbian. Speaking of, I wonder what kind of rig (arm cluster) they use to build their packages. Building qt5 is indeed a beast! Having said that, chromium is worse. ;)

jowski 06-07-2019 11:17 PM

Quote:

Originally Posted by stormtracknole (Post 6003166)
I have tried (and failed) in building qt5 on arm. I know it can be done, because it is available on Raspbian. Speaking of, I wonder what kind of rig (arm cluster) they use to build their packages. Building qt5 is indeed a beast! Having said that, chromium is worse. ;)

Sounds like a job for "Super Ice Cream". :)

A couple of friends of mine have distributed their compilation jobs using 'distcc' on Pi2/3's running ArchPi. I guess it could be done with SlackwareARM too.

Jim

drmozes 06-08-2019 03:30 AM

Quote:

Originally Posted by jowski (Post 6003239)
Sounds like a job for "Super Ice Cream". :)

A couple of friends of mine have distributed their compilation jobs using 'distcc' on Pi2/3's running ArchPi. I guess it could be done with SlackwareARM too.

Jim

The ARM port is built using distcc but with x86_64 build servers using the cross toolchain:-
https://docs.slackware.com/slackwarearm:faq

To give you an idea of how long it takes to build the qt package, here's a snippet of the latest build log:
Code:

root@zippy:~/ac/source/l/qt/qt-nowebkit# less qt-4.8.7-arm-8.txz.build.log
------------------------------------------------------------
Build starting on.....: Sun May  5 19:28:17 BST 2019
Build host............: Linux zippy.arm.slackware.com 4.19.38-armv7 #2 SMP Fri May 3 09:44:53 BST 2019 armv7l Allwinner sun8i Family GNU/Linux
Building for arch.....: arm
Building as UNIX user : root on not a tty
------------------------------------------------------------
Toolchain & development tools information
------------------------------------------------------------
glibc .....: version 2.29.
binutils ..: 2.32-slack15
libtool ...: libtool (GNU libtool) 2.4.6
GCC .......: arm-slackware-linux-gnueabihf-gcc (GCC) 9.1.0
GCC-C++ ...: arm-slackware-linux-gnueabihf-g++ (GCC) 9.1.0
GNU make ..: GNU Make 4.2.1
cmake .....: cmake version 3.14.3
automake ..: automake (GNU automake) 1.16.1
rustc .....: rustc 1.34.1
Perl ......: This is perl 5, version 28, subversion 2 (v5.28.2) built for arm-linux-gnueabihf-thread-multi
Python2 ...: Python 2.7.16
Python3 ...: Python 3.7.3
ruby ......: ruby 2.6.3p62 (2019-04-16 revision 67580) [arm-linux-eabihf]
meson .....: 0.50.1
------------------------------------------------------------
Preparing build area: cleansing; creating; cd /root/tmp/build-qt ... done

And the final composite package is created :
Code:

root@zippy:~/ac/source/l/qt/qt-nowebkit# ls -lah ~/tgzstash/l/qt-4.8.7-arm-8.txz
-rw-r--r-- 1 root root 26M May  5 21:39 /root/tgzstash/l/qt-4.8.7-arm-8.txz
root@zippy:~/ac/source/l/qt/qt-nowebkit#

Only a few hours!

stormtracknole 06-08-2019 09:13 AM

Dang it! I keep forgetting about distcc. Thank you both for the reminder. :)

kermitdafrog8 10-08-2019 09:45 PM

compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current
 
Which version will compile for the Rpi3?

stormtracknole 10-10-2019 10:05 AM

Quote:

Originally Posted by kermitdafrog8 (Post 6045234)
Which version will compile for the Rpi3?

qt5 has remain elusive for me so far.

kermitdafrog8 10-10-2019 02:48 PM

compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current
 
Some apps I try to compile are asking for Qt5 cmake files.

kermitdafrog8 10-18-2019 06:33 PM

compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current
 
I downloaded the source from github. It's trying to compile as qt6.0.0. It compiles up to a 3rd party plugin and stops saying no makefile for whatever it's trying to compile. Anyone have any luck compiling?

kermitdafrog8 11-17-2019 09:39 PM

compilation error with slackbuild qt5 (5.9.7) and slackwareARM-current
 
Try 5.13.0... I was able to compile but without Webengine. Still working on figuring that out. make install put everything in /usr/local/Qt-5.13.0


All times are GMT -5. The time now is 10:26 AM.