Results 1 to 2 of 2

Thread: Dependency between pugins - loader failed

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2015
    Location
    Poland
    Posts
    34
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Exclamation Dependency between pugins - loader failed

    Hi
    I have Qt Creator classic widget project based on shared libraries and plugins:
    Qt Code:
    1. TEMPLATE = subdirs
    2. SUBDIRS = \
    3. Src/Libs/Common \
    4. Src/Libs/Editor \
    5. Src/Libs/TextprofanLib \
    6. Src/Plugins/TextEditorPlugin \
    7. Src/Plugins/SyntaxHighligterPlugin \
    8. Src/Textprofan
    To copy to clipboard, switch view to plain text mode 
    Textprofan is exe project (with main() and Application class). TextprofanLib, Common and Editor are shared libs. Two other are plugins.
    Project is good designed and written it is also fully compileable (with out warnings).
    The only problem is when I load plugins: TextEditorPlugin load succesfully, but SyntaxHighligterPlugin fail to load due to unresolved dependency from TextEditorPlugin. I checked this with mc that unvisible function realy exists in TextEditorPlugin. So I have no idea why it is not loaded...
    Output from my program is as follow:
    Qt Code:
    1. "QLocalSocket::connectToServer: Invalid name"
    2. "TextEditorPlugin plugin dependency checked. Path: /home/szyk/!-pro/Textprofan4-work/Plugins/libTextEditorPluginD.so"
    3. "SyntaxHighlighterPlugin plugin dependency checked. Path: /home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so"
    4. "TextEditorPlugin plugin dependency checked. Path: /home/szyk/!-pro/Textprofan4-work/Plugins/libTextEditorPluginD.so"
    5. "TextEditorPlugin plugin sucessfuly loaded. Path: /home/szyk/!-pro/Textprofan4-work/Plugins/libTextEditorPluginD.so"
    6. "File: ../../../../Textprofan4/Src/Libs/TextprofanLib/Src/Factories/Plugins.cpp, in line: 140, in function: loadPlugin\nError code: 3, Error message: SyntaxHighlighterPlugin plugin load failed! Path: /home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so\nError message: Cannot load library /home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so: (/home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so: undefined symbol: _ZN16TextEditorPlugin10TextEditor16staticMetaObjectE)"
    7. Exception occurs! Sender: Textprofan.so, Error code: 3
    8. Message:
    9. File: ../../../../Textprofan4/Src/Libs/TextprofanLib/Src/Factories/Plugins.cpp, in line: 140, in function: loadPlugin
    10. Error code: 3, Error message: SyntaxHighlighterPlugin plugin load failed! Path: /home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so
    11. Error message: Cannot load library /home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so: (/home/szyk/!-pro/Textprofan4-work/Plugins/libSyntaxHighlighterPluginD.so: undefined symbol: _ZN16TextEditorPlugin10TextEditor16staticMetaObjectE)
    To copy to clipboard, switch view to plain text mode 

    Ok. After I just wrote this I realize not link explicity Src/Plugins/TextEditorPlugin to Src/Plugins/SyntaxHighligterPlugin. Program still not running but I make progress...
    Last edited by Szyk; 31st December 2018 at 15:51.

Similar Threads

  1. QML Loader
    By scgrant327 in forum Qt Quick
    Replies: 1
    Last Post: 6th April 2016, 16:23
  2. Create a QML Loader in C++
    By mut in forum Qt Quick
    Replies: 1
    Last Post: 29th March 2016, 22:28
  3. failed to assigned loader source component
    By joko in forum Qt Quick
    Replies: 14
    Last Post: 12th January 2015, 15:52
  4. Loader Problem
    By Yonetici in forum Qt Quick
    Replies: 1
    Last Post: 22nd July 2012, 17:11
  5. [QT Jambi] Pugins?
    By rk_ in forum Qt Programming
    Replies: 0
    Last Post: 11th June 2010, 12:02

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.