<div dir="ltr">I'd say that the simplest is to spin up a 32-bit docker image corresponding to your OS and do the build on it.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div><font color="#783f04"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2" color="#134f5c">-------</font></div><font face="arial, helvetica, sans-serif" size="2" color="#134f5c">Jean-MichaĆ«l Celerier</font><div><font face="arial, helvetica, sans-serif" size="2" color="#134f5c"><a href="http://www.jcelerier.name" target="_blank">http://www.jcelerier.name</a></font></div></div></div></div>
<br><div class="gmail_quote">On Sat, Aug 26, 2017 at 10:03 AM, Christian Gagneraud <span dir="ltr"><<a href="mailto:chgans@gmail.com" target="_blank">chgans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 26 August 2017 at 14:27, Oliver Niebuhr<br>
<span class=""><<a href="mailto:googleersatz@oliverniebuhr.de">googleersatz@oliverniebuhr.de</a><wbr>> wrote:<br>
> Am 26.08.2017 um 03:26 schrieb Christian Gagneraud:<br>
>> Hi there,<br>
>><br>
>> I have an application that requires a 32 bits version of Qt-5.6 and<br>
>> fixing the 32 vs 64 bits issues of this app is not option at this<br>
>> stage.<br>
>><br>
>> So I need to build Qt-6.6 in 32 bits mode on a 64 bits Linux platfrom,<br>
>> and then i need to build and run my 32 bits app on the same 64 bits<br>
>> Linux platform against this 32 bits Qt-5.6.<br>
>><br>
>> Is it possible to to build 32 bits Qt on 64 bits platform? Has anyone<br>
>> manage to do that? Any advice, tips or tricks to share?<br>
>><br>
>> Thanks in advance,<br>
>> Chris<br>
>> ______________________________<wbr>_________________<br>
>> Interest mailing list<br>
>> <a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
>> <a href="http://lists.qt-project.org/mailman/listinfo/interest" rel="noreferrer" target="_blank">http://lists.qt-project.org/<wbr>mailman/listinfo/interest</a><br>
>><br>
><br>
> Good Morning.<br>
<br>
</span>Good evening,<br>
<span class=""><br>
> Yes it is possible. To build 32-Bit Binaries and Libs on a 64-Bit OS,<br>
> you must install the "Multilib" Version of the Compiler and the used<br>
> Dev-Packages. So in example for the GCC Compiler (G++): Remove the "GCC"<br>
> Package and replace it with "GCC-Multilib" (at least this is the Name<br>
> under Antergos Linux (Arch based). Not sure about other Distros. My main<br>
> OS is still Windows so I am still kind-a noob when it comes to Linux<br>
> Development :)<br>
><br>
> Some 32-Bit Libraries (or Package Names to be more precise) are named<br>
> like "lib32-example1". Others like "example2-multilib". Depending on the<br>
> Library itself and your Distribution.<br>
><br>
> You propably need to activate the Multilib Repository for your<br>
> Distribution first, if you dont have any 32-Bit Stuff installed yet.<br>
><br>
> Qt Configure Parameter for the GCC / G++ Compiler:<br>
> The important Configure Parameter for you (so that Qt tells the<br>
> Compiler to build 32-Bit Binaries etc.) is:<br>
> "/your/qt56/sourcefolder/<wbr>configure -platform linux-g++-32"<br>
><br>
> No Idea about other Distros or Compiler like LLVM/Clang.<br>
<br>
</span>Thanks for sharing, i'm running Ubuntu, so it's a bit different. But<br>
yes, one need the multilib stuff and then intall the Qt dependencies<br>
in 32 mode....<br>
<br>
Chris<br>
<span class="im HOEnZb"><br>
><br>
> Good Luck :)<br>
><br>
> Greetings<br>
> Oliver<br>
> ______________________________<wbr>_________________<br>
> Interest mailing list<br>
> <a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
> <a href="http://lists.qt-project.org/mailman/listinfo/interest" rel="noreferrer" target="_blank">http://lists.qt-project.org/<wbr>mailman/listinfo/interest</a><br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" rel="noreferrer" target="_blank">http://lists.qt-project.org/<wbr>mailman/listinfo/interest</a><br>
</div></div></blockquote></div><br></div>