Package Details: mingw-w64-qt5-virtualkeyboard 5.15.16+kde+r0-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-qt5-virtualkeyboard.git (read-only, click to copy)
Package Base: mingw-w64-qt5-virtualkeyboard
Description: Virtual keyboard framework (translations, mingw-w64)
Upstream URL: https://www.qt.io/
Licenses: GPL3
Groups: mingw-w64-qt5
Submitter: Martchus
Maintainer: Martchus
Last Packager: Martchus
Votes: 0
Popularity: 0.000000
First Submitted: 2016-06-22 19:37 (UTC)
Last Updated: 2024-11-25 21:02 (UTC)

Pinned Comments

Martchus commented on 2016-07-10 19:40 (UTC)

All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs There also exist a binary repository: https://martchus.no-ip.biz/repo/arch/ownstuff For general discussion and issues not only concerning this Qt module in particular please use the comment section of the package mingw-w64-qt5-base.

Latest Comments

Martchus commented on 2020-04-15 08:59 (UTC)

Ah, it is actually kind of obvious why my regex substitution hack fails in your case. It assumes that the build is located under /build/… (as it is the case when using the official makechrootpkg helper) but in your case it is under /tmp/…. Likely it works with in both cases:

_fix_deps_of_static_3rdparty_libs='s:\(LIBS *= *\)\(.*\)\(\/.*\/lib\/libqt\)\(openwnn\|pinyin\|tcime\)\(d*\.a\)\(.*\):\1 \3\4\5 \2 \6:g'

I'll try that regex when rebuilding anyways. In the meantime, you can try it yourself. If it doesn't work you might play around with it. (Obviously a real fix for the qmake build system would be even better.)

luntik2012 commented on 2020-04-15 06:08 (UTC) (edited on 2020-04-15 06:47 (UTC) by luntik2012)

last command

i686-w64-mingw32-g++ -Wl,-O1,--sort-common,--as-needed -fstack-protector -shared -Wl,-subsystem,windows -Wl,--out-implib,/tmp/yaourt-tmp-nikita/aur-mingw-w64-qt5-virtualkeyboard/src/qtvirtualkeyboard-everywhere-src-5.14.2/build-i686-w64-mingw32-shared/plugins/virtualkeyboard/libqtvirtualkeyboard_openwnn.dll.a -o ../../../../plugins/virtualkeyboard/qtvirtualkeyboard_openwnn.dll .obj/release/qtvirtualkeyboard_openwnn_resource_res.o .obj/release/openwnnplugin.o .obj/release/openwnninputmethod.o .obj/release/qrc_qmake_virtualkeyboard_openwnn_layouts.o .obj/release/moc_openwnnplugin.o .obj/release/moc_openwnninputmethod_p.o  /tmp/yaourt-tmp-nikita/aur-mingw-w64-qt5-virtualkeyboard/src/qtvirtualkeyboard-everywhere-src-5.14.2/build-i686-w64-mingw32-shared/lib/libQt5VirtualKeyboard.dll.a /usr/i686-w64-mingw32/lib/libQt5Quick.dll.a /usr/i686-w64-mingw32/lib/libQt5Gui.dll.a /usr/i686-w64-mingw32/lib/libQt5QmlModels.dll.a /usr/i686-w64-mingw32/lib/libQt5Qml.dll.a /usr/i686-w64-mingw32/lib/libQt5Network.dll.a /usr/i686-w64-mingw32/lib/libQt5Core.dll.a /tmp/yaourt-tmp-nikita/aur-mingw-w64-qt5-virtualkeyboard/src/qtvirtualkeyboard-everywhere-src-5.14.2/build-i686-w64-mingw32-shared/lib/libqtopenwnn.a  -lglu32 -lopengl32 -lgdi32 -luser32

is it ok that it tries tot build both static and shared lib?

UPD. I've installed this by commenting out these lines:

