FS#66579 - spdlog installation is broken: does not include fmt package
Attached to Project:
Community Packages
Opened by Kovac (kovac) - Thursday, 07 May 2020, 15:16 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 07 May 2020, 16:13 GMT
Opened by Kovac (kovac) - Thursday, 07 May 2020, 15:16 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 07 May 2020, 16:13 GMT
|
Details
Description:
After installing spdlog and using it in a cmake project, I get the following error: FAILED: CMakeFiles/cindel.dir/main.cpp.o /usr/bin/clang++ -std=gnu++17 -MD -MT CMakeFiles/cindel.dir/main.cpp.o -MF CMakeFiles/cindel.dir/main.cpp.o.d -o CMakeFiles/cindel.dir/main.cpp.o -c ../main.cpp In file included from ../main.cpp:2: In file included from /usr/include/spdlog/common.h:38: /usr/include/spdlog/fmt/fmt.h:22:10: fatal error: 'spdlog/fmt/bundled/core.h' file not found #include <spdlog/fmt/bundled/core.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. Additional info: * package version(s): 1.5.0-1 * config and/or log files etc. * link to upstream bug report, if any: https://github.com/gabime/spdlog Steps to reproduce: 1. Install spdlog using `pacman -S spdlog` 2. Create a cmake project directory and put the following CMakeLists.txt file in it: project(SpdlogBug LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_executable(spdlogbug main.cpp) find_package(spdlog REQUIRED) target_link_libraries(spdlogbug spdlog) 3. Create a main.cpp file in the same directory with the following content: #include <spdlog/spdlog.h> #include <spdlog/sinks/stdout_color_sinks.h> int main(int argc, char *argv[]) { auto console = spdlog::stdout_color_mt("console"); spdlog::set_default_logger(console); spdlog::set_level(spdlog::level::trace); spdlog::trace("Hello!"); return 0; } 4. Compile the project by running cmake and then ninja (or whatever build tool you are using). |
This task depends upon
Closed by Doug Newgard (Scimmia)
Thursday, 07 May 2020, 16:13 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#64823
Thursday, 07 May 2020, 16:13 GMT
Reason for closing: Duplicate
Additional comments about closing: