YavorGIvanov / sam.cpp

MIT License
1.24k stars 52 forks source link

error for cmake #27

Open yanzongs opened 2 months ago

yanzongs commented 2 months ago
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- x86 detected
-- Linux detected
-- Configuring done
CMake Error at examples/third-party/imgui/CMakeLists.txt:51 (add_library):
  Cannot find source file:

    imgui/backends/imgui_impl_sdl2.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at examples/third-party/imgui/CMakeLists.txt:7 (add_library):
  Cannot find source file:

    imgui/imgui.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at examples/third-party/imgui/CMakeLists.txt:51 (add_library):
  No SOURCES given to target: imgui-sdl2

CMake Error at examples/third-party/imgui/CMakeLists.txt:7 (add_library):
  No SOURCES given to target: imgui

CMake Generate step failed.  Build files cannot be regenerated correctly.
YavorGIvanov commented 2 months ago

Hey. Can you show me the contents of the examples/third-party/imgui/backends folder. Seems you are missing some sources there.