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

Imtui doesn't compile due to imgui headers not being found #46

Open
kamkow1 opened this issue Feb 24, 2023 · 2 comments
Open

Imtui doesn't compile due to imgui headers not being found #46

kamkow1 opened this issue Feb 24, 2023 · 2 comments

Comments

@kamkow1
Copy link

kamkow1 commented Feb 24, 2023

Hello,
I'm trying to use Imtui in my Cmake project, but Imtui doesn't compile.
here's the error:

[kamil@czarnepudlo build]$ cmake .. && make -j8
-- Configuring done
-- Generating done
-- Build files have been written to: /archive/ARCHIVE/sources/ce/build
[ 46%] Built target imgui-for-imtui
[ 53%] Built target ce_lib
[ 69%] Built target imtui
[ 76%] Building CXX object CMakeFiles/ce_exe.dir/source/main.cpp.o
Scanning dependencies of target imtui-ncurses
[ 84%] Building CXX object thirdparty/imtui/src/CMakeFiles/imtui-ncurses.dir/imtui-impl-ncurses.cpp.o
In file included from /archive/ARCHIVE/sources/ce/source/main.cpp:3:
/archive/ARCHIVE/sources/ce/thirdparty/imtui/include/imtui/imtui.h:8:10: fatal error: 'imgui/imgui.h' file not found
#include "imgui/imgui.h"
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/ce_exe.dir/build.make:82: CMakeFiles/ce_exe.dir/source/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:158: CMakeFiles/ce_exe.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 92%] Linking CXX static library libimtui-ncurses.a
[ 92%] Built target imtui-ncurses
make: *** [Makefile:171: all] Error 2

Also, yes, I did clone the repo with --recursive so the imgui submodule is present in the third-party directory

@ggerganov
Copy link
Owner

Does it compile when you follow the instructions from the README?
I think it should since the CI runs are successful. I guess the CMakeLists need some updates in order to be able to use them in other projects.

@kamkow1
Copy link
Author

kamkow1 commented Mar 1, 2023

Does it compile when you follow the instructions from the README? I think it should since the CI runs are successful. I guess the CMakeLists need some updates in order to be able to use them in other projects.

It works when I build it and install globally on my system. What I'm trying to do is use Imtui as a Cmake subdirectory inside of a project

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