👋👋,CMake can't find the source files:
XMNXofficial opened this issue · comments
XMNXofficial commented
Hello! I want to make the sources in Ubuntu22.10,and i ran into a problem🥵🥵
I'm very sorry I came for your help.
CMake Error at external/CMakeLists.txt:33 (add_library):
Cannot find source file:
/home/zhouzihao/MYFILE/imgui_learning1/hello_imgui/external/imgui/misc/cpp/imgui_stdlib.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at src/hello_imgui/CMakeLists.txt:11 (add_library):
Cannot find source file:
/home/zhouzihao/MYFILE/imgui_learning1/hello_imgui/external/imgui/backends/imgui_impl_opengl3.h
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at external/CMakeLists.txt:33 (add_library):
No SOURCES given to target: imgui
I cd to this path ,and I can't find these sources.
ps.I use these commands to make CMake file
mkdir build && cd build && cmake .. && cmake --build . -j 4
./hello_world
Pascal Thomet commented
Hi!
Did you checkout the submodules?
if not, you need to run:
git submodule update --init --recursive
XMNXofficial commented
你好!
您是否签出了子模块?
如果没有,则需要运行:
git submodule update --init --recursive
thanks!