CMake Error! (CentOS)

Added by jennifersmith about 6 years ago

cmake -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=OFF -DWITH_NEL_TOOLS=OFF -DWITH_RYZOM_CLIENT=OFF -DWITH_RYZOM_TOOLS=OFF ..

-- The CXX compiler identification is unknown
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Looking for include files HAVE_EXECINFO_H
-- Looking for include files HAVE_EXECINFO_H - found
-- Looking for include files HAVE_STDINT_H
-- Looking for include files HAVE_STDINT_H - found
-- Looking for include files HAVE_SYS_TYPES_H
-- Looking for include files HAVE_SYS_TYPES_H - found
-- Looking for include files HAVE_INTTYPES_H
-- Looking for include files HAVE_INTTYPES_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for include files HAVE_UTIME_H
-- Looking for include files HAVE_UTIME_H - found
-- Looking for include files HAVE_DL_H
-- Looking for include files HAVE_DL_H - not found.
-- Looking for include files HAVE_LIMITS_H
-- Looking for include files HAVE_LIMITS_H - found
-- Looking for include files HAVE_MALLOC_H
-- Looking for include files HAVE_MALLOC_H - found
-- Looking for include files HAVE_SYS_PARAM_H
-- Looking for include files HAVE_SYS_PARAM_H - found
-- Looking for include files HAVE_SYS_MOUNT_H
-- Looking for include files HAVE_SYS_MOUNT_H - found
-- Looking for include files HAVE_SYS_STATVFS_H
-- Looking for include files HAVE_SYS_STATVFS_H - found
-- Looking for include files HAVE_PTHREAD
-- Looking for include files HAVE_PTHREAD - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- DEBUG size_t is 8
-- Check size of off_t
-- Check size of off_t - done
-- DEBUG off_t is 8
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for getsockname
-- Looking for getsockname - found
-- Looking for inet_ntoa
-- Looking for inet_ntoa - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for strptime
-- Looking for strptime - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for statvfs
-- Looking for statvfs - found
-- Looking for stat64
-- Looking for stat64 - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- checking for module 'libxml-2.0'
-- package 'libxml-2.0' not found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindLibXml2.cmake:50 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:105 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!


Replies (11)

RE: CMake Error! (CentOS) - Added by molator about 6 years ago

It's written:
- CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CentOS is a webhosting distro not a dev one, so dev packages are not installed by default.
Install gcc, g++, cpp

- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
Install libxml2-dev (or whatever the name on CentOS)

RE: CMake Error! (CentOS) - Added by molator about 6 years ago

Here a part of my notes for CentOS 5.7
yum install gcc gcc-c++ libtool automake autoconf cmake python-devel libxml2-devel libpng-devel curl-devel freetype-devel mesa-libGL-devel mysql-server mysql-devel libvorbis-devel

RE: CMake Error! (CentOS) - Added by jennifersmith about 6 years ago

[root@eagle952 build]# yum install gcc g++ cpp
Loaded plugins: priorities
Setting up Install Process
Package gcc-4.4.6-4.el6.x86_64 already installed and latest version
No package g++ available.
Package cpp-4.4.6-4.el6.x86_64 already installed and latest version
Nothing to do
[root@eagle952 build]# yum install libxml-devel
Loaded plugins: priorities
Setting up Install Process
No package libxml-devel available.
Error: Nothing to do

RE: CMake Error! (CentOS) - Added by molator about 6 years ago

Use the full command:
yum install gcc gcc-c++ libtool automake autoconf cmake python-devel libxml2-devel libpng-devel curl-devel freetype-devel mesa-libGL-devel mysql-server mysql-devel libvorbis-devel

RE: CMake Error! (CentOS) - Added by jennifersmith about 6 years ago

-- The CXX compiler identification is GNU
-- 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
-- DEBUG size_t is 8
-- DEBUG off_t is 8
-- checking for module 'libxml-2.0'
-- found libxml-2.0, version 2.7.6
-- Found LibXml2: /usr/lib64/libxml2.so
-- Found ZLIB: /usr/lib64/libz.so
-- Found PNG: /usr/lib64/libpng.so
-- Warning: Unable to find Jpeg!
-- Found FreeType: /usr/lib64/libfreetype.so
-- Found Ogg: /usr/lib64/libogg.so
-- Found Vorbis: /usr/lib64/libvorbis.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib64/libX11.so
-- Found XF86VidMode: /usr/lib64/libXxf86vm.so
-- Found OpenSSL: /usr/lib64/libssl.so
-- Found MySQL: /usr/include/mysql, optimized;/usr/lib64/mysql/libmysqlclient.so;/usr/lib64/libssl.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENAL_INCLUDE_DIR
used as include directory in directory /home/ryzom/code/nel/src/sound/driver/openal
OPENAL_LIBRARY
linked by target "nel_drv_openal" in directory /home/ryzom/code/nel/src/sound/driver/openal

-- Configuring incomplete, errors occurred!

RE: CMake Error! (CentOS) - Added by molator about 6 years ago

If i remember correctly, the openal package is deprecated.

You have to build openal from source:
wget http://connect.creativelabs.com/openal/Downloads/openal-soft-1.13.tbz2
tar xvfj openal-soft-1.13.tbz2
cd openal-soft-1.13
cd build
ccmake ..
make
make install

RE: CMake Error! (CentOS) - Added by jennifersmith about 6 years ago

cmake DWITH_NEL_TESTS=OFF DWITH_NEL_SAMPLES=OFF DWITH_NEL_TOOLS=OFF DWITH_RYZOM_CLIENT=OFF DWITH_RYZOM_TOOLS=OFF ..
-
DEBUG size_t is 8
-- DEBUG off_t is 8
-- Warning: Unable to find Jpeg!
-- Found MySQL: /usr/include/mysql, optimized;/usr/lib64/mysql/libmysqlclient.so;/usr/lib64/libssl.so
-- Configuring done
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/dms.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/scenario.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/user_connection_mgr.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/object.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/server_animation_module.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/server_admin_module.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/server_edition_module.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/string_mgr_module.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/scenario_entry_points.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/small_string_manager.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/r2_ligo_config.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/r2_modules_itf.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/r2_share_itf.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/ring_access.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/common/src/game_share/ring_session_manager_itf.cpp" is listed multiple times for target "ryzom_gameshare".
Warning: Source file "/home/ryzom/code/ryzom/server/src/server_share/r2_session_backup_module.cpp" is listed multiple times for target "ryzom_servershare".
Warning: Source file "/home/ryzom/code/ryzom/server/src/server_share/r2_vision.cpp" is listed multiple times for target "ryzom_servershare".
Warning: Source file "/home/ryzom/code/ryzom/server/src/server_share/r2_variables.cpp" is listed multiple times for target "ryzom_servershare".
-- Generating done
-- Build files have been written to: /home/ryzom/code/build

thank's

RE: CMake Error! (CentOS) - Added by molator about 6 years ago

You should should add to CMake command:
-DWITH_STATIC=ON -DWITH_STATIC_DRIVERS=ON

RE: CMake Error! (CentOS) - Added by jennifersmith about 6 years ago

My Machine:
AMD Athlon II X4 605e, Quad-Core
8 GB DDR3-RAM ECC

Command: make -j4 (?)

RE: CMake Error! (CentOS) - Added by molator about 6 years ago

Number of core + 1 => -j5
-j1 to debug

RE: CMake Error! (CentOS) - Added by jennifersmith about 6 years ago

make -j5
Building...

thank you!

(1-11/11)