Results 1 to 2 of 2

Thread: Compiled resources in shared library

  1. #1
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Compiled resources in shared library

    Please, could somebody tell me how to compile image resources (say an icon) into a shared library. The RESOURCES += myfile.qrc doesn't seem to be working in the case of a shared library, whereas it works fine for an app.

  2. #2
    Join Date
    Feb 2007
    Location
    Philadelphia, USA
    Posts
    255
    Thanks
    43
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Compiled resources in shared library

    I found what to do... just manually invoke rcc and then link the resulting .cpp file. But I'm still not sure why RESOURCES += myfile.qrc doesn't seem to work in the case of a library.

    Wow! That's two questions in a row that I needed to answer for myself... Wysota must be taking a break!!! (or perhaps sleeping)

Similar Threads

  1. shared library problem
    By nhatkhang in forum KDE Forum
    Replies: 9
    Last Post: 28th November 2006, 04:07
  2. HOW TO - created and use shared library (.so)
    By big4mil in forum Qt Programming
    Replies: 4
    Last Post: 25th November 2006, 23:11
  3. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.