Results 1 to 2 of 2

Thread: plugin problem

  1. #1
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default plugin problem

    Hi!

    I use Qt 4.2.2 Opensource on Windows XP. When compiling I get this error: "undefined reference to 'qt_plugin_instance_qjpeg1'
    What does this mean and how can I fix that?

    I have compiled Qt using this keys:
    -release -shared -qt-sql-sqlite -qt-zlib -qt-gif -qt-libpng -qt-libjpeg.
    In my .pro file I put:
    QTPLUGIN += qjpeg
    In my .cpp file I put:
    #include <QImageIOPlugin>
    Q_IMPORT_PLUGIN(qjpeg)
    I have created qt.conf file with:
    [Paths]
    Prefix = ./
    Plugins = plugins

    Is it a problem since my .cpp file is different than my main.cpp?
    Thanks,
    Luka

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: plugin problem

    Lose all references to the plugin. You have a shared Qt but you try to reference a static plugin which obviously doesn't exist.

  3. The following user says thank you to wysota for this useful post:

    whoops.slo (8th February 2007)

Similar Threads

  1. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  2. Dynamic lookup problem
    By jwintz in forum Qt Programming
    Replies: 3
    Last Post: 30th May 2006, 14:19
  3. general sqlplugin problem
    By a550ee in forum Installation and Deployment
    Replies: 5
    Last Post: 28th February 2006, 10:03
  4. Runtime dynamic linking + Qt4 problem
    By _Ramirez_ in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2006, 14:28
  5. Replies: 7
    Last Post: 3rd February 2006, 10:20

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.