cmake error in threadx build for cortex M4
Hi,
I am facing a problem while building threadx library through cmake:
1) I have used cmake (gui), Ninja and GCC Compilers for ARM-NONE-EABI downloaded from the links given in the main page of threadx github.
2) I have added Ninja to the environment path
3) I have done following settings in cmake (gui)
a) Where is the source code: C:/Users/Lab/Downloads/threadx-master (1)/threadx-master/ports/cortex_m4/gnu
b) Where to build the binaries: C:/Users/Lab/Downloads/New folder
c) Configure:
- Specify generator for this project: Ninja
- Specify toll chain for cross compilation: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe
4) I am getting following error in cmake:
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe:1:
Parse error. Expected a command name, got unquoted argument with text
"MZ�".
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake:124 (include)
CMakeLists.txt
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.23)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete, errors occurred!
Please help in resolving this problem as i couldn't find any solution on the internet.
Thanks,
Prasanna