Giter VIP home page Giter VIP logo

Comments (5)

n1rml avatar n1rml commented on May 28, 2024

I am not able to identify what the problem is, as the ble_hid folder is included in the components section

Component paths: C:/Users/G/esp/esp-idf/components/app_trace C:/Users/G/esp/esp-idf/components/app_update C:/Users/G/esp/esp-idf/components/asio C:/Users/G/esp/esp32_mouse_keyboard/main/ble_hid ...

these are the errors

CMake Error at C:/Users/G/esp/esp-idf/tools/cmake/component.cmake:445 (add_library):
  Cannot find source file:

    C:/Users/G/esp/esp32_mouse_keyboard/main/ble_hid/ble_hidd_demo_main.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  C:/Users/G/esp/esp-idf/tools/cmake/component.cmake:508 (idf_component_register)
  main/ble_hid/CMakeLists.txt:7 (register_component)


CMake Error at C:/Users/G/esp/esp-idf/tools/cmake/component.cmake:445 (add_library):
  No SOURCES given to target: __idf_ble_hid
Call Stack (most recent call first):
  C:/Users/G/esp/esp-idf/tools/cmake/component.cmake:508 (idf_component_register)
  main/ble_hid/CMakeLists.txt:7 (register_component)


-- Build files have been written to: C:/Users/G/esp/esp32_mouse_keyboard/build
cmake failed with exit code 1

i am using latest esp tool for windows(v2.2) and esp-idf v4 release

from esp32_mouse_keyboard.

benjaminaigner avatar benjaminaigner commented on May 28, 2024

Dear @n1rml
as we do not have any CMake files in our project, I think you wrote one for yourself?
If possible, please provide the CMakeLists.txt file and I can have a look.

Then we could integrate them into the project.

Greetings

from esp32_mouse_keyboard.

n1rml avatar n1rml commented on May 28, 2024

i dont know anything about cmake files so i just copied one from an example in esp-idf.
i looked at many examples and all of the CMakeLists.txt files were similar and didn't contain much information, just the project name
heres the file i'm using
CMakeLists.txt

from esp32_mouse_keyboard.

benjaminaigner avatar benjaminaigner commented on May 28, 2024

Your example is basically correct, but there are additional files needed for each subfolder ("component" in esp-idf terms).

I've added working CMakeFiles. They were generated by the converter script: https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#automatic-conversion-tool

If there are any problems, feel free to re-open this issue.

Greetings

from esp32_mouse_keyboard.

n1rml avatar n1rml commented on May 28, 2024

Thank you very much

from esp32_mouse_keyboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.