"Message:
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.
"
thanks. But your trick did not. I still get the error:
$ ls -l
drwxr-xr-x 22 me me 4096 2010-12-15 22:00 plplot-5.9.7
$ cmake -DMAKE_INSTALL_PREFIX=/usr/lib ~/Downloads/plplot-5.9.7 &>cmake.out
CMake Error at CMakeLists.txt:206 (pkg_config_link_flags):
Unknown CMake command "pkg_config_link_flags".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
--Nasser
The line 206 that contains the pkg_config_link_flags command occurs in the CMakeLists.txt file that is in the src subdirectory. Together with the warning message about there not being a minimum version requirement, I have the feeling that you have not downloaded all the stuff
and are instead working in the src subdirectory.
Does your directory plplot-5.9.7 contain the following subdirectories: bindings, cmake, data, ..., src, sys, utils, www and a number of files such as CMakeLists.txt and NEWS?
If not, please download the whole source tree.
"Does your directory plplot-5.9.7 contain the following subdirectories:
bindings, cmake, data, ..., src, sys, utils, www and a number of files such
as CMakeLists.txt and NEWS?
If not, please download the whole source tree."
Hello;
Yes, ofcourse. I just downloaded
-rw-r--r-- 1 me me 31725568 2010-12-15 18:23 plplot-5.9.7.tar
from
https://sourceforge.net/projects/plplot/files/plplot/5.9.7%20Source/
Here is the listing:
me@me-VirtualBox:~/Downloads$ ls -l plplot-5.9.7
total 784
-rw-r--r-- 1 me me 733 2010-10-03 06:11 abi-compliance-checker.xml.template.in
-rw-r--r-- 1 me me 512 2010-10-03 06:11 AUTHORS
drwxr-xr-x 19 me me 4096 2010-12-15 19:15 bindings
drwxr-xr-x 3 root root 4096 2010-12-15 19:17 build
-rw-r--r-- 1 me me 18377 2010-10-03 06:11 ChangeLog
drwxr-xr-x 4 me me 4096 2010-12-15 19:15 cmake
-rw-r--r-- 1 me me 11144 2010-12-15 19:25 CMakeCache.txt
drwxr-xr-x 5 me me 4096 2010-12-15 19:25 CMakeFiles
-rw-r--r-- 1 me me 9020 2010-10-03 06:11 CMakeLists.txt
-rw-r--r-- 1 me me 579 2010-12-15 21:45 cmake.out
-rw-r--r-- 1 me me 10207 2010-10-03 06:11 config.h.cmake
-rw-r--r-- 1 me me 25265 2010-10-03 06:11 COPYING.LIB
-rw-r--r-- 1 me me 3646 2010-10-03 06:11 Copyright
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 data
drwxr-xr-x 3 me me 4096 2010-12-15 19:15 debian
drwxr-xr-x 3 me me 4096 2010-12-15 19:15 doc
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 drivers
drwxr-xr-x 16 me me 4096 2010-12-15 19:15 examples
-rw-r--r-- 1 me me 80782 2010-10-03 06:11 FAQ
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 fonts
drwxr-xr-x 3 me me 4096 2010-12-15 19:15 git
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 include
-rw-r--r-- 1 me me 5701 2010-10-03 06:11 INSTALL
drwxr-xr-x 6 me me 4096 2010-12-15 19:15 lib
-rw-r--r-- 1 me me 29384 2010-10-03 06:11 NEWS
-rw-r--r-- 1 me me 297035 2010-10-03 06:11 OLD-README.release
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 pkgcfg
-rw-r--r-- 1 me me 4513 2010-10-03 06:11 plplot-c-style.el
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 plplot_test
-rw-r--r-- 1 me me 7687 2010-10-03 06:11 PROBLEMS
-rw-r--r-- 1 me me 5021 2010-10-03 06:11 README
-rw-r--r-- 1 me me 1912 2010-10-03 06:11 README.developers
-rw-r--r-- 1 me me 4563 2010-10-03 06:11 README.emacs
-rw-r--r-- 1 me me 50096 2010-10-03 06:11 README.release
-rw-r--r-- 1 me me 12926 2010-10-03 06:11 README.Release_Manager_Cookbook
-rw-r--r-- 1 me me 9769 2010-10-03 06:11 README.testing
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 rpm
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 scripts
-rw-r--r-- 1 me me 359 2010-10-03 06:11 SERVICE
drwxr-xr-x 3 me me 4096 2010-12-15 22:00 src
-rw-r--r-- 1 me me 8549 2010-10-03 06:11 ToDo
-rw-r--r-- 1 me me 59693 2010-10-03 06:11 uncrustify.cfg
drwxr-xr-x 2 me me 4096 2010-12-15 19:15 utils
drwxr-xr-x 6 me me 4096 2010-12-15 19:15 www
me@me-VirtualBox:~/Downloads$
I am running this in unubu.
To build, 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"
Thanks
--Nasser
That error "No cmake_minimum_required command is present" shows you are still not accessing the correct
source tree. I suspect you have some stale bad cmake results that are keeping you from getting a good result. So
try a completely fresh build where the source tree is newly downloaded (or freshly unpacked from the
tarball) into an initially empty directory. Also, invoke cmake from a build directory that is completely empty before you start. Note, the directory you refer to with your cmake command should contain a CMakeLists.txt file starting with the following line:
# Top-level CMakeLists.txt for PLplot
I am virtually positive what you are reporting is not a bug because nobody else has reported anything like you are describing. Instead, I think you are just having trouble starting the build process with cmake. So I am reclassifying this as a support request but leaving it open in case you have any more difficulty after invoking cmake from an initially empty build directory that uses the correct clean source directory.
Closed (too old).