nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

[bug] cmake building failed

Open zyy37 opened this issue 2 years ago • 2 comments

image I compile on Linux and arm64 machines, but using cmake will result in compilation failure. The variable ./build/.config:103:CONFIG_HOST_X86_64=y value in the .config file generated by cmake was found to be incorrect and cannot be set by cmake. I'm not sure if there are any other mistakes. The configure.sh tool can automatically generate, but it cannot generate files in the build folder and cannot be used by cmake.

zyy37 avatar Nov 25 '23 18:11 zyy37

@zyy37 thank you for reporting the issue! I think the issue is:

choice
        prompt "Host CPU Type"
        default HOST_X86_64

So, currently NuttX building system (both Makefile and CMake) are not able to autodetect the host for SIM target. Maybe if you run "make menuconfig" before "cmake --build build" it will be fixed. Unfortunately I don't have an ARM64 Mac to confirm it.

@pkarashchenko or @cederom could you please confirm?

acassis avatar Nov 27 '23 21:11 acassis

Perhaps Makefile has more comprehensive features, so I will try to use it as much as possible. Thanks

zyy37 avatar Nov 28 '23 18:11 zyy37