pdf2htmlEXをcmakeするとpopplerがインストール済みにもかかわらずエラーになる


症状

$ cmake .
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
-- checking for module 'poppler>=0.25.0'
--   package 'poppler>=0.25.0' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
  A required package was not found

対処

poppler の configure オプションを変更し、ビルドし直す.poppler-0.36.0 で確認済み


$ $export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
$  ./configure "--enable-xpdf-headers"
$ make clean
$ make
$ make install

コメント

このブログの人気の投稿

AppSheet の Data Source に Heroku Postgres を追加したい