[[ $NO_SHARED_LIBS ]] || \
  _configurations+=('CONFIG+=actually_a_shared_build CONFIG+=shared')

I just don't have mingw-w64-qt5-base-dynamic installed. It's all strange because my exe depends on qt dll's.

UPD2: getting this on start

qrc:/qml/mainWindow.qml:8:1: module "QtQuick.VirtualKeyboard" plugin "qtquickvirtualkeyboardplugin" not found

It's because I've built static plugin and don't have dll's. I think there are some dependency errors in all of those packages about static/dynamic linkage

Martchus commented on 2020-04-14 11:41 (UTC)

These errors mean that the order of linker flags is messed up. I've ran into the same issue during my builds a few versions ago. If you open the PKGBUILD it is easy to spot the crude hack I've added to avoid this build error. Apparently it doesn't work in your case. These kind of hacks are naturally doomed to break as soon as you're changing a tiny bit so that is not a big surprise. However, I'm not sure how to fix this in a better way right now.

I don't know how the linker line looks in your case. The command at the top of your paste does not look like the linker line. (If you're building with more than one job in parallel the last invocation in the log is not always necessarily the line which is causing the subsequent errors.) But you can easily find out yourself by scrolling a bit more to the top. You could try to adjust the hack. It is basically just amending the Makefile so the Qt libs go after the static libs for these 3rdparty keyboard backends (which apparently depend on the Qt libs themselves).

luntik2012 commented on 2020-04-09 16:20 (UTC) (edited on 2020-04-09 16:28 (UTC) by luntik2012)

https://pastebin.com/vsbDEm5t

i've installed

mingw-w64-qt5-3d
mingw-w64-qt5-datavis3d
mingw-w64-qt5-imageformats
mingw-w64-qt5-quickcontrols
mingw-w64-qt5-serialport
mingw-w64-qt5-translations      
mingw-w64-qt5-base
mingw-w64-qt5-declarative
mingw-w64-qt5-location
mingw-w64-qt5-quickcontrols2
mingw-w64-qt5-speech
mingw-w64-qt5-webglplugin       
mingw-w64-qt5-base-static
mingw-w64-qt5-gamepad
mingw-w64-qt5-multimedia
mingw-w64-qt5-remoteobjects
mingw-w64-qt5-svg
mingw-w64-qt5-websockets        
mingw-w64-qt5-charts
mingw-w64-qt5-graphicaleffects
mingw-w64-qt5-networkauth
mingw-w64-qt5-sensors
mingw-w64-qt5-tools
mingw-w64-qt5-winextras

Martchus commented on 2020-04-09 15:06 (UTC) (edited on 2020-04-09 15:06 (UTC) by Martchus)

tried to remove and reinstall - the same error

Maybe it just doesn't help in your case. You didn't share the error log so I've just resorted to guessing.

how to build everything with deps in clean chroot?

I add the package to a repository which is enabled in the chroot. For Qt 5 packages I usually even use an experimental/staging repository and only move everything consistently to my actual repository.

luntik2012 commented on 2020-04-09 14:09 (UTC) (edited on 2020-04-09 14:19 (UTC) by luntik2012)

i just updating this package. tried to remove and reinstall - the same error

how to build everything with deps in clean chroot? i've already built everything in my system except this package (see git repo for build errors)

Martchus commented on 2020-04-09 10:56 (UTC)

@luntik2012 For me the package builds (in a clean chroot). Be aware of the caveats outlined in the pinned comments of the base package. Or are you attempting to use this package? In any case, I need more information (static or shared version, more logs, ...).

luntik2012 commented on 2020-04-08 23:41 (UTC)

undefined reference to everything including QObject

Martchus commented on 2016-07-10 19:40 (UTC)

All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs There also exist a binary repository: https://martchus.no-ip.biz/repo/arch/ownstuff For general discussion and issues not only concerning this Qt module in particular please use the comment section of the package mingw-w64-qt5-base.