Path: csiph.com!weretis.net!feeder6.news.weretis.net!panix!.POSTED.::1!not-for-mail From: Grant Edwards Newsgroups: comp.arch.embedded Subject: Re: Makefile or IDE? Date: Mon, 6 Dec 2021 13:51:09 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: Injection-Date: Mon, 6 Dec 2021 13:51:09 -0000 (UTC) Injection-Info: reader1.panix.com; posting-host="::1"; logging-data="23952"; mail-complaints-to="abuse@panix.com" User-Agent: slrn/1.0.3 (Linux) Xref: csiph.com comp.arch.embedded:30948 On 2021-12-04, David Brown wrote: > >> I succeeded to use CMake for cross-compiling on PC Linux for Raspi OS >> Linux, but the compiler identification for a raw metal target was not >> happy when the trial compilation could not link a run file using the >> Linux run file creation model. > > That is kind of what I thought. CMake sounds like a good solution if > you want to make a program that compiles on Linux with native gcc, and > also with MSVC on Windows, and perhaps a few other native build > combinations. But it is not really suited for microcontroller builds as > far as I can see. (Again, I haven't tried it much, and don't want to do > it injustice by being too categorical.) I use CMake for cross-compilation for microcontroller stuff. I don't use it for my own code, but there are a few 3rd-party libraries that use it, and I don't have any problems configuring it to use a cross compiler. -- Grant