64bit apps using Qt
-
I would also know if there is a way to produce 64bit apps using Qt Creator.
TIA -
Yes, just use a 64 bit compiler.
-
I added
CONFIG += m64
to my .pro file, but I am not sure if the compiler is actually producing 64bit executable. Is there a way to check if the application is a 64 or 32 bit?
I know this has nothing to do with Qt, but if you kids don't know the answer to this question, chances are no one else does.TIA!!
-
I forgot to add the compiler output:
21:24:04: Running steps for project guiTest...
21:24:04: Configuration unchanged, skipping qmake step.
21:24:04: Starting: "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe"
C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'D:/Documents/dev/qt/build-guiTest-Desktop_Qt_5_1_1_MinGW_32bit-Release'
g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -fmyClass1s -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I../../Qt/guiTest -I'../../../../Dev/c++/C++/abc/myClass1' -I'../../../../Dev/c++/C++/abc/gui/qt/msg' -I'../../../../Dev/c++/C++/abc/strtools' -I'C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include' -I'C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include/QtWidgets' -I'C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include/QtGui' -I'C:/Qt/Qt5.1.1/5.1.1/mingw48_32/include/QtCore' -I'release' -I'.' -I'.' -I'C:/Qt/Qt5.1.1/5.1.1/mingw48_32/mkspecs/win32-g++' -o release/main.o ../../Qt/guiTest/main.cpp
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release/guiTest.exe release/main.o release/mainwindow.o release/myClass1.o release/strtools.o release/uimyClass1.o release/moc_mainwindow.o -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmain -LC:\Qt\Qt5.1.1\5.1.1\mingw48_32\lib -lQt5Widgets -lQt5Gui -lQt5Core
mingw32-make[1]: Leaving directory 'D:/Documents/dev/qt/build-guiTest-Desktop_Qt_5_1_1_MinGW_32bit-Release'
21:24:09: The process "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
21:24:09: Elapsed time: 00:05. -
[quote]C:\Qt\Qt5.1.1\Tools\mingw48_32[/quote]That's 32-bit MinGW. A 32-bit compiler will only produce 32-bit apps.
You'll need to download a 64-bit compiler and a 64-bit version of the Qt libraries.