我下载并构建了带有vcpkg的mapnik库,之后我尝试将mapnik添加到:"/home/ubuntuc/vcpkg/packages/mapnik_x64-linux/include“中,GCC C++编译器包含了:"/home/ubuntuc/vcpkg/packages/mapnik_x64-linux/lib”,而GCC C++链接器:“/home/ubuntuc/vcpkg/packages/mapnik_x64-linux/lib”added.Whenı试图构建它给我的如下内容:
"Description Resource Path Location Type
recipe for target 'src/hello.o' failed subdir.mk /hello/Debug/src line 18 C/C++ Problem,
Description Resource Path Location Type
make: *** [src/hello.o] Error 1 hello C/C++ Problem,
Description Resource Path Location Type
recipe for target 'hello' failed makefile /hello/Debug line 58 C/C++ Problem,
Description Resource Path Location Type
fatal error: boost/operators.hpp: there is no such a file or directory hello line 33, external location: /home/ubuntuc/vcpkg/packages/mapnik_x64-linux/include/mapnik/color.hpp C/C++ Problem.是我把库添加错了,还是在构建库时出现了问题。
发布于 2022-03-17 13:50:15
正如@zkoza所说,mapnik需要增强。如果使用vcpkg安装mapnik,则还需要添加所有mapnik依赖项。因为这是相当多的,所以我建议使用pkgconfig oder来管理它们。
https://stackoverflow.com/questions/70666659
复制相似问题