Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Resources not accessible when running outside of qtcreator [SOLVED / Problem related to unsopported image file formats]
QtWS25 Last Chance

Resources not accessible when running outside of qtcreator [SOLVED / Problem related to unsopported image file formats]

Scheduled Pinned Locked Moved General and Desktop
12 Posts 4 Posters 4.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    giesbert
    wrote on last edited by
    #2

    Could be that the image format plug-ins are not found in the stand alone case. Search the forum on that, it has already many discussions on that.

    Nokia Certified Qt Specialist.
    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #3

      Do you have resources embedded into your binary? Or you have them as external files that you load on run-time?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        billouparis
        wrote on last edited by
        #4

        I guess they are embedded in the binary, I have done nothing specific. The qrc files are listed in the .pro file.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #5

          Then they are embedded. Now, what could happen, is that the image format plug-ins are not available. They are needed. see "this thread.":http://developer.qt.nokia.com/forums/viewthread/4440/

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • B Offline
            B Offline
            billouparis
            wrote on last edited by
            #6

            Thank you, I am having a look now!

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #7

              Yep, I'm agreed with Gerolf. Looks like plugins are not available.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                billouparis
                wrote on last edited by
                #8

                Thank you both, gonna try this afternoon or maybe in one week, and will let you know,

                Bill

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  billouparis
                  wrote on last edited by
                  #9

                  We can lock this thread, the whole thing it working when copying the image decoding dll in the output directory. Thank you for the hint. I guess it is possible to simply link this library statically then? If you know how, I am interested!
                  Thanks,
                  Bill

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #10

                    if you want to link the plugins statically, you need a static Qt build. otherwise they need to be put to the correct folders and will then be loaded dynamically by Qt itself.

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #11

                      Static linking is suboptimal when plugins enter the game. I recommend that you create an installer for windows (eg. with InnoSetup or some of its also free alternatives).

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        billouparis
                        wrote on last edited by
                        #12

                        Thank you both,
                        Bill

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved