compiling to 64 bits ok How do I configure 32 bits static?
-
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 -
-
@jsulm
I managed to compile qt to 64 static with the following commandsexport 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 -
@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++. -
@SimonSchroeder
How do I do that for what?