Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👋👋,CMake can't find the source files: #51

Closed
XMNXofficial opened this issue Mar 17, 2023 · 2 comments
Closed

👋👋,CMake can't find the source files: #51

XMNXofficial opened this issue Mar 17, 2023 · 2 comments

Comments

@XMNXofficial
Copy link
Contributor

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
@pthom
Copy link
Owner

pthom commented Mar 17, 2023

Hi!

Did you checkout the submodules?

if not, you need to run:

git submodule update --init --recursive

@XMNXofficial
Copy link
Contributor Author

你好!

您是否签出了子模块

如果没有,则需要运行:

git submodule update --init --recursive

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants