#31 CMake Error at CMakeLists.txt:206 (pkg_config_link_flags):

closed
Alan W. Irwin
None
5
2010-12-16
2010-12-16
Nasser M. Abbasi
No

I trying to build plplot, and keep getting this error:

CMake Error at CMakeLists.txt:206 (pkg_config_link_flags):
Unknown CMake command "pkg_config_link_flags".

I am followed directions here from

http://plplot.sourceforge.net/docbook-manual/plplot-5.9.7.pdf

where it says:

"Here is the short story:
# Note many other cmake options are available besides -DCMAKE_INSTALL_PREFIX
# Inspect CMakeCache.txt after a preliminary cmake run to see an annotated
# list of the available options. Then remove CMakeCache.txt and try again.
cmake -DCMAKE_INSTALL_PREFIX=<install-prefix> \ <path-to-source-tree> >& cmake.out"

So, I typed:

cmake -DMAKE_INSTALL_PREFIX=/usr/lib ~/Downloads/plplot-5.9.7/src >& cmake.out

and the above are the errors.

I also tried cmake-gui, and get the same error there.

--Nasser

Discussion

  • Alan W. Irwin
    Alan W. Irwin
    2010-12-16

    • assigned_to: nobody --> airwin
     
  • Alan W. Irwin
    Alan W. Irwin
    2010-12-16

    I am changing this to the support request queue.

     
  • Alan W. Irwin
    Alan W. Irwin
    2010-12-16

    The answer is simply to drop "src" from the above command. In other words, path-to-source-tree refers to the top-directory in the source tree, not the src subdirectory of that. So the above command should read

    cmake -DMAKE_INSTALL_PREFIX=/usr/lib ~/Downloads/plplot-5.9.7 >& cmake.out

    I am positive this will work so I am closing this support request, but feel free to reopen or start a new one or, better yet, subscribe to the plplot-general mailing list and ask your support questions there.

     
  • Alan W. Irwin
    Alan W. Irwin
    2010-12-16

    • status: open --> closed