[Development] Creating an offline installer

Andreas Holzammer andreas.holzammer at kdab.com
Wed Jul 17 09:19:43 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 17.07.2013 09:07, schrieb Yves Bailly:
> Hello Andreas,
> 
> Le 17/07/2013 08:54, Andreas Holzammer a écrit :
>> -----BEGIN PGP SIGNED MESSAGE----- this is broken at the moment.
>> It was changed from Qt 4.8.0 which had a bug in language support
>> to Qt 4.8.4 But then it was also changed from 7z to tar gz, which
>> is not very well supported in Windows. Also another slide glitch
>> went in with this change. the Qt 4.8.0 was patched to link
>> against the static c++ runtime. But yeah apparently thats not the
>> case anymore with the Qt 4.8.4 package. Please deflate the
>> archive to \release-tools\qt-src and patch accordingly to
> 
> ...stripping the top-level directory... ;-)
> 
>> http://qt.gitorious.org/installer-framework/installer-framework/blobs/master/INSTALL
>
>> 
> Something is strange in this file. It says: "- add
> 'embed_manifest_dll embed_manifest_exe' to CONFIG line"
> 
> ...but looking at the "diff" given below, I see:
> 
> -CONFIG                  += qt warn_on release incremental flat
> link_prl precompile_header autogen_precompile_source copy_dir_files
> debug_and_release debug_and_release_target embed_manifest_dll
> embed_manifest_exe
> 
> +CONFIG                  += qt warn_on release incremental flat
> link_prl precompile_header autogen_precompile_source copy_dir_files
> debug_and_release debug_and_release_target

Hmm this needs no change. But this is the important part:
- -QMAKE_CFLAGS_RELEASE    = -O2 -MD

- -QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi

- -QMAKE_CFLAGS_DEBUG      = -Zi -MDd

+QMAKE_CFLAGS_RELEASE    = -O2 -MT

+QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MT -Zi

+QMAKE_CFLAGS_DEBUG      = -Zi -MTd

> 
> 
> ...where it seems the options "embed_manifest_dll
> embed_manifest_exe" have been *removed*, not added. Trusting the
> diff I'm removing them, after all manifests are useless in a static
> build.
> 
>> Then you can call the script with --incremental and he should
>> just go forward.
> 
> Nope... now it complains it can't find qmake:

Hm did you remove the directory D:\qt\release-tools\ifw-bld ?

hope then it works.

Andy

> ----------------------------------------- INCREMENTAL_MODE 
> D:\qt\release-tools\ifw-bld 
> --------------------------------------------------------------------
>
> 
Building Installer Framework
> *** Unable to find qmake, aborting! qmake:
> D:\qt\release-tools\qt-bld\bin\qmake.exe
> 
> I'll try to build manually and copy files where needed.
> 
>> Hope this helps
> 
> It does :-) Thanks for your help.
> 
> 
> 
>> 
>> Am 17.07.2013 08:27, schrieb Yves Bailly:
>>> Le 16/07/2013 15:21, Sergio Ahumada a écrit :
>>>> On 07/16/2013 03:06 PM, Yves Bailly wrote:
>>>>> Le 16/07/2013 10:50, Sergio Ahumada a écrit :
>>>>>> On 07/16/2013 09:39 AM, Yves Bailly wrote:
>>>>>>> [...] INSTALLER_FRAMEWORK_PRODUCT_KEY_CHECKER_BRANCH 
>>>>>>> TypeError: __init__() takes exactly 10 arguments (9
>>>>>>> given)
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> You could try this patch 
>>>>>> https://codereview.qt-project.org/61092
>>>>>> 
>>>>>> Also, I'd say the README file is pretty out-of-date, so
>>>>>> if you find errors you could maybe provide some fixes in 
>>>>>> Gerrit.
>>>>> 
>>>>> Thanks for your input... now I'm experiencing troubles when
>>>>> it tries to "git clone" the installer framework, firewall 
>>>>> problem...
>>>> 
>>>> There is an attempt to create a python script to handle all
>>>> the needed steps at https://codereview.qt-project.org/54538
>>>> 
>>>> You could also try 
>>>> http://qt-project.org/wiki/Building-Qt-Package
>>>> 
>>>> Both are pretty much work in progress though.
>>> 
>>> Hello, it's me again trying to create an offline installer...
>>> 
>>> Now I'm having trouble with tar: Executing:      [tar -xzf 
>>> D:\qt\release-tools\qt_4.8.4_ifw_prepared.tar.gz] Execution
>>> path: [...]
> 


- -- 
Join us in October at Qt Developer Days 2013! - https://devdays.kdab.com

Andreas Holzammer | andreas.holzammer at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJR5kWOAAoJEPj+uOw7/REiUCsP+wTivJX0+PM46hroHifn3Ff2
KorGAmaRyBx1FiaEp6pFAxJqX1gA0gPw2Ra04X49DmU4Vd7JQxB/y1GKkdcBuPni
+ugsG56Cfy/wKiXUkRNWLKfAW10HuVp/Wu1V1Z4TBA9dEOSG9V/wUsYIN7Txr0HE
q1xl2Wdg0XSjnCOSLR7kElaKj4H7ya56Yz9WSHwtNUAwQNUogEeCOf+jPiEglglg
z9dppOVPWUal2pvd+CPapZwkGkeqOVMHjMNxNiDSGpcmwL0AQN3maGOsospzWoLr
s5sv3hVcNtmbrJjgUTJolIxDkM5EJB/RGadZFM+uNV3Bh1OwG8Q0gtzQSRPoEQea
6itk1fxvYtISH6goIJYnMlQXqHhwfW18/ncADKOPq3mNn1rAPvyMpEtce5TT0+XX
ZSFiwp6w/liE69mXRwTpi/XCNZZCjc7HykDYlWWt63q7Wn8PvnuKCIHzRcaGrH1E
kSTUGVZGtnyBu6dOIDmEkYx2nZeKnUKOcxgUYFWpiTiryrnRJeG3qDsggWu/K6hD
NobrnT+1D/uyKiN4serU+yEuOqQMeHxfSpJ8zXXVxlQ3Zn9z8QcWRkoxxb9FyXdY
+Y41FuhI5yRNr/ybIFoRuCxfZpJUayqXWG2wRzqbw7r4e70tWiS0/hZsXBTeVHrY
mNfKybBL+s/NMTBwMr6W
=t5kb
-----END PGP SIGNATURE-----



More information about the Development mailing list