Results 1 to 20 of 23

Thread: where/what are static plugins?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34

    Default Re: where/what are static plugins?

    Great, Jacek, you may have figured out what the problem is. I do not know how to link properly using the command line. I've been doing:

    1) prompt>qmake -project
    2) then manually add the plugin info to the myproject.pro as shown in an earlier post
    3) prompt>qmake
    4) prompt>make

    I guess I have to use -l in step 4?? How?
    Thanks again

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: where/what are static plugins?

    Quote Originally Posted by ht1 View Post
    I guess I have to use -l in step 4?? How?
    Actually make should do that for you. What is the last command it runs?

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

    ht1 (16th January 2008)

  4. #3
    Join Date
    Nov 2007
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34

    Default Re: where/what are static plugins?

    Hi Jacek,

    The last command I run when I compile is
    prompt> make
    I don't know if that's what you meant when you asked about the last command?

    The last thing the compiler does before giving error message is:
    -LC:/Qt/4.3.3/plugins/imageformats/ -lqmng4 -lQtGui -ldgi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws_32
    (hopefully I didn't make mistakes copying it down)
    Last edited by ht1; 16th January 2008 at 22:37.

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: where/what are static plugins?

    Quote Originally Posted by ht1 View Post
    I don't know if that's what you meant when you asked about the last command?
    I asked you about the last command that make runs.

    Run:
    make > aaa.txt
    After make finishes its job, open aaa.txt and find the line with lots of "-l<something>" (it should be near the end of that file) and post it here.

  6. The following user says thank you to jacek for this useful post:

    ht1 (16th January 2008)

  7. #5
    Join Date
    Nov 2007
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34

    Default Re: where/what are static plugins?

    Hi again.

    I didn't find the aaa.txt but
    the last thing the compiler does before giving error message is:

    -LC:/Qt/4.3.3/plugins/imageformats/ -lqmng4 -lQtGui -ldgi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws_32

  8. #6
    Join Date
    Nov 2007
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34

    Default Re: where/what are static plugins?

    Jacek, you are asking a very good question about the compiler. The compiler says:

    -LC:/Qt/4.3.3/plugins/imageformats/ -lqmng4 -lQtGui -ldgi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws_32

    but my working directory is Qt/static, not Qt/4.3.3. Seems like the system is confused about the folder where imageformat flugins are. What does that mean?

    I just put the imageformat plugins in the folder that compiler wants. Now the error is:
    "cannot find -lqjpeg4"
    Last edited by ht1; 16th January 2008 at 22:56.

  9. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: where/what are static plugins?

    Quote Originally Posted by ht1 View Post
    What does that mean?
    It means that most likely you were using the wrong qmake.

    Run:
    make clean
    C:\Qt\static\bin\qmake
    make

  10. The following user says thank you to jacek for this useful post:

    ht1 (16th January 2008)

  11. #8
    Join Date
    Nov 2007
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    34

    Default thanks Jacek

    Jacek, you are a genius! Thank you so much, your suggestion worked and now everything is perfect!

    After two weeks of banging my head against the wall!

  12. #9

    Default Re: where/what are static plugins?

    Hi all,

    How to use and build the jpg plugin on QtCreator?

    I got the error = undefined reference to `qt_plugin_instance_qjpeg()'

  13. #10
    Join Date
    Aug 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android
    Thanks
    1

    Default Re: where/what are static plugins?

    Quote Originally Posted by vietdoor View Post
    Hi all,

    How to use and build the jpg plugin on QtCreator?

    I got the error = undefined reference to `qt_plugin_instance_qjpeg()'
    Hi all
    try use Q_IMPORT_PLUGIN(QJPEGPlugin) for Qt 5.0.2 is good

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Qt Plugins Error
    By nathanpackard in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2007, 23:19
  3. Accessing to a static variable from the same class
    By xgoan in forum General Programming
    Replies: 6
    Last Post: 5th March 2007, 10:50
  4. static objects in libraries
    By Rawk in forum Qt Programming
    Replies: 3
    Last Post: 16th January 2007, 19:03
  5. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 08:32

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
  •  
Qt is a trademark of The Qt Company.