Results 1 to 2 of 2

Thread: undefined reference qt_static_plugin_QtVirtualKeyboardStylesPlugin()

  1. #1
    Join Date
    Jan 2018
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default undefined reference qt_static_plugin_QtVirtualKeyboardStylesPlugin()

    Hello,

    I use a static cross-compiled QT-Version 5.9.2 on x64 for armv7-gnueabihf (imx6).
    My QMake-Configuration: (config.opt)
    Qt Code:
    1. -commercial
    2. -debug
    3. -static
    4. -no-compile-examples
    5. -no-pch
    6. -nomake
    7. tests
    8. -nomake
    9. examples
    10. -prefix /opt/qt59
    11. -hostprefix /opt/qt59
    12. -device
    13. linux-imx6-g++
    14. -device-option
    15. CROSS_COMPILE=/data/fslc-fb-sdk/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-
    16. -sysroot /data/fslc-fb-sdk/sysroots/armv7at2hf-neon-fslc-linux-gnueabi
    17. -no-xcb
    18. -opengl
    19. es2
    20. -skip
    21. qtwebengine
    22. -eglfs
    23. -tslib
    To copy to clipboard, switch view to plain text mode 

    In my Application, the QtVirtualKeyboardPlugin is used.
    My Project-File:
    Qt Code:
    1. QTPLUGIN.imageformats = qsvg
    2. QTPLUGIN.bearer = -
    3. QTPLUGIN.qmltooling = -
    4. QTPLUGIN.platforminputcontexts = qtvirtualkeyboardplugin
    To copy to clipboard, switch view to plain text mode 

    If I remove QtVirtualKeyboardPlugin, my application will be compiled an will run on target successful.
    If I add QtVirtualKeyboardPlugin (+ functionality), my application will not compile.
    The following error messages will occure:
    Qt Code:
    1. opt/qt59/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.a(plugin.o): In function `QVirtualKeyboardPlugin::create(QString const&, QStringList const&)':
    2. plugin.cpp:(.text+0x6b8): undefined reference to `qt_static_plugin_QtQuickLayoutsPlugin()'
    3. plugin.cpp:(.text+0x7a8): undefined reference to `qt_static_plugin_QtQuickLayoutsPlugin()'
    4. plugin.cpp:(.text+0x7d8): undefined reference to `qt_static_plugin_QmlFolderListModelPlugin()'
    5. plugin.cpp:(.text+0x8c8): undefined reference to `qt_static_plugin_QmlFolderListModelPlugin()'
    6. plugin.cpp:(.text+0x8f8): undefined reference to `qt_static_plugin_QtVirtualKeyboardStylesPlugin()'
    7. plugin.cpp:(.text+0x9e4): undefined reference to `qt_static_plugin_QtVirtualKeyboardStylesPlugin()'
    To copy to clipboard, switch view to plain text mode 

    What I am doing wrong?
    Thanks for tips/tricks,

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,708
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: undefined reference qt_static_plugin_QtVirtualKeyboardStylesPlugin()

    What I am doing wrong?
    Take your pick:
    1. You are statically building Qt
    2. You remove a plugin.

    When you build Qt statically, so will you need to have the plugins statically linked in to it.
    So, if you want that plugin's functionality you will have to statically link it, or, don't use a static build.

    Its all here:
    http://doc.qt.io/QtForDeviceCreation...c-linking.html
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Undefined reference
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2011, 16:45
  2. undefined reference
    By digidas in forum Newbie
    Replies: 9
    Last Post: 19th May 2010, 14:04
  3. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 14:45
  4. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 09:34
  5. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 13:14

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.