运行make时
g++ -pedantic -Wall -W -g
pkg-config --cflags --libs liblog4cxx dbus-c++-1
-DDOUANE_VERSION=\"0.9.0\" -o freedesktop/desktop_file.o -c freedesktop/desktop_file.cpp In file included from freedesktop/desktop_file.cpp:1:0: freedesktop/desktop_file.h:5:37: fatal error: boost/filesystem/path.hpp: No such file or directory compilation terminated. Makefile:36: recipe for target 'freedesktop/desktop_file.o' failed make: *** [freedesktop/desktop_file.o] Error 1
明白了这一点,我在一个具有 XFCE 环境的发行版上,因为我搜索了与 XFCE 有关的 freedesktop/desktop_file.cpp。但主要问题是线路
boost/filesystem/path.hpp
最佳答案
https://stackoverflow.com/a/25770596/1320686给出的解决方案
sudo apt-get install libboost-dev
关于linux - 编译 fatal error boost/文件系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47364337/