[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:
-
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.
-
[quote author="sierdzio" date="1386868294"][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.[/quote]
Good morning.
No i mean it. If i compile Qt with everything (including Examples, Tests etc.) it takes 5-6 Hours. But even when i compile without Examples and Tests, it takes still 4-5 Hours.
My Specs:
OS: Win 7 x64 on HDD1
RAM: 16 GB DDR3 No ECC
Pagefile (Swapfile called under Linux if i remember correct): Set to a Fixed Value of 6192 MB on HDD1
CPU: AMD Phenom II X4 965 Black Edition, 3.42 GHz
The CPU is not as the good in Performance like some Intel CPUs when it comes to Encoding Video, Audio etc. Maybe this is also applicable for Compiling. I dont know.Source Code is on HDD2.
Prefix / Target Folders are on HDD1.
HDD 1 is a little older with 16 MB Cache and S-ATA-2. HDD 2 has 32 MB Cache and is S-ATA-3.
Did not have the I/O Values at Hand.I am Compiling without Special Optimization Parameters. This is something i will look into at a later time. Had enough trouble the last Days to get the Standard Stuff to work ;)
Anyway: After i have done some preparations, this time Qt compiled without any Errors. And for Qt Creator: I added the QTDIR Paths to System and User Environment and restarted my PC - just be sure.
Parameter for qmake are: -r prefix=c:\qt-creator config+=debug_and_release config+=build_all <PathToQtCreator.Pro>
This time, qmake does not saying anything about missing Modules in Utils.pro -> Scripts.
Creator is compiling right now. This time it should end better now :)
Thanks again for your Help and Time!
Oliver -
Ok the compilation of Qt Creator failed again because of that QBS thing.
Will try something else... -
So i did that qmake recursive stuff with git and the qbs module is checked out - like in every try before. after that i did again using the Parameter
"-r prefix=c:\qt-creator config+=debug_and_release config+=build_all <PathToQtCreator.Pro>" for qmake.
Started compiling again...
-
And this time a new Compiler Error:
"Plugin Metadata File "QMLDesigner.json" does not exist. Declaration will be ignored" :(
First time this shows up. Time to ask the Oracle again...
Edit 01: Such a nonsense. The Files DOES exist in C:\qt-creator\src\plugins\qmldesigner.
What now??
Edit 02: The File is missing in D:\qt-creator-opensource-src-3.0.0\qt-creator\src\plugins\qmldesigner so i copied the File into it and started mingw32-make again. Compiler runs but I hope that did not make it worse lol
Edit 03: Great Compiler is done without any further Errors. But i have only Debug Files. Will try it again to get the Release Versions of the Files also.
Edit 04: First Release Files are created while the Compiler is on the way. The Problem/Mistake was:I wrote "config+=debug_and_release config+=build_all" instead of "CONFIG+=debug_and_release CONFIG+=build_all" <- The Parameters with LowerCase made it in the Makefile but got ignored. Not sure if this is a Windows specific Problem - i am still too "noobish" ;)
-
At 09:01AM GMT+1 Compiler is done without any further Errors.
Debug and Release Libs and DLLs are in Place.Have not tested yet if everything works. Must do this later - running out of time.
Thanks again for helping and sharing Information :) If i have more Problems i will write again here. Should i have other Problems, i will create another Thread (if needed and if i cant get infos or help else where).
Oliver