Three weeks struggling with the compilation of Qt5.1.1, I finally managed to have one built without failure message during compilation.
The main reason for previous failures, in my own opinion, is mainly due to my ignorance of one crusial factor during shadow build.
You should have your source and build folders in the same level, best in same folder.
This information has been mentioned in an old document about Qt shadow build instructions posted in nokia site before but seems cannot find it now. The current documents/wiki on qt-project site do not mention this explicitly but the example has such implied.
ZAC's Blog for sharing programming related stuffs, focus on free stuffs, occasionally will talk about paid solutions.
Translate
2013/11/22
#build #Qt5.1.1 with #mingw on #Windows finally suceeded
2013/11/14
[#solved] #Build #Qt5.1.1 #failed again (Makefile.Debug:7091: recipe for target '.obj/debug_shared/qwindowstheme.o' failed)
Need to try again.
#Build #Qt5.1.1 #failed again (Makefile.Debug:7091: recipe for target '.obj/debug_shared/qwindowstheme.o' failed)
After applying the patch, I have run into another problem "Makefile.Debug:7091: recipe for target '.obj/debug_shared/qwindowstheme.o' failed".
[#Solved] #Building #Qt5.1.1 static failed (Makefile:350: recipe for target 'qfilesystemengine_win.o' failed)
You can download the patch from here.
The file to be patched is <qt-5.1.1-Folder>/qtbase\src/corelib/io/qfilesystemengine_win.cpp
Hope this time the compile can get through.
2013/11/13
#GradeOne admission #IQ test
It is a grade one (primary one) admission IQ test. Adult should be able to answer within 30 sec.
I can answer it within 5. How about you?
2013/11/10
#GoogleCalendar not #sync with my #Galaxy #S3 #solution
Just successfully compile #QtRpt & #QtRptDesigner with #Qt5.1.1
2013/11/09
#compile #xTuple #OpenRpt with #Qt5 and #QtCreator
xTuple's OpenRpt is a features rich, open source report engine that worth a try.
When compiling with QtCreator with default options, I've got numerous errors saying ui*.h are missing. Check through the project folder, I can found the files but still cannot get through.
Since files in project path, this must be path searching issue that need to be solved.
2013/11/08
#g+ #hashtag testing
Android Blogger app cannot post published blog to g+
Why there will be two posts in G+ when I publish in blogger?
Anyone know why there will be two #g+ posts being generated whenever I post on #blogger? Though they are not exactly the same, but both link to the same post in my #blog.
Is there any setting control this behaviour?
Remove the yellow ! from the kits of QtCreator's build and run environment for Qt Static build
But if you really want to remove that yellow !, you can try to copy the Qt5Core.dll and Qt5Cored.dll from your shared build to the lib folder of your static build.
e.g.
c:\Qt\5.1.1\mingw48_32 (this is installation of the Qt SDK)Then you can
c:\Qt\5.1.1\mingw48_32s (the static version)
copy /y "c:\Qt\5.1.1\mingw48_32\lib\Qt5Core.dll" "c:\Qt\5.1.1\mingw48_32s\lib\Qt5Core.dll"Source: Qt5使用静态版,在配置Build&Run环境时,kits项中会出现黄色感叹号
copy /y "c:\Qt\5.1.1\mingw48_32\lib\Qt5Cored.dll" "c:\Qt\5.1.1\mingw48_32s\lib\Qt5Cored.dll"
G+ custom url
+ZacareshkBlogspotHkLive
2013/11/07
Building Qt5.1.1 static failed (Makefile:350: recipe for target 'qfilesystemengine_win.o' failed)
Building Qt5.1.1 failed again. Stopped during creating qmake.
Makefile:350: recipe for target 'qfilesystemengine_win.o' failed
Building qmake failed, return code 2
Building platform:
- Windows Server 2008 R2
- DirectX SDK 2010 June
- MinGW-builds (gcc-4.8.1-dwarf-rev5)
- ActivePerl-5.16.3.1603-MSWin32-x86-296746
- python-3.3.2
- ruby-1.9.3-p448
Building environment:
- DXSDK_DIR=Z:\QtBuild\tools\msdxsdk
- INCLUDE=.;Z:\QtBuild\tools\3rdparty\libicu\include;Z:\QtBuild\tools\3rdparty\openssl\include;Z:\QtBuild\tools\3rdparty\libmysql\include;\include;Z:\QtBuild\tools\msdxsdk\include
- LIB=.;Z:\QtBuild\tools\3rdparty\libicu\lib;Z:\QtBuild\tools\3rdparty\openssl\lib;Z:\QtBuild\tools\3rdparty\libmysql\lib;\lib;Z:\QtBuild\tools\msdxsdk\Lib\x86
- PATH=;Z:\QtBuild\5.1.1\src\qtbase\bin;Z:\QtBuild\5.1.1\src\qtrepotools\bin;Z:\QtBuild\tools\gnuwin32\bin;Z:\QtBuild\tools\mingw-builds\mingw32\bin;Z:\QtBuild\tools\perl\bin;Z:\QtBuild\tools\ruby\bin;Z:\QtBuild\tools\python\bin;Z:\QtBuild\tools\cmake\bin;Z:\QtBuild\tools\utils;Z:\QtBuild\tools\msdxsdk\Utilities\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
- from
- QMAKE_LFLAGS =
- QMAKE_LFLAGS_DLL = -shared
- to
- QMAKE_LFLAGS = -static -static-libgcc
- QMAKE_LFLAGS_DLL = -static -static-libgcc
Configure option:
- cd /d Z:\QtBuild\5.1.1\src\
- Z:\QtBuild\5.1.1\src\configure.bat -confirm-license -opensource -platform win32-g++ -release -static -ltcg -prefix Z:\Qt\5.1.1\mingw481_32s -qt-sql-sqlite -qt-sql-odbc -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-angle -no-qml-debug -nomake tests -nomake examples -skip qtwebkit -icu -openssl-linked -qt-sql-mysql -plugin-sql-mysql -no-vcproj
2013/11/05
Qt configure failed
./configure.bat: line 1: @echo: command not found
./configure.bat: line 2: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: command not found
./configure.bat: line 3: ::: command not found
./configure.bat: line 4: syntax error near unexpected token `('
./configure.bat: line 4: `:: Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).'
It's time to abolish mingw-builds and follow the official building procedures on Windows.
Solving mingw-builds script download error
Using #mingw-builds to build #Qt, if encounter download error from #http://sf.net , you can download the corresponding file manually and place it inside Qt-builds/work/src/, then create an empty file with <yourDownloadFilename>.marker inside Qt-builds/work/markers/. Re-run ./buildall <yourOptions> will continue the process.
Re-pickup Qt
Start re-pickup #Qt programming. First thing first, I need to compile #Qt with #MinGW #gcc, but it seems a nightmare if I need to have a full set of Qt being compiled with #MinGW.