[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:
-
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
-
Your determination is quite astounding :) Good luck, mate.
-
[quote author="sierdzio" date="1386922264"]Your determination is quite astounding :) Good luck, mate.[/quote]
It still is there. Yeah Thanks :)
I did a quick Check and Qt Creator cant find Files like QApplication and QWebView and even not QObject and QMainWindow. But the Files are in the Qt-Build Subfolders. Also if i load my Project it says "Unknown Module(s) in webkitwidgets". And in the UI Designer, the WebView Stuff is gone.
Seems i need to build this manually even as i have build Qt with the -ICU Paramter and the Webkit and Webkit-Examples Folders are in Place.
But i am not sure what i can do about the "Files not Found" - other than copy things from a to b.
For Building the Webkit i will try these Instructions
trac.webkit.org/wiki/BuildingQtOnWindows
I hope after 1 Year that they are still valid.And for the (not really) missing Files: "Playtime!"
I have come that far, now i want everything :)
-
I tried to make Webkit and was forced to rename \Gnuwin32\bin\flex.exe to win_flex.exe (WebKit is looking for win_flex.exe which leads to an error). And i need many many other things too like fonconfig, SQLite and so on,
This will take a while...
-
Compiling Webkit now with above Instructions.
Question: Is there a Parameter for mingw32-make (or the other build tools) to build the Webkit only?
Edit 01: Compiler Stops with Error 1: "Win_Flex unknown flag '-' and "[generated/glslang_lex.cpp] Error 1"
-
[quote author="MeerMusik" date="1386939965"]Question: Is there a Parameter for mingw32-make (or the other build tools) to build the Webkit only?[/quote]
@
cd qtwebkit
mingw32-make
@Or in root dir:
@
mingw32-make webkit
@ -
[quote author="sierdzio" date="1386940283"][quote author="MeerMusik" date="1386939965"]Question: Is there a Parameter for mingw32-make (or the other build tools) to build the Webkit only?[/quote]
@
cd qtwebkit
mingw32-make
@Or in root dir:
@
mingw32-make webkit
@[/quote]Thanks. Thats simpler than i thought.
I tried that and get "*** no rule to make target webkit. stop"
Time to clean things up - again.
-
Sorry its me again: I have run qmake and i get the configuration warning
"! Qt not configured to use system libjpeg, QImageDecoder will Decode JPEG images" and
! Qt not configured to use system libpng, QImageDecoder will Decode PNG images" <<-- Can ignore this or must i prepare my Apps in future some how?Thanks!
-
Most probably you can ignore this.