简体   繁体   中英

Could not find CMake package configuration file for "PugiXml"

I am trying to build a tool from a git repo and after executing "cmake.." I get the following error:

Could not find a package configuration file provided by "PugiXml" with any
of the following names:

PugiXmlConfig.cmake
pugixml-config.cmake

Add the installation prefix of "PugiXml" to CMAKE_PREFIX_PATH or set
"PugiXml_DIR" to a directory containing one of the above files.  If
"PugiXml" provides a separate development package or SDK, be sure it has
been installed.

I also got this error for Eigen3 and Qt5. I solved them by executing sudo apt install libeigen3-dev / sudo apt install libqt5svg5-dev . But apparently this is not working for pugiXml with sudo apt install libpugixml-dev .

Anyone got a solution for this?

I use the centos os, When I install soft from the vcpkg , it allways pop the error, here is how i fix it.

  1. sodo yum install 'softname' like 'pugixml' or 'libxml2'.then it will tell us what lib we should install
  2. install the specify lib, like 'sudo yum install sudo yum install pugixml-devel' or 'sudo yum install libxml-devel'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM