[Gammaray-interest] 32bit on 64bit system
Peter Kümmel
syntheticpp at gmx.net
Wed Apr 23 11:19:44 CEST 2014
On 23.04.2014 11:03, hg at technosis.de wrote:
>
>
> Am 23.04.2014 09:45, schrieb Peter Kümmel:
>> On 23.04.2014 09:31, hg at technosis.de wrote:
>>>
>>>
>>> Am 23.04.2014 08:49, schrieb Peter Kümmel:
>>>> On 22.04.2014 23:30, hg at technosis.de wrote:
>>>>> Hi,
>>>>> thanks for your response. I did already play with
>>>>> cmake/GammaRayProbeABI.cmake
>>>>>
>>>>> CMAKE_SYSTEM_PROCESSOR always contains x86_64
>>>>> and even if I hardcode GAMMARAY_PROBE_ABI to "qt5.2-
>>>>> i686" it still assumes a 64bit compile including 64bit Dlls from
>>>>> /usr/lib64/ ...
>>>>
>>>> And what Qt version did cmake find for _building_ gammaray?
>>>> Does it also use x86_64 even if build with i686?
>>>> Have you changed PATH so qmake is the one from qt5.2-i686?
>>>>
>>>> Peter
>>>
>>> the qmake in path is the one from the 32bit version. All Qt-references
>>> in build/CMakeCach.txt are pointing to the 32bit version.
>>>
>>> The final build error I get is:
Ah, it's a build error. Have you used the cross-compiler? Plain g++ builds for x64.
>>>
>>> /usr/local/Qt/5.2.1/lib/libQt5Core.so.5.2.1: could not read symbols:
>>> File in wrong format
>>
>> Have you installed the packages to run 32bit apps on a 64bit machine?
>>
>> sudo apt-get install multiarch-support
>
> I'm on openSUSE Linux. There is 32 bit support by other packages out of
> the box.
> At least I'm building and running 32bit programs based on Qt all the time.
>
> Anyway, to solve the issue for me I might simply install 32bit Linux in
> a virtual machine and build gammaray there.
Yes, this would work.
>
> Thanks for your help.
>
> Regards
> Heiko
>
>>
>>>
>>> So the 32bit Version of Qt is linked, everything else seems to be 64bit.
>>>
>>> What is the correct way to define such a build? Maybe I'm missing a
>>> setting. What I do is downloading your gammaray2.0.2,
>>> create a build subdir and there execute a bash script:
>>>
>>> export QTDIR=/usr/local/Qt/5.2.1
>>> export QMAKESPEC=/usr/local/Qt/5.2.1/mkspecs/linux-g++-32
>>> export PATH=/usr/local/Qt/5.2.1/bin:$PATH
>>> cmake ..
>>> make
>>>
>>>
>>> Regards
>>> Heiko
>>>
>>
>> _______________________________________________
>> Gammaray-interest mailing list
>> Gammaray-interest at mail.kdab.com
>> https://mail.kdab.com/mailman/listinfo/gammaray-interest
>>
>>
>
>
>
> _______________________________________________
> Gammaray-interest mailing list
> Gammaray-interest at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/gammaray-interest
>
More information about the Gammaray-interest
mailing list