[Gammaray-interest] 32bit on 64bit system

Peter Kümmel syntheticpp at gmx.net
Wed Apr 23 11:53:49 CEST 2014


On 23.04.2014 11:46, hg at technosis.de wrote:
>
>
> Am 23.04.2014 11:22, schrieb Peter Kümmel:
>> On 23.04.2014 11:19, Peter Kümmel wrote:
>>>>>> The final build error I get is:
>>>
>>> Ah, it's a build error. Have you used the cross-compiler? Plain g++
>>> builds for x64.
>>>
>>
>> Maybe it is enough to pass a compile flag to build for i686.
>
> yes, that's what I do in my projects -m32.
> I never need a cross compiler for that.
> What is the correct way to set the -m32 flag with cmake builds?
> I mean gcc would respect the flag, but hiw about cmake? Cmake pulls the
> 64bit dlls for for instance graphviz into the link step. Don't know
> wether the -m32 flag would change that. So I was expecting a cmake flag
> to set the target.
>
> Regards,
> Heiko
>

This is more a cmake related question, so googling gives you  many hits,
e.g.:
"Hello, for my project I'd like to be able to configure a 32 bit build
with GCC in a 64 bit Linux environment by setting variables from command
line interface."
http://www.cmake.org/pipermail/cmake/2013-March/054137.html

Peter




More information about the Gammaray-interest mailing list