natanaeljr / esp32-MPU-driver

ESP32 full library for all MPU6000 MPU6050 MPU6500 MPU9150 MPU9250 with SPI and I2C support and more.
MIT License
249 stars 67 forks source link

unable to install using cmake #17

Open yo90bosses opened 4 years ago

yo90bosses commented 4 years ago

Im totally new to all this but im trying to use this library in platformIO for visual studio code. Im trying to use the make menuconfig command but that does not work so i installed cmake and its giving me errors when i run it in the master folder using cmake ./

Error im getting:

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.

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763. CMake Error at CMakeLists.txt:7 (register_component): Unknown CMake command "register_component".

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.16)

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!

Muammer06 commented 3 years ago

hey, did you find a solution. I am new too