PROPOSAL: Use Cmake as the build system for Samba

Stefan (metze) Metzmacher metze at
Fri Feb 19 08:04:18 MST 2010

Andreas Schneider schrieb:
> On Friday 19 February 2010 13:42:58 you wrote:
>>>>>> Does it support multi-architecture compilations? When
>>>>>> cross-compiling we need to build some of the compilers (asn1c,
>>>>>> compile_et) for the build platform and target platform and most
>>>>>> other things just for the target platform.
>>>>> Yes, cross compilation support has been added in CMake 2.6. All you
>>>>> have to do is to write a toolchain file which defines the compilers
>>>>> and paths.
>>>>> I've cross-compiled Windows binaries for libssh on Linux with MinGW.
>>>> What I'm asking is, is it possible to have a mixed-target-platform
>>>> build? We need to create binaries for multiple platforms since some of
>>>> the compilers used by Samba have to be built for the platform on which
>>>> you're compiling so they can be used inside of the build.
>>> I don't really understand what you mean with mixed-target-platform.
>>> Building for x86 and x86_64? Could you please give me an example.
>> If you cross compile for e.g. ARM on a x86 machine you need to build
>> some binaries for x86 (since they will be used in the build process) and
>> other binaries for the ARM.
> I'm not sure what you're expecting. Normally you have the additional binaries 
> and libraries installed in a path. You point CMake to the path where it can 
> find them and it will then build your project.

We need to build asn1compile and et_compile as x86 binaries from within
Cmake and then use them to generate .c files which will then build for ARM.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the samba-technical mailing list