venediktov / vanilla-rtb

Real Time Bidding (RTB) - Demand Side Platform framework
http://forkbid.com
GNU General Public License v3.0
318 stars 84 forks source link

boost_find_component Macro invoked with incorrect arguments for macro named: boost_find_component #91

Closed parisa-hr closed 2 years ago

parisa-hr commented 2 years ago

Hi I want to build your project and follow your instructions. I use ubuntu 20.04,boost Version: 1.71.0 and cmake version 3.23.2.

as I run cmake -DCMAKE_BUILD_TYPE=Debug .. -G "Unix Makefiles" :

-- The CXX compiler identification is GNU 9.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.67.0")  
-- Looking for C++ include pthread.h
-- Looking for C++ include 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  
CMAKE_INSTALL_PREFIX /home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/examples
CMAKE_CURRENT_SOURCE_DIR /home/parisa/Projecs/Parisa_G/vanilla-rtb
CMAKE_CURRENT_BIN_DIR /home/parisa/Projecs/Parisa_G/vanilla-rtb/Release
CMake Deprecation Warning at jsonv/CMakeLists.txt:13 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- JSONV version: 1.2.0
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0")  
-- RUNTIME_INSTALL_DIR == /home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/examples/bin
-- LIBRARY_INSTALL_DIR == /home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/examples/lib64
-- INCLUDE_INSTALL_DIR == /home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/examples/include
-- CONFIG_INSTALL_DIR == /home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/examples/lib64/cmake/jsonv
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  CRUD/service/CMakeLists.txt:10 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  CRUD/service/CMakeLists.txt:10 (find_package)

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0")  missing components: system regex
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: log system serialization program_options 
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  rtb/CMakeLists.txt:21 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  rtb/CMakeLists.txt:21 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  rtb/CMakeLists.txt:21 (find_package)

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0")  missing components: log serialization system
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  examples/CMakeLists.txt:6 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  examples/CMakeLists.txt:6 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  examples/CMakeLists.txt:6 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  examples/CMakeLists.txt:6 (find_package)

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
  boost_find_component Macro invoked with incorrect arguments for macro
  named: boost_find_component
Call Stack (most recent call first):
  /usr/share/cmake-3.23/Modules/FindBoost.cmake:594 (find_package)
  examples/CMakeLists.txt:6 (find_package)

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0")  missing components: log program_options system serialization date_time
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: unit_test_framework 
-- benchmarks disabled (google.benchmark not found)
-- Configuring incomplete, errors occurred!
See also "/home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/CMakeFiles/CMakeOutput.log".
See also "/home/parisa/Projecs/Parisa_G/vanilla-rtb/Release/CMakeFiles/CMakeError.log".
parisa-hr commented 2 years ago

Screenshot from 2022-06-16 22-08-41

Screenshot from 2022-06-16 22-08-57

Screenshot from 2022-06-16 22-09-13

Screenshot from 2022-06-16 22-09-35

what should I do ?

parisa-hr commented 2 years ago

This issue was fixed by changing the boost version to version "1.67.0"