I am trying to build RStudio server on AIX7.2. First of all, my cmake version is 3.16.0 and I compiled boost 1.70.0 with the following statement to include all libraries.
./bootstrap.sh --with-python=`which python3` \
--with-python-root=$PYTHON_ROOT \
--with-libraries=all\
--prefix=/software/boost/boost_1_70_0
In rstudio_server/CMakeLists.txt file, I added the following statements:
set(Boost_DEBUG 1)
set(BOOST_ROOT "/software/boost/boost_1_70_0")
SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "/software/boost/boost_1_70_0/boost")
SET(CMAKE_INCLUDEDIR ${CMAKE_INCLUDE_PATH} "/software/boost/boost_1_70_0/boost")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "/software/boost/boost_1_70_0/libs")
SET(CMAKE_THREAD_LIBS_INIT "-lpthread")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
SET(CMAKE_HAVE_THREADS_LIBRARY 1)
SET(CMAKE_USE_WIN32_THREADS_INIT 0)
SET(CMAKE_USE_PTHREADS_INIT 1)
SET(THREADS_PREFER_PTHREAD_FLAG ON)
FIND_PACKAGE(Boost)
IF (Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ADD_DEFINITIONS( "-DHAS_BOOST" )
ENDIF()
My cmake statement is cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release > cmake.log 2>&1. It has the following error:
CMake Error at /opt/freeware/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Boost (missing: atomic chrono date_time filesystem iostreams
program_options random regex system thread) (found suitable version
"1.70.0", minimum required is "1.63.0")
Can someone tell me why "atomic chrono date_time filesystem iostreams program_options random regex system thread" are missing? Somehow, I don't see boost "include" library after ./b2 install. I wonder if that is the root cause of the issue.
Thanks.