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. Trouble with compilator after modify a flag
Forum Updated to NodeBB v4.3 + New Features

Trouble with compilator after modify a flag

Scheduled Pinned Locked Moved Solved General and Desktop
compilatorhelpflag
4 Posts 2 Posters 1.4k 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.
  • M Offline
    M Offline
    Massimiliano
    wrote on last edited by
    #1

    today a i finished upmy project but to work outside the QT creator i had to fill a folder with dll's and put the exe inside to make it working
    but i wanted something better so i searched up like everything to compress the exe and the dll together i finished creating qrc files willed with dll's i thinked up that was a good idea then i compiled it and an error appeared i knowed that the error was relacionated with the size of the qrc and i start dividing them at the end frusted by the same error everytime i decided google the problem online then i found a guide and i followed this steps
    "If your OS is 32bit, then in cmd (as Admin) put bcdedit /set IncreaseUserVa 3072
    Install masm32;
    open cmd (as admin too);
    put cd C:\Qt\Tools\mingw492_32\libexec\gcc\i686-w64-mingw32\4.9.2
    put C:\masm32\bin\editbin.exe /LARGEADDRESSAWARE cc1plus.exe"

    also now compiles but the program wont start this is a screen of what happen alt text

    i have really no idea if what to do now i don't know how to reverse the procedure also i still haven't found a way to compress all together
    also i'm using the minGW32bits3 compiler i hope you that are watching this thread right now can help me
    1 finding a compressor that compress all the dll and folders into one exe
    2 resolving the compilator problem

    if you can't well thank you anyway for try it

    jsulmJ 1 Reply Last reply
    0
    • M Massimiliano

      today a i finished upmy project but to work outside the QT creator i had to fill a folder with dll's and put the exe inside to make it working
      but i wanted something better so i searched up like everything to compress the exe and the dll together i finished creating qrc files willed with dll's i thinked up that was a good idea then i compiled it and an error appeared i knowed that the error was relacionated with the size of the qrc and i start dividing them at the end frusted by the same error everytime i decided google the problem online then i found a guide and i followed this steps
      "If your OS is 32bit, then in cmd (as Admin) put bcdedit /set IncreaseUserVa 3072
      Install masm32;
      open cmd (as admin too);
      put cd C:\Qt\Tools\mingw492_32\libexec\gcc\i686-w64-mingw32\4.9.2
      put C:\masm32\bin\editbin.exe /LARGEADDRESSAWARE cc1plus.exe"

      also now compiles but the program wont start this is a screen of what happen alt text

      i have really no idea if what to do now i don't know how to reverse the procedure also i still haven't found a way to compress all together
      also i'm using the minGW32bits3 compiler i hope you that are watching this thread right now can help me
      1 finding a compressor that compress all the dll and folders into one exe
      2 resolving the compilator problem

      if you can't well thank you anyway for try it

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

      @Massimiliano Please read http://doc.qt.io/qt-5/windows-deployment.html
      Use the windows deployment tool to deploy your app, then you can compress the directory you get using this tool. This directory will contain your executable and all needed DLLs.
      Putting DLLs in a resource file is something I never seen so far. And it cannot work because the DLLs must be there while your app is being loaded by the OS - at that time it is not yet running.

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

      1 Reply Last reply
      2
      • M Offline
        M Offline
        Massimiliano
        wrote on last edited by
        #3

        @jsulm well the flag thing i solved it but when i try the windows deploy thing (to what i undestand i have tu drag and drop it in the program floder with all the dll's then run it) i give me that erroralt text

        jsulmJ 1 Reply Last reply
        0
        • M Massimiliano

          @jsulm well the flag thing i solved it but when i try the windows deploy thing (to what i undestand i have tu drag and drop it in the program floder with all the dll's then run it) i give me that erroralt text

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

          @Massimiliano No, you do not drop it in your app directory! You just need to call it in a terminal window and pass the path to your binary as parameter. Please read the documentation:
          "The tool can be found in QTDIR/bin/windeployqt. It takes an .exe file or a directory that contains an .exe file as an argument, and scans the executable for dependencies."

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

          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