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. compiling to 64 bits ok How do I configure 32 bits static?
Forum Updated to NodeBB v4.3 + New Features

compiling to 64 bits ok How do I configure 32 bits static?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 514 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 Offline
    J Offline
    jchaviano
    wrote on last edited by
    #1

    Re: qt 6.7.0 to 32 bits plataforms

    compilado a 64 aparentemente funciono ok
    export PATH="/C/Qt/Tools/CMake_64/bin:$PATH" &&
    export PATH="/C/Qt/Tools/Ninja:$PATH" &&
    export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312:$PATH" &&
    export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312/Scripts:$PATH" &&
    export PATH="/C/Program Files/nodejs:$PATH" &&
    export PATH="/C/Program Files/nodejs/node_modules/npm/bin:$PATH" &&
    export PATH="/C/Qt/Tools/mingw1120_64/bin:$PATH"
    which cmake && which ninja && which python && which pip3 && which node && which npm && which gcc
    cd "D:\qt_build\qt-everywhere-src-6.6.0"
    ./configure.bat -Wno-dev -prefix "/C/Qt/6.7.0/mingw_64_dro"
    cmake --build . && cmake --install .

    With this configuration I managed to compile at 64 bits and it seems to work correctly.
    but that's not what I want...
    what I want is to compile static to 32
    How should I configure the following
    ./configure.bat blablabla

    jsulmJ 1 Reply Last reply
    0
    • J jchaviano

      Re: qt 6.7.0 to 32 bits plataforms

      compilado a 64 aparentemente funciono ok
      export PATH="/C/Qt/Tools/CMake_64/bin:$PATH" &&
      export PATH="/C/Qt/Tools/Ninja:$PATH" &&
      export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312:$PATH" &&
      export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312/Scripts:$PATH" &&
      export PATH="/C/Program Files/nodejs:$PATH" &&
      export PATH="/C/Program Files/nodejs/node_modules/npm/bin:$PATH" &&
      export PATH="/C/Qt/Tools/mingw1120_64/bin:$PATH"
      which cmake && which ninja && which python && which pip3 && which node && which npm && which gcc
      cd "D:\qt_build\qt-everywhere-src-6.6.0"
      ./configure.bat -Wno-dev -prefix "/C/Qt/6.7.0/mingw_64_dro"
      cmake --build . && cmake --install .

      With this configuration I managed to compile at 64 bits and it seems to work correctly.
      but that's not what I want...
      what I want is to compile static to 32
      How should I configure the following
      ./configure.bat blablabla

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

      @jchaviano Take a look at https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW

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

      J 1 Reply Last reply
      0
      • jsulmJ jsulm

        @jchaviano Take a look at https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW

        J Offline
        J Offline
        jchaviano
        wrote on last edited by
        #3

        @jsulm
        I managed to compile qt to 64 static with the following commands

        export PATH="/C/Qt/Tools/CMake_64/bin:$PATH" &&
        export PATH="/C/Qt/Tools/Ninja:$PATH" &&
        export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312:$PATH" &&
        export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312/Scripts:$PATH" &&
        export PATH="/C/Program Files/nodejs:$PATH" &&
        export PATH="/C/Program Files/nodejs/node_modules/npm/bin:$PATH" &&
        export PATH="/C/Qt/Tools/mingw1120_64/bin:$PATH"
        export PATH="/C/Program Files (x86)/GnuWin32/bin:$PATH"
        which cmake && which ninja && which python && which pip3 && which node && which npm && which gcc && which g++ && which gperf && which bison && which flex
        cd "D:\qt_build\qt-everywhere-src-6.7.0"
        ./configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.7.0/mingw_32x_6_7_0_static"
        cmake --build . && cmake --install .

        but it is clearly seen in the configuration that I told it to compile static and at 32 but it still generates a compilation at 64.
        I don't know what I'm doing wrong... in fact I can't find mingw 11.20 at 32 only at 64.
        They tell me that mingw64 must I might be able to compile to 32 but I just can't get it any idea what I'm doing wrong

        S 1 Reply Last reply
        0
        • J jchaviano

          @jsulm
          I managed to compile qt to 64 static with the following commands

          export PATH="/C/Qt/Tools/CMake_64/bin:$PATH" &&
          export PATH="/C/Qt/Tools/Ninja:$PATH" &&
          export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312:$PATH" &&
          export PATH="/C/Users/creazy/AppData/Local/Programs/Python/Python312/Scripts:$PATH" &&
          export PATH="/C/Program Files/nodejs:$PATH" &&
          export PATH="/C/Program Files/nodejs/node_modules/npm/bin:$PATH" &&
          export PATH="/C/Qt/Tools/mingw1120_64/bin:$PATH"
          export PATH="/C/Program Files (x86)/GnuWin32/bin:$PATH"
          which cmake && which ninja && which python && which pip3 && which node && which npm && which gcc && which g++ && which gperf && which bison && which flex
          cd "D:\qt_build\qt-everywhere-src-6.7.0"
          ./configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.7.0/mingw_32x_6_7_0_static"
          cmake --build . && cmake --install .

          but it is clearly seen in the configuration that I told it to compile static and at 32 but it still generates a compilation at 64.
          I don't know what I'm doing wrong... in fact I can't find mingw 11.20 at 32 only at 64.
          They tell me that mingw64 must I might be able to compile to 32 but I just can't get it any idea what I'm doing wrong

          S Offline
          S Offline
          SimonSchroeder
          wrote on last edited by
          #4

          @jchaviano win32 in -platform win32-g++ just means Windows. Both 32 bit and 64 bit Windows are called win32. I don't have any experience with g++ on Windows. Most likely it doesn't really matter if g++ is 32 bit or 64 bit. What you need to do (most likely) is to pass a compiler flag to tell the compiler to produce 32 bit code. This should be -m32 for g++.

          J 1 Reply Last reply
          0
          • S SimonSchroeder

            @jchaviano win32 in -platform win32-g++ just means Windows. Both 32 bit and 64 bit Windows are called win32. I don't have any experience with g++ on Windows. Most likely it doesn't really matter if g++ is 32 bit or 64 bit. What you need to do (most likely) is to pass a compiler flag to tell the compiler to produce 32 bit code. This should be -m32 for g++.

            J Offline
            J Offline
            jchaviano
            wrote on last edited by
            #5

            @SimonSchroeder
            How do I do that for what?

            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