[Outdated: Using 5.2.1 with QTC 3.0.1 now] Compile Qt 5.2 Qt Creator 3.0 on Win 7 / MingW32: Some Probs:
-
Hello.
I dont know how to get MingW32 to create the File in the Prefix Folder. When i start compiling from within the Prefix Folder, compiling stops after ~2 Minutes with Error 2.
When i start compiling from outside the Prefix Folder, there are no Files in the Prefix Folder after 6 Hours of compiling but compiling ends without Errors.That sucks. I have lost 3 Days now because of that s*itty Qt build manuals only to get OpenSSL to work. And after 6 Hours of compiling: "Oh great i need to compile Qt Creator too as it dont come with the qt-everywhere-xxx Package". WTF?
Why do i must go through thousands of Folders and Files manually and copy them to the pre-installed Qt 5.2 Folder only to see that QtWebKit does not work anymore ("QtWebKit No such File or Directory" says Qt Creator").
No Matter what i set as a Prefix to Build Qt: It does not work how dozens of manuals says it should.
Another Problem: With the Qt Creator 3.0.0 RC Source Code, when ever i want to run
"configure -prefix c:\build -debug-and-release -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW" it says “QMAKESPEC is set to win32-g++ which is not supported”.Does Qt Creator 3.0.0+ not Support Release Variants any more? And yes i tried to compile with and without GIT in the System Path. And no there is no other Compiler installed. Yes Explorer Windows are closed before i start building.
I can start the Compiling of Qt Creator 3.0RC but it just creates the Debug Files as it wont let me change it to "-debug-and-release".
Any Help would we be appreciated.
Thanks!
Oliver -
In short, this is what you need to to do compile Qt in a prefixed folder:
@
mkdir qt-build
cd qt-build
../qt-src/configure -prefix <CD> <other flags>
make
make install
@And for Creator:
@
mkdir qtc-build
cd qtc-build
qmake -r ../qtc-src/qtcreator.pro
make
@Should work :)
-
Hi,
@ sierdzio: isn't your post truncated ?
-
Oops, yes, sorry.
-
Thanks @sierdzio but that is what i have done a few times now.
Today i did these Steps:
1.) Uninstalled Qt 5.2.0 and Qt completely (including all the MingW Stuff)
2.) Installed a MingW Compiler that Finally works (Standard MingW Compiler will not work - dont stop complaining about qmake.
3.) Compiled the ICU Libs
4.) Opened a Windows CMD Window.
5.) Run:
5.1) configure -prefix c:\qt-build -icu -I C:\icu\dist\include -L C:\icu\dist\lib -prefix c:\build -debug-and-release -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++ -nomake examples
5.2.) mingw32-make
6.) After around 1 Hour, Compiler complains that Uic.exe could not find a Icu Library so i copied everything from c:\icu\dist\lib to d:\qt-everywhere-opensource-src-5.2.0\qtbase\bin -> this works.BUT: This time, after 2 Hours of compiling he stopped as he did not found Python anymore. I dont know. When i dont use the icu stuff, it compiles fine.
Another Problem is: When i start compiling from within the prefix Folder, Compiler always crash with Error 2. When i start compiling from within the qt-everywhere-blablabla folder: No Problems.
Is there really no easier way for using OpenSSL?
And Google told me that when i want Release Files for Qt Creator, i need to run
qmake -r CONFIG+=debug CONFIG+=releaseDid not find that info on the qt-project site.
Thanks anyway. I try to set up Python agaín and hope it will compile this time error free -.-
EDIT 01:
I have reinstalled Python 2.7.6 x86 (as i want to compile a x86 Qt Version...) and started compiling from within c:\qt-build. This time i get the following Error:
---start error
compilation terminated.
Makefile.Debug:9883: recipe for target '.obj/debug/qabstractanimation.o' failed
mingw32-make[4]: *** [.obj/debug/qabstractanimation.o] Error 1
mingw32-make[4]: Leaving directory 'c:/qt-build/qtbase/src/corelib'
Makefile:38: recipe for target 'debug-all' failed
mingw32-make[3]: *** [debug-all] Error 2
mingw32-make[3]: Leaving directory 'c:/qt-build/qtbase/src/corelib'
Makefile:133: recipe for target 'sub-corelib-make_first' failed
mingw32-make[2]: *** [sub-corelib-make_first] Error 2
mingw32-make[2]: Leaving directory 'c:/qt-build/qtbase/src'
Makefile:41: recipe for target 'sub-src-make_first' failed
mingw32-make[1]: *** [sub-src-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/qt-build/qtbase'
Makefile:60: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
---end errorsorry for the cutted text but somehow not everything get copied even it is selected in the cmd shell. and with select all i cant copy anything. strange never had this before. and i have win 7 fresh installed just 2 weeks ago.
EDIT 02:
I found out, when i run the configure.bat from within c:\qt-build even without "-prefix c:\qt-build", the directory c:\qt-build get automatically set. But still got the Error 2 Compilation Terminated.Edit 03:
1.) Reinstalled Git also and added "C:\Program Files (x86)\git" to the System Environment Path.
2.) Erased the Source Sode Folder and copied the clean files again into it. Including the Libs for ICU52 to qtbase\bin.
3.) From within c:\qt-build i run:
d:\qt-everywhere-opensource-src-5.2.0\configure -icu -I C:\icu\dist\include -L C:\icu\dist\lib -debug-and-release -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++4.) Compiler runs...
Error: Icuin52.dll is missing from your Computer
Crash.
Ok when i set it up without the prefix, i have to copy the icu libs also to c:\qt-builds\qtbase\bin.5.) Without erasing and resetting stuff (well i did not change the parameter so nothing to clean up...)
run: mingw32-make
no asking for icuin52.dll anymore - yet.
still running [12 December 01:00AM GMT+1]
01:42AM GMT+1 -> Again the Compiler can not find python -> added it to the User Environment Path also -> mingw32-make runs...01:47AM GMT+1 Compiler Stops:
[Sorry cmd.exe dont let me copy and paste anything...]Undefined References in Jarrinterpreter.o
Undefined References in YarrInterpreter.h
...
Makefile.Debug:504 recipe for Target 'c:\qt-build\qtbase\lib\Qt5QmlD.dll failed
....
mingw32-make: *** [module-qtdeclarative-make_first] failed-I have googled but cant find info in combination with MingW.
Does any one know what the Problem is? Looks like i use wrong Version of <i have really no idea as all other stuff is up2date>-
Oh yes i forgot to mention: I am using 5.2 Final Test Package Build 209. When i try to compile this without ICU52 then everything is fine (beside the prefix problems but this is another problem already mentioned above).
Edit: I widened my google search: I found an entry in Qt 5.2 Mailing List from October: Kai says that the branch could be broken.
Edit: I currently download https://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/ and will try to compile that one - after cleaning up all the folders. I hope that the finally final [which should come December 12 (today) - barring any unforeseen circumstances] will work.
Well i wanted to make a test Compilation anyway to see how this must be done and have good working 5.2 Final Build.
I will keep this Thread updated...
Last Edit: 02:36AM GMT+1 12.12.13Thanks for helping me! Much appreciated!
The Newbie aka Oliver :) -
Oh just shut up Qt: With the Source Code from the Stable Branch i get the following Error:
"Uic.exe - The Procedure Entry Point __gxx personality_v0 could not be located in the Dynamic Link Library libstdc++-6.dll"
WTH? O.o
Why this Error now? Is it because i added "-developer-build"?Path to the Compiler Stuff is set correct.
Anyway: Solution: I need to Copy the File Libstdc++-6.dll into both qtbase\bin folders.
Mingw32-make started again. Lets see which Problem comes next...Installing Qt+Qt is so much easier when you dont need OpenSSL.
Edit 01:
I have also DL'ed the Source Code from the Current Qt Creator Stable 3.0.0:"qmake could not find qmake configuration file win32-g++"
Never had that before. Even without a Qt Full Install it did run fine.
Seems i have to wait till Qt 5.2 is fully compiled!?
Right lets wait then...Edit 02 04:52AM GMT+1
Compiler is still running and we are far beyond where it crashes the last times...Edit 03 06:58AM GMT+1:
Next Problem: lrelease.exe in \qttools\bin is also looking for libstdc++-6.dll.Ok i put that in there and simply run mingw32-make again: ~45 Seconds later build is done without further Problems. [Have not tested the Builded Files yet...]
Question: Is there a way to avoid this from the beginning? Can i add those Libs some how to the compilation Process like with the -L and -I Switches? Or can i do something else instead of putting them manually in to those Folders? Thanks again!
-
Hmm i thought i compile the Source Code and can just run the Program after it: Nope!
I still need to compile Qt Creator to be able to use Qt.
Will do this as soon as i found out why qmake does not find the configuration file... <- Nevermind starting qmake.exe again from the \qtbase\bin folder work. Now compiling Qt Creator...
-
Well this time a new Error (at least for me).
Qt Creator Complies Error til:
"... LD.exe cannot find -lqbscored1" < Whats this??
-
wow, impressive ;) I wish you luck. The more I read about MinGW and compiling Qt on Windows, the less I am inclined to do this :P It's just so easy on Linux. Anyway, I did try compiling Qt 5.1 on Windows with MSVC some time ago, and it worked pretty well.
-
[quote author="MeerMusik" date="1386833840"]Well this time a new Error (at least for me).
Qt Creator Complies Error til:
"... LD.exe cannot find -lqbscored1" < Whats this??[/quote]
Looks like QBS is missing. But QtCreator should compile without it. Try running qmake without -r. Or check out QBS using git checkout --recursive. more info: "this page":http://qt-project.org/wiki/Building-Qt-Creator-from-Git.
-
[quote author="sierdzio" date="1386834411"][quote author="MeerMusik" date="1386833840"]Well this time a new Error (at least for me).
Qt Creator Complies Error til:
"... LD.exe cannot find -lqbscored1" < Whats this??[/quote]
Looks like QBS is missing. But QtCreator should compile without it. Try running qmake without -r. Or check out QBS using git checkout --recursive. more info: "this page":http://qt-project.org/wiki/Building-Qt-Creator-from-Git.[/quote]
Good morning.
When the compiler runs, then it runs. And the most Problesm i run into, i could cure by questioning the Oracle aka Google.
I need OpenSSL and therefore i have to compile it for my self anyway.
I already thought about going with VS2012 but i want a real OpenSource Variant - which means MingW ;) [Yes i know because of some 3rdParty Stuff used by Qt that it is not "Real OpenSource" anymore].
Ok i will try that.
Have lost 4 Days of Trial and Error with some how "wrong" MingW Versions (even some of those which are mentioned on the qt-project site) and broken Branches already. A few hours more of test compiling does not worry me - not any more :)
And: When the Final-Final Version comes i have to do it again. (Not when the Devs decide, that the 5.2 Stable from December 11 is the Final-Final...)
Lets see what the Day brings. Time to take a nap at minimum.
Thanks for your help. Much appreciated! :)
Oliver -
Hello Forum.
After i had the Problem with the QBS Module, i did the
"qmake recursive" thingy.But now i get:
-"Project Error: Unknown Module(s) in QT: Script"-
-In which File(s) do i have to remove what? Please.-
Nevermind @sierdzio already mentioned to do this without "-r"
Mingw32-Make runs for a few seconds but complains about "scripts". Ok i try again from Step 1. Looks like my dumb newbie Fault for now. -
Mingw32-Make gives Error
"Project Error: Unknown Module(s) in QT: Script"
What do i have to remove now? Please! Thank You!
Edit: Right after i compiled Qt 5.2 i run "mingw32-make install" <- is that the Problem??
Edit 2: Sorry forgot to add the Info: This Problem regards to Utils.pro and the modules
a.) sub-utils-make_first
b.) sub-libs-make_first-orderedIn \src\libs\utils is still a file called "utils.qbs"
is that ok?Edit 3: Cleaned the Folders and unzipped the Source Code again. This time i run qmake without "-r" and does not the recursive stuff. Same Problem. My qmake Parameters are:
qmake CONFIG+=debug_and_release CONFIG+=build_all d:\qt-creator-opensource-src-3.0.0\qtcreator.pro
Using the Qt Creator 3.0 Sopurce Code from here:
https://download.qt-project.org/official_releases/qtcreator/3.0/3.0.0/The used Qt 5.2 Source Code is from here:
https://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/The Parameters i have used to build Qt 5.2 are:
configure -prefix c:\qt-build -debug-and-release -developer-build -icu -I C:\icu\dist\include -L C:\icu\dist\lib -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++ -nomake examplesAfter Qt 5.2 was build i run "MingW32-Make install" <<-- Should i have wait til Qt Creator was build??
Compiler is MingW32 x32-4.8.1-posix-dwarf-rev5
What else can i do? I found some old Entrys regarding Qt: Scripts - but there is so much Stuff that i (as a noob) have no Idea what i need to change. And all the Answers that i have found, are too specific to other Problems with Script and for different OS.
-
I have tried also
"qmake -r CONFIG+=build_and_release CONFIG+=build_all
CONFIG-=qbs d:\qt-creator-opensource-src-3.0.0\qtcreator.pro"
without any luck.Even
"qmake CONFIG+=build_and_release CONFIG+=build_all CONFIG-=qbs d:\qt-creator-opensource-src-3.0.0\qtcreator.pro"Gives still the Error:
"Project Error: Unknown Module(s) in Qt: Script""Aggregation" and "ExtensionSystem" are build but right after that, the Compiler stops when it trys "Utils". I am completely out of Ideas now. I am Stuck.
Edit 01: I did (again and again) the whole Procedure shown here: https://qt-project.org/wiki/Building-Qt-Creator-from-Git
I only added "CONFIG+=debug_and_release CONFIG+=build_all"
Still stuck :(
-
QtScript is a module of Qt, not something from QtCreator. I've had that error somewhere once, but I don't remember where. Maybe just run QtCreator from the prebuild package?
-
[quote author="sierdzio" date="1386856583"]QtScript is a module of Qt, not something from QtCreator. I've had that error somewhere once, but I don't remember where. Maybe just run QtCreator from the prebuild package?[/quote]
Hmm i thought when i want to have OpenSSL, i need to compile Qt and Qt Creator by my self? Do i have OpenSSL Support when i use the Standard MingW Binaries?
Edit I dont think it will work as the Windows Stuff is compiled with Visual Studio and I have a MingW Install. But i try this out.
-
Ok i tried the Binaries of Qt Creator but i have too many "not found" things like QApplication and Webkitwidgets. I uninstalled it. And did i already mention "I am still stuck"?
I think i need to recompile the whole Qt S.2 Stuff - this time without "mingw32-make install" right after compilation. Maybe this will work...
-
New Run.
16:40PM GMT+1:
I cleaned all Folders and Entrys and started compiling if Qt 5.2 again with Parameter"configure -prefix c:\qt-build -debug-and-release -developer-build -icu -I C:\icu\dist\include -L C:\icu\dist\lib -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++"
Compile Time is most around 6 Hours for everything. I will keep this Post updated as needed - With many Luck in 6 Hours when everything is done without Errors fingerscrossedtiltheybroke
-
QtCreator is only an IDE. Just as you can develop Qt code in notepad (build by MS), gedit (built by GCC) or any other text editor, QtCreator can work with any number of Qt libraries compiled by any compiler.
If you need OpenSSL support in your Qt apps, you need to compile Qt by yourself. But you can use "stock" Qt Creator to develop Qt applications using those Qt libs.
-
[quote author="MeerMusik" date="1386863134"]Compile Time is most around 6 Hours for everything. I will keep this Post updated as needed - With many Luck in 6 Hours when everything is done without Errors fingerscrossedtiltheybroke
[/quote]Woah, maybe it's time for PC upgrade :) On my quad-core (+HT) it takes 20-40 minutes to compile Qt (depending on configure flags and the compiler). It will be slower on Windows, but still much more convenient than 6 hours ;) The mingw-make should support "-j numberOfJobs" flag that can be utilised to compile using all CPU cores.