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. how to fix QT5.3 &&QT5.7 complier difference
Forum Updated to NodeBB v4.3 + New Features

how to fix QT5.3 &&QT5.7 complier difference

Scheduled Pinned Locked Moved Unsolved General and Desktop
29 Posts 2 Posters 8.6k 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.
  • J JiujiuTong

    @jsulm
    depend libs:
    QT5CORED.DLL
    QT5GUID.DLL
    QT5MULTIMDEIA.DLL
    QT5NETWORK.DLL
    QT5MULTIMDEIAWIDGETSD.DLL
    QT5SERIALPORTD.DLL
    QT5WIDGETSD.DLL
    QT5XMLD.DLL
    QT5XMLPATTERNSD.DLL
    LIBGCC_S_DW2-1.DLL
    KERNEL32.dll
    MSVCRT.DLL
    LIBWINPTHREAD-1.DLL
    USER32.DLLLIBSTDC++-6.DLL

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

    @JiujiuTong "QT5.3 compiler with mingw53_32,no compiler error ,but the App can't startup with an error code" - actually this cannot work, as your Qt 5.3 is built with older MinGW version. You cannot mix binaries built with different compilers.

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

    J 1 Reply Last reply
    0
    • J JiujiuTong

      @jsulm
      I'm used to develop program under QT4.8.6,so it contains the path.
      is it the reason? i will delete it

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

      @JiujiuTong You should not add Qt to PATH if you have more than one version of it.

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

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @JiujiuTong "QT5.3 compiler with mingw53_32,no compiler error ,but the App can't startup with an error code" - actually this cannot work, as your Qt 5.3 is built with older MinGW version. You cannot mix binaries built with different compilers.

        J Offline
        J Offline
        JiujiuTong
        wrote on last edited by
        #23

        @jsulm
        do you mean that QT5.3 should compile with its default Mingw?

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @JiujiuTong You should not add Qt to PATH if you have more than one version of it.

          J Offline
          J Offline
          JiujiuTong
          wrote on last edited by
          #24

          @jsulm
          i removed all QT (MINGW) related PATH, and reboot the OS, it is the same error

          jsulmJ 1 Reply Last reply
          0
          • J JiujiuTong

            @jsulm
            i removed all QT (MINGW) related PATH, and reboot the OS, it is the same error

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

            @JiujiuTong Did you rebuild your project?
            And as I said: your Qt 5.3 is built using an older MinGW as you're now using to build your project - this is not going to work.

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

            J 1 Reply Last reply
            0
            • jsulmJ jsulm

              @JiujiuTong Did you rebuild your project?
              And as I said: your Qt 5.3 is built using an older MinGW as you're now using to build your project - this is not going to work.

              J Offline
              J Offline
              JiujiuTong
              wrote on last edited by
              #26

              @jsulm
              yes, i rebuild them, a litter different, the windbg can't startup the program, error qt5guid.dll is missing

              J 1 Reply Last reply
              0
              • J JiujiuTong

                @jsulm
                yes, i rebuild them, a litter different, the windbg can't startup the program, error qt5guid.dll is missing

                J Offline
                J Offline
                JiujiuTong
                wrote on last edited by
                #27

                @JiujiuTong said in how to fix QT5.3 &&QT5.7 complier difference:

                @jsulm
                yes, i rebuild them, a litter different, the windbg can't startup the program, error qt5guid.dll is missing

                tips that the all depend qt5*.dll are missing.
                if we can't do this, how can i fix the error:
                D:\Users\tong\Documents\FMT_L\png.h:506: error: expected '=', ',', ';', 'asm' or 'attribute' before 'png_const_structrp'
                typedef const png_struct * PNG_RESTRICT png_const_structrp;
                ^
                D:\Users\tong\Documents\FMT_L\png.h:507: error: expected '=', ',', ';', 'asm' or 'attribute' before 'png_inforp'
                typedef png_info * PNG_RESTRICT png_inforp;
                ^
                ...
                D:\Users\tong\Documents\FMT_L\png.h:941: error: unknown type name 'png_structrp'
                PNG_EXPORT(2, void, png_set_sig_bytes, (png_structrp png_ptr, int num_bytes));

                jsulmJ 1 Reply Last reply
                0
                • J JiujiuTong

                  @JiujiuTong said in how to fix QT5.3 &&QT5.7 complier difference:

                  @jsulm
                  yes, i rebuild them, a litter different, the windbg can't startup the program, error qt5guid.dll is missing

                  tips that the all depend qt5*.dll are missing.
                  if we can't do this, how can i fix the error:
                  D:\Users\tong\Documents\FMT_L\png.h:506: error: expected '=', ',', ';', 'asm' or 'attribute' before 'png_const_structrp'
                  typedef const png_struct * PNG_RESTRICT png_const_structrp;
                  ^
                  D:\Users\tong\Documents\FMT_L\png.h:507: error: expected '=', ',', ';', 'asm' or 'attribute' before 'png_inforp'
                  typedef png_info * PNG_RESTRICT png_inforp;
                  ^
                  ...
                  D:\Users\tong\Documents\FMT_L\png.h:941: error: unknown type name 'png_structrp'
                  PNG_EXPORT(2, void, png_set_sig_bytes, (png_structrp png_ptr, int num_bytes));

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

                  @JiujiuTong Actually you should fix your Qt 5.7 issues with Raspberry Pi. Qt 5.3 is quite old. You can try Qt 5.8.

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

                  J 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @JiujiuTong Actually you should fix your Qt 5.7 issues with Raspberry Pi. Qt 5.3 is quite old. You can try Qt 5.8.

                    J Offline
                    J Offline
                    JiujiuTong
                    wrote on last edited by
                    #29

                    @jsulm
                    well , i hope so

                    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