Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. having problem deploying Qt Xlsx

having problem deploying Qt Xlsx

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 2 Posters 3.2k 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.
  • M Offline
    M Offline
    markytools
    wrote on last edited by markytools
    #1

    hello I am having problem deploying my qt application. I am using Qt Xlsx from the github repo [https://github.com/VSRonin/QtXlsxWriter](link url) to manipulate xlsx files. My program works perfectly when running it in Qt Creator, but upon deploying my app (specifically just by clicking the .exe file in the build release folder) and even using qtwindeploy, the application is unable to perform Xlsx functions. I followed this procedure [https://wiki.qt.io/Deploy_an_Application_on_Windows](link url) and it still doesn't work. Even using Usage(1) or Usage(2) from the site, it still doesn't work.
    Deployment folder image https://drive.google.com/open?id=0B0QHvTmZsWa6bEItSjVyN0dpSVE. I am using Qt 5.4.2 and am using windows 10.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Did you deploy Qt5Xlsx.dll?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • M Offline
        M Offline
        markytools
        wrote on last edited by markytools
        #3

        what do you mean deploy? If you meant a deployed application the yes, using windeployqt. From the first method (Usage 1) of QtXlsx, I used qmake to install it into the default Qt modules, then went to the build release folder of the project, open the terminal there, then typed: windeployqt .
        the result would be a deployed application, including the Qt5Xlsx.dll. As for the Qt5Xlsxd.dll, there was no file in the deployed app, only the Qt5Xlsx.dll. Even if I copied Qt5Xlsxd.dll to the deployed folder, it still wouldn't work.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          markytools
          wrote on last edited by
          #4

          VRonin does it work when you deploy yours with windeployqt?

          1 Reply Last reply
          0
          • VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            What error are you getting?

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            0
            • M Offline
              M Offline
              markytools
              wrote on last edited by markytools
              #6

              the app is a release version. I don't know how to get the error messages outside qt other than the qt console. the app does not crashed, it just does not write into the excel file. It just skips the xlsx lines and executes the next valid line.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                markytools
                wrote on last edited by markytools
                #7

                ok it was a path misunderstanding. somehow the debug version of xlsx when running qt is located outside the release folder, while when in deployed mode the default location is inside the release folder. you might want to fix this bug. also path directories should not have spaces. works perfectly though thanks!

                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