Results 1 to 4 of 4

Thread: problem/error in adding custom widget plugins

  1. #1
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1

    Default problem/error in adding custom widget plugins

    Hi All,
    please can you help me with this? (Ubuntu, Qt Creator)

    I have made one simple custom widget plugin (following the "worldtimeclock custom widget plugin" example). I have compiled it and created a *.so library.

    I restart the QtCreator and can see my custom widget in the designer menu - great. Then I (move it) to my mainWindow form.

    Then I add widget library to *.pro file:
    LIBS += -L/opt/qtsdk-2009.01/bin/designer -lPanelPlayer

    run "qmake": no problem
    run "make": no problem - this means that the library PATH is correct

    BUT when I want to execute it I got a reply:
    error while loading shared libraries: libworldtimeclockplugin.so: cannot open shared object file: No such file or directory


    Please do you know that what can be the problem?

  2. #2
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1

    Default Re: problem/error in adding custom widget plugins


  3. #3
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1

    Default Re: problem/error in adding custom widget plugins

    I have one more question here.
    Base on the instructions:

    "problem is that your application has to link with the code of the widget you are trying to use. And to do that, the library has to be found by the dynamic linker not only at compile time, but also during run time. You have to place the library in a path where linker will be looking for it. You can use the LD_LIBRARY_PATH variable to extend the linker lookup path if you need to"

    I can run the application from a command line - that works fine. The problem is that when I want to run in QtCreator I'm getting those error messages.
    Where can I place my library so that Qt will find during "run"?

  4. #4
    Join Date
    Mar 2009
    Posts
    9
    Thanks
    1

    Default Re: problem/error in adding custom widget plugins

    OK,...so I figured that out - and it was not so hard

    just place the plugin library into you root lib folder (/lib - under Linux OS)

Similar Threads

  1. Custom Widget - First Steps
    By sekatsim in forum Qt Programming
    Replies: 8
    Last Post: 26th June 2008, 18:19
  2. Custom widget
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 28th January 2008, 15:06
  3. custom plug-in widget in another custom plug-in widget.
    By MrGarbage in forum Qt Programming
    Replies: 6
    Last Post: 27th August 2007, 16:38
  4. about custom widget plugins
    By hesummar in forum Qt Tools
    Replies: 16
    Last Post: 1st December 2006, 02:59
  5. Replies: 4
    Last Post: 24th March 2006, 23:50

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.