Results 1 to 4 of 4

Thread: Problem building dynamic plugin

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Problem building dynamic plugin

    Hi,

    I recently downloaded QtCreator and tried to build the example PlugAndPaintPlugins (distributed together with QtCreator).
    Building the basicTools plugin works fine (as a static plugin). However, when I try to build the extraFilters plugin (dynamic) I have a lot of errors (see below). When I change the plugin to build as static then it works fine.
    Any ideas what is going wrong?

    undefined reference to `_imp___ZNK6QImage15convertToFormatENS_6FormatE6QF lagsIN2Qt19ImageConversionFlagEE'
    undefined reference to `_imp___ZN6QImageC1ERKS_'
    undefined reference to `_imp___ZNK11QMetaObject2trEPKcS1_'

    and so on ...


    regards,

    Jan

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: Problem building dynamic plugin

    Quote Originally Posted by javd View Post
    Hi,

    I recently downloaded QtCreator and tried to build the example PlugAndPaintPlugins (distributed together with QtCreator).
    It's distributed with Qt, not with Qt Creator. Qt Creator is distributed with Qt as well. Otherwise we might think Qt is "distributed with" the INSTALL text file.

    Any ideas what is going wrong?
    What did you do exactly to come to this point (step by step, start with "I downloaded Qt")?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Problem building dynamic plugin

    This is what I did to get to this result.
    I installed Qt Creator and tried to build / run some of the examples.
    Then I opened the plugandpaintplugins project and tried to compile this. This is where I got these errors.
    I am testing on a Win XP platform, where also a copy of Visual Studio 2003 .Net is installed.
    In the mean time I have done some more research, and found out that there might be a conflict between a Visual Studio 2003 installation and Qt Creator. I removed the include and lib environment variables (refering to C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\ and to C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\) and now I can build the plugins.

    regards,
    Jan

  4. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Problem building dynamic plugin

    sounds fun as you didn't say that you downloaded Qt, just QtCreator, which is just IDE highly integrated with Qt tools :]
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. Dynamic lookup problem
    By jwintz in forum Qt Programming
    Replies: 3
    Last Post: 30th May 2006, 14:19
  2. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38
  3. Problem building Qt4.1.0 with thread support on windows XP
    By pavithra in forum Installation and Deployment
    Replies: 1
    Last Post: 1st April 2006, 11:35
  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.