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. Windows Compilation Release Mode Problems

Windows Compilation Release Mode Problems

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.9k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    dcbasso
    wrote on last edited by
    #1

    hi everyone I'm having some problems with Release compilation on Windows.
    I compile with Release Mode, add all dlls to same folder that the .exe is, and copy to another computer.
    I Try to execute the app on this second computer, and the imagens not appers on application.

    I use the "Resources.qrc" as showed below:

    @
    <RCC>
    <qresource prefix="/database">
    <file>CreateTable.sql</file>
    <file>PopulateTable.sql</file>
    </qresource>
    <qresource prefix="/imagens">
    <file>32/led_red.png</file>
    <file>32/led_blue.png</file>
    <file>64/loading_1.gif</file>
    <file>48/loading_2.gif</file>
    <file>32/loading_2.gif</file>
    </qresource>
    <qresource prefix="/icon">
    <file>icon/truck.ico</file>
    </qresource>
    </RCC>
    @

    And use the resources:

    @
    QMovie *movie = new QMovie(":/imagens/32/loading_2.gif");
    @

    I copy manually the folders of the imagens, nothing change...
    When I run the app form QtCreator I got no problem with the imagens, they are showed normally.
    What's can be?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #2

      Another problem, is that the Database sqlite is not creating in automatic way on the system.

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

        Did you add the Qt plugins, notably the imageformats and sqldrivers? If not, those are not accessible from the second computer and hence no image display and no SQL functions.

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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dcbasso
          wrote on last edited by
          #4

          Yes, but checkout with me:

          @
          /application_folder/

          • InoveSATBEV.exe
          • libgcc_s_dw2-1.dll
          • mingmw10.dll
          • QtCore4.dll
          • QtGui4.dll
          • QtS4.dll
          • CreateTable.sql
          • PopulateTable.sql

          ./icon
          - truck.ico
          ./32
          - led_blue.png
          - led_red.png
          - loading_2.gif
          ./48
          - loading_1.gif
          - loading_2.gif
          ./64
          - loading_1.gif
          @

          And I got error.
          What I'm missing to configure or have other way to insert this files?

          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