Skip to content

Export Compile Command Issue | Can't Find Headers #387

Answered by ArthurSonzogni
utsur0 asked this question in Q&A
Discussion options

You must be logged in to vote

I tried your CMakeLists.txt on Linux: I was able to compile and execute "tui".

I got compile_commands.json similar to yours:

[
{
  "directory": "/tmp/test/build",
  "command": "/usr/bin/c++   -I/tmp/test/src -I/tmp/test/build/_deps/ftxui-src/include    -std=gnu++17 -o CMakeFiles/tui.dir/src/main.cpp.o -c /tmp/test/src/main.cpp",
  "file": "/tmp/test/src/main.cpp"
}
]

If I execute the command from an empty directory, I get:

/usr/bin/c++   -I/tmp/test/src -I/tmp/test/build/_deps/ftxui-src/include    -std=gnu++17 -o CMakeFiles/tui.dir/src/main.cpp.o -c /tmp/test/src/main.cpp
/tmp/test/src/main.cpp:3:10: fatal error: ftxui/dom/elements.hpp: Aucun fichier ou dossier de ce type
    3 | #includ…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by utsur0
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #386 on April 27, 2022 07:14.