Please read tips for efficient and successful posting and posting code
_ROOT Version:6.22/06
_Platform: Ubuntu 20.04.1 LTS
_Compiler: g++ 9.3.0
Hi, I am a newbie and would like to build ROOT manually, as suggested here: https://github.com/AGerrety/ROOT6PYTHON3
After following all the instructions from Building ROOT from source - ROOT , I was able to do everything but stuck at cmake --build . -- -j 4
I have created 3 directories, root_build, root_scr and root_install
.
The source file was unzipped in root_scr
and a directory root-6.22.06
was created.
Then, cd
into root_build
and ran cmake -DCMAKE_INSTALL_PREFIX=../root_install ../cztee/root_scr/root-6.22.06/
The following appeared:
β The C compiler identification is GNU 9.3.0
β The CXX compiler identification is GNU 9.3.0
β 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
β Found Git: /usr/bin/git (found version β2.25.1β)
β Looking for Python
β Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version β3.8.5β)
β Found Python2: /usr/bin/python2.7 (found version β2.7.18β) found components: Interpreter Development NumPy
β ROOT default compression algorithm: zlib
β PyROOT will be built for versions 3.8.5 (Main) and 2.7.18
β Found GCC. Major version 9, minor version 3
β Looking for pthread.h
β Looking for pthread.h - found
β Performing Test CMAKE_HAVE_LIBC_PTHREAD
β Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
β 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
β Found a 64bit system
β Found GNU compiler collection
β Performing Test GLIBCXX_USE_CXX11_ABI
β Performing Test GLIBCXX_USE_CXX11_ABI - Success
β ROOT Platform: linux
β ROOT Architecture: linuxx8664gcc
β Build Type: Release (flags = β-O3 -DNDEBUGβ)
β Compiler Flags: -O3 -DNDEBUG -std=c++11 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread
β Looking for ZLib
β Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version β1.2.11β)
β Looking for Freetype
β Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
β FreeType not found. Switching on builtin_freetype option
β Building freetype version 2.6.1 included in ROOT itself
β Looking for PCRE
β Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY)
β PCRE not found. Switching on builtin_pcre option
β Looking for LZMA
β Could NOT find LibLZMA (missing: LIBLZMA_LIBRARY LIBLZMA_INCLUDE_DIR LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
β LZMA not found. Switching on builtin_lzma option
β Building LZMA version 5.2.4 included in ROOT itself
β Looking for ZSTD
β Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIR ZSTD_VERSION)
β ZSTD not found. Switching on builtin_zstd option
β Performing Test CXX_FLAG_STD_CPLUSPLUS11
β Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success
β Performing Test C_FLAG_STD_C99
β Performing Test C_FLAG_STD_C99 - Success
β Performing Test C_FLAG_WALL
β Performing Test C_FLAG_WALL - Success
β Performing Test CXX_FLAG_WALL
β Performing Test CXX_FLAG_WALL - Success
β Performing Test C_FLAG_WEXTRA
β Performing Test C_FLAG_WEXTRA - Success
β Performing Test CXX_FLAG_WEXTRA
β Performing Test CXX_FLAG_WEXTRA - Success
β Performing Test C_FLAG_WUNDEF
β Performing Test C_FLAG_WUNDEF - Success
β Performing Test CXX_FLAG_WUNDEF
β Performing Test CXX_FLAG_WUNDEF - Success
β Performing Test C_FLAG_WSHADOW
β Performing Test C_FLAG_WSHADOW - Success
β Performing Test CXX_FLAG_WSHADOW
β Performing Test CXX_FLAG_WSHADOW - Success
β Performing Test C_FLAG_WCAST_ALIGN
β Performing Test C_FLAG_WCAST_ALIGN - Success
β Performing Test CXX_FLAG_WCAST_ALIGN
β Performing Test CXX_FLAG_WCAST_ALIGN - Success
β Performing Test C_FLAG_WCAST_QUAL
β Performing Test C_FLAG_WCAST_QUAL - Success
β Performing Test CXX_FLAG_WCAST_QUAL
β Performing Test CXX_FLAG_WCAST_QUAL - Success
β Performing Test C_FLAG_WSTRICT_PROTOTYPES
β Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
β Looking for xxHash
β Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
β xxHash not found. Switching on builtin_xxhash option
β Looking for LZ4
β Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
β LZ4 not found. Switching on builtin_lz4 option
β Looking for X11
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindX11.cmake:366 (find_package_handle_standard_args)
cmake/modules/SearchInstalledSoftware.cmake:16 (_find_package)
cmake/modules/SearchInstalledSoftware.cmake:304 (find_package)
CMakeLists.txt:192 (include)
β Configuring incomplete, errors occurred!
Then I tried to build Root in the root_build
directory and the following error appeared:
make: *** No targets specified and no makefile found. Stop.
But the directory CMakeFile does exist in the root_build directory.
Any help will be appreciated. Thanks.