pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: qt5 questions

>* When starting sigil, I see:
>xkbcommon: ERROR: failed to add default include
>path /usr/pkg/lib/X11/xkb Qt: Failed to create XKB context Qt Warning:
>Could not find a location of the system's Compose files. Consider
>setting the QTCOMPOSE environment variable.
>The directory doesn't exist. Is there a missing dependency here?

The xkbcommon error is because XKBCONFIGROOT is coded to
${X11BASE}/lib/X11/xkb in the Makefile of libxkbcommon. 
This is the right directory for native X11 for modular it is
the wrong directory.

removing the line 
CONFIGURE_ARGS+=        --with-xkb-config-root=${X11BASE}/lib/X11/xkb

and adding 
.include "../../x11/xkeyboard-config/"

in x11/libxkbcommon/Makefile gives modular xorg the right directory.
I don't know how this works with native x11.

If you wish to silence configures complaint about not finding
xorg-macros you can add 
.include "../../devel/xorg-util-macros/"
as well.

The system compose files search directories are hardcoded in 
the two patches below for x11/qt5-qtbase makes this file use the
environment variable X11BASE available at configure time
concatenated with lib/X11/locale and share/X11/locale among its
hardcoded search directories. This removes the compose warning on
netbsd with modular xorg and should do this for native X11 as well. 
I don't know how it will work on other platforms though.

Happy new year to all.

/Niclas Rosenvik

(This message has been bcc:d ryoon because he is the
listed maintainer of the packages mentioned.) begins 

--- qtbase/src/plugins/platforminputcontexts/compose/   
2013-12-08 17:09:53.000000000 +0000
+++ qtbase/src/plugins/platforminputcontexts/compose/
@@ -16,6 +16,10 @@ SOURCES += $$PWD/main.cpp \
 HEADERS += $$PWD/qcomposeplatforminputcontext.h \
            $$PWD/generator/qtablegenerator.h \
+DEFINES += X11BASE=\\\"$$(X11BASE)\\\"
 # libxkbcommon
 contains(QT_CONFIG, xkbcommon-qt): {
     include(../../../3rdparty/xkbcommon.pri) ends here 

 begins here

 2013-12-08 17:09:53.000000000 +0000
@@ -81,6 +81,10 @@ void TableGenerator::initPossibleLocatio
     if (qEnvironmentVariableIsSet("QTCOMPOSE")) {
+#ifdef X11BASE
+    m_possibleLocations.append(QStringLiteral(X11BASE) + 
+    m_possibleLocations.append(QStringLiteral(X11BASE) + 
 ends here

Home | Main Index | Thread Index | Old Index