YavorGIvanov / sam.cpp

MIT License
1.26k stars 52 forks source link

error for cmake #27

Open yanzongs opened 7 months ago

yanzongs commented 7 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 7 months ago

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

alimaslax commented 4 months ago

I had this problem. Make sure to git clone imgui into that directory so you have its sources

git clone --recursive https://github.com/YavorGIvanov/sam.cpp