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. Deploying Qt application
Qt 6.11 is out! See what's new in the release blog

Deploying Qt application

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 1.5k 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    Hi, I have 'finished' my qt application and now i want to deploy it but have problemes..

    In Debug mode I can compile and run (from Qt Creator) my app without errors. But if i try to run it with myApp.exe (after adding Qt dlls) I have an error saying :

    entry point procedure _ZdaPvj could not be found in libstdc++-6.dll

    then I add libstdc++-6.dll and try to restart app, and now i have no errors when i double click on myApp.exe, it just don't start.

    Other probleme is, when i switch to Release mode,it looks like my app Compiles witout errors but crashes if i try to run (even from Qt creator).

    Im using Qt 5.8.0 MinGW 32bit
    Im including/using open62541.h/.cpp (free OPC UA implementation https://open62541.org/)

    Thx in advance for help
    LA

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #7

      Thx very much guys! i finally changed Qt version, from 5.8 to 5.10 now its working fine!
      Thx

      1 Reply Last reply
      1
      • ODБOïO ODБOï

        Hi, I have 'finished' my qt application and now i want to deploy it but have problemes..

        In Debug mode I can compile and run (from Qt Creator) my app without errors. But if i try to run it with myApp.exe (after adding Qt dlls) I have an error saying :

        entry point procedure _ZdaPvj could not be found in libstdc++-6.dll

        then I add libstdc++-6.dll and try to restart app, and now i have no errors when i double click on myApp.exe, it just don't start.

        Other probleme is, when i switch to Release mode,it looks like my app Compiles witout errors but crashes if i try to run (even from Qt creator).

        Im using Qt 5.8.0 MinGW 32bit
        Im including/using open62541.h/.cpp (free OPC UA implementation https://open62541.org/)

        Thx in advance for help
        LA

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @LeLev You should take a look at http://doc.qt.io/qt-5/windows-deployment.html
        If your app crashes in release mode when starting from QtCreator then you most probably have an issue in your code. You should take a look at the stack trace when it crashes.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        ODБOïO 1 Reply Last reply
        3
        • S Offline
          S Offline
          Sillimon
          wrote on last edited by
          #3

          Hi ! Are you using any other libraries than Qt's ?

          I had this problem not that far ago and i wonder if it was not due to the fact i used the wrong library file.
          Like using the release for the debug one or something like that...

          It may be something completely different but check that too

          1 Reply Last reply
          1
          • jsulmJ jsulm

            @LeLev You should take a look at http://doc.qt.io/qt-5/windows-deployment.html
            If your app crashes in release mode when starting from QtCreator then you most probably have an issue in your code. You should take a look at the stack trace when it crashes.

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #4

            @jsulm,
            When my app crashs in release mode i have nothing interesting in stack trace :

            11:26:24: Start : "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
            C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release
            mingw32-make[1]: Entering directory 'C:/Users/user/Documents/build-16K-Desktop_Qt_5_8_0_MinGW_32bit-Release'
            mingw32-make[1]: Nothing to be done for 'first'.
            mingw32-make[1]: Leaving directory 'C:/Users/user/Documents/build-16K-Desktop_Qt_5_8_0_MinGW_32bit-Release'
            11:26:25: Le processus "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" ended normaly.
            11:26:25: Time : 00:01.

            @Sillimon, i'm only using open62541.h/.cpp (free OPC UA implementation protocole https://open62541.org/)
            i added unix|win32 : LIBS += -lWS2_32 in my .pro file because open62541 needs ws2_32.dll

            Thx to you two

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sillimon
              wrote on last edited by
              #5

              So it only works in Debug from QtCreator...
              Could it be a variable or pointer problem ? That could make the difference between debug and release ?
              Verify initialization of those, maybe ?

              1 Reply Last reply
              2
              • ODБOïO ODБOï

                Hi, I have 'finished' my qt application and now i want to deploy it but have problemes..

                In Debug mode I can compile and run (from Qt Creator) my app without errors. But if i try to run it with myApp.exe (after adding Qt dlls) I have an error saying :

                entry point procedure _ZdaPvj could not be found in libstdc++-6.dll

                then I add libstdc++-6.dll and try to restart app, and now i have no errors when i double click on myApp.exe, it just don't start.

                Other probleme is, when i switch to Release mode,it looks like my app Compiles witout errors but crashes if i try to run (even from Qt creator).

                Im using Qt 5.8.0 MinGW 32bit
                Im including/using open62541.h/.cpp (free OPC UA implementation https://open62541.org/)

                Thx in advance for help
                LA

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #6

                @LeLev
                theres can be a ton of different reasons, why the release build crashes but the debug one not

                here's a good List to check

                list

                The number one reason for me, so far, was always Variable initialization hence my ever growing habit of initializing EVERYTHING ;-)


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                1 Reply Last reply
                4
                • ODБOïO Offline
                  ODБOïO Offline
                  ODБOï
                  wrote on last edited by
                  #7

                  Thx very much guys! i finally changed Qt version, from 5.8 to 5.10 now its working fine!
                  Thx

                  1 Reply Last reply
                  1

                  • Login

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