kicad-developers team mailing list archive
Mailing list archive
Re: CMake help
Mm, normally you should use the mingw env in msys2, from your prompt it
appears you use the msys env.
Normally I would expect all psths it uses for binsries to be unic like,
that is /c instead of c:/
ons. 19. maj 2021 02.55 skrev Clifford Neal Simon <csimon@xxxxxxx>:
> Hi devs,
> I'm doing my first build from source, using msys2 on windows.
> I (shallow) cloned the main repository.
> I downloaded the tools and dependencies using pacman, according to here:
> Now I should be able to run cmake, but cmake fails.
> User@Programming MSYS ~/kicad/build/release
> $ /mingw64/bin/cmake -DCMAKE_BUILD_TYPE=Release \
> -G "MSYS Makefiles" \
> -DCMAKE_PREFIX_PATH=/mingw64 \
> -DCMAKE_INSTALL_PREFIX=/mingw64 \
> -DDEFAULT_INSTALL_PATH=/mingw64 \
> -- The C compiler identification is unknown
> -- The CXX compiler identification is unknown
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - failed
> -- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
> -- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
> CMake Error at
> The C compiler
> is not able to compile a simple test program.
> I looked at CMakeError.log. From what I can tell from there, it seems to
> be trying to compile "CMakeCCompilerId.c" with gcc but it passed the flags
> --target=arm-arm-none-eabi;-mcpu=cortex-m3 to gcc and gcc does not
> understand those flags. Those flags are very strange. I did not ask to
> cross-compile, and of course I would not expect for a cross-compilation to
> work. Have I missed a step?
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp