ggerganov / imtui

ImTui: Immediate Mode Text-based User Interface C++ Library
https://imtui.ggerganov.com
MIT License
3.03k stars 126 forks source link

build error on linux #51

Open ayaankhan98 opened 11 months ago

ayaankhan98 commented 11 months ago

unable to build on linux following instructions in README

it throws the following error, unable to find third party lib headers DearImGUI

$ cmake ..                                                                                                                                                                                                                      [19:52:07]
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.42.0")
-- Found Curses: /usr/lib/libcurses.so
-- Looking for nodelay in /usr/lib/libncurses.so
-- Looking for nodelay in /usr/lib/libncurses.so - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found CURL: /usr/lib/libcurl.so (found version "8.3.0")
-- Configuring done (1.4s)
CMake Error at third-party/CMakeLists.txt:15 (add_library):
  Cannot find source file:

    imgui/imgui/imgui.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc

CMake Error at third-party/CMakeLists.txt:15 (add_library):
  No SOURCES given to target: imgui-for-imtui
tzsz0 commented 10 months ago

Hey, it looks like you forgot to update the submodule. Please run git submodule update --init --recursive and try again