You are not logged in.
As per this article, I modified my PKGBUILD like so (-developer-build):
build() {
cd ${_pkgfqn}
export QTDIR="${srcdir}"/${_pkgfqn}
export LD_LIBRARY_PATH="${QTDIR}"/qtbase/lib:"${QTDIR}"/qttools/lib:"${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="${QTDIR}"/qtbase/plugins
export PATH="${srcdir}/python2-path:$PATH"
[[ "${CARCH}" = "i686" ]] && SSE2="-no-sse2"
PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource -developer-build \
Don't know if I put the option in the wrong place, though, or if that information is outdated for qt5 - but it's not building for me. Here's where makepkg stops:
ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so
ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so.5
ln -s libQt5Widgets.so.5.4.0 libQt5Widgets.so.5.4
rm -f ../../lib/libQt5Widgets.so.5.4.0
mv -f libQt5Widgets.so.5.4.0 ../../lib/
rm -f ../../lib/libQt5Widgets.so
rm -f ../../lib/libQt5Widgets.so.5
rm -f ../../lib/libQt5Widgets.so.5.4
mv -f libQt5Widgets.so ../../lib/
mv -f libQt5Widgets.so.5 ../../lib/
mv -f libQt5Widgets.so.5.4 ../../lib/
make[3]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase/src/widgets'
make[2]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/chris/Software/qt5/src/qt-everywhere-opensource-src-5.4.0/qtbase'
Makefile:70: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Not sure what happened. How do I get more information?
I need qt5-base with debugging symbols so I can get helpful traces for plasma-desktop crashes. So I should also ask: is it possible to modify the PKGBUILD to just compile qt5-base (and perhaps qt5-webkit and qt5-webengine)? qt5 is huge...
EDIT: and yes I had qtwebkit uninstalled at the time
Last edited by YAOMTC (2015-01-03 06:12:49)
Offline
I hate it when the only result for a problem is an unanswered question...
Anyway, invoking make manually uncovers what is the problem - there's a bunch of errors similar to this:
../gui/text/qfontengine_ft.cpp:1146:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int x = 0; x < slot->bitmap.width; x++) {
^
cc1plus: all warnings being treated as errors
So the -Werror is the culprit. Looking at the ./configure -help output it turns out that the -developer-build enables -Werror. But there's -no-warnings-are-errors. So yeah, passing -no-warnings-are-errors in addition to -developer-build should fix the compilation.
I have updated the wiki accordingly.
EDIT: the compilation gets a bit further, but it now fails because of tests.
EDIT2: it pays off to read configure rather than rely on some random suggestion from the wiki. There's a "-debug" option, which should just enable debugging. It hasn't finished compiling here yet, but it got a lot further than before.
Last edited by 6xx (2015-02-03 21:13:49)
Offline
Sadly I gave up on that. And now that Plasma 5.2 is out, I have a much more stable desktop and don't remember the last time I had a crash. So now I no longer feel the need for bug reporting capability.
Offline
I was able to build Qt with debug symbols with the following two options added to the configure command:
-release -force-debug-info
Offline