Hi,

I am trying to use Cmake to compile a program on Scientific Linux release 6.7, and I get the following error with both the precompiled binary and my own compiled version of Cmake:



[root@drhwks]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
CMake Error at CMakeLists.txt:20 (include):
  include could not find load file:

    MacroEnsureVersion


-- Using included inchi library.
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DI
RS)
CMake Error at CMakeLists.txt:231 (macro_ensure_version):
  Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".
[root@drhwks build]# ls -lht | head
total 24K
-rw-r--r--. 1 root root  17K May  1 10:13 CMakeCache.txt
drwxr-xr-x. 5 root root 4.0K Apr 30 09:09 CMakeFiles
[root@drhwks build]# rm CMake
CMakeCache.txt  CMakeFiles/
[root@drhwks build]# rm -rf CMake*
[root@drhwks build]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:20 (include):
  include could not find load file:

    MacroEnsureVersion


-- Using included inchi library.
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DI
RS)
-- Looking for conio.h
-- Looking for conio.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - found
-- Looking for regex.h
-- Looking for regex.h - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for rint
-- Looking for rint - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for sranddev
-- Looking for sranddev - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of clock_t
-- Check size of clock_t - done
CMake Error at CMakeLists.txt:231 (macro_ensure_version):
  Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".



Can anyone please help?

Regards,
Douglas Houston



--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to