Results 1 to 2 of 2

Thread: Linker error (app+plugin) on Linux Qt 4.5.1

  1. #1
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Linker error (app+plugin) on Linux Qt 4.5.1

    Hi,

    I have some custom widgets in a designerplugin. I added the INCLUDEPATH and LIBS += -Lmypath -lmyplugin to the apps pro file. At the end of compiling i get the error

    Qt Code:
    1. ... \myplugin.so: undefined reference to QLabel::eventFilter ...
    To copy to clipboard, switch view to plain text mode 

    I am confused because I do not use an eventFilter on a QLabel anywhere
    Actually on Windows with Qt 4.5.0 everything compiles and runs.

  2. #2
    Join Date
    Mar 2008
    Posts
    141
    Thanks
    10
    Thanked 9 Times in 9 Posts

    Default Re: Linker error (app+plugin) on Linux Qt 4.5.1

    I added the full path to the plugin in LIBS instead of a relative one. This seems to solve the problem, although I do not understand why the error message was not "can't find xxxx file".

Similar Threads

  1. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13

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.