[CMake] Thoughts on Cross-compiling with CMake

Kishore, Jonnalagadda (IE10) Kishore.Jonnalagadda at honeywell.com
Mon May 7 05:59:44 EDT 2007


> -----Original Message-----
> From: cmake-bounces+kishore.jonnalagadda=honeywell.com at cmake.org
> [mailto:cmake-bounces+kishore.jonnalagadda=honeywell.com at cmake.org] On
> Behalf Of Trevor Kellaway
> Sent: Saturday, May 05, 2007 1:49 PM
> To: cmake at cmake.org
> Subject: RE: [CMake] Thoughts on Cross-compiling with CMake
> 
> Kishore,
> 
> > OK. Personally, I use KDevelop and do not have first hand
> > experience with this kind of use. In past discussions, I
> > learnt that it is possible to use the GCC compiler when
> > building from VS. The downside being that error parsing won't
> > work. So no click-on-error-message to show the relevant source
lines.
> 
> You need to make the distinction between the different styles of
build:
> 
>  1) Command line makefile
>  2) IDE invoked internal build
>  3) IDE invoked external makefile
> 
> VC supports all three of these usage patterns for its native compiler.
> However, if you want to use a cross-compiler then only options 1 and 3
> are available.

I just checked with some people using VS for cross-compiling. Common
practice here is method 3 mentioned above. A plugin has been developed
for error parsing and code navigation. This method is good enough.
Method 1 seems to be possible. Is method 3 possible with CMake.

> VC does support parsing of externally invoked tools, but you have to
fit
> in with how it expects the error messages to be formatted, this is how
> we used to integrate Lint into our VC IDE.

Regards,
Kishore


More information about the CMake mailing list