rsocket / rsocket-cpp

C++ implementation of RSocket
http://rsocket.io
Apache License 2.0
253 stars 99 forks source link

Target "yarpl" links to target "Boost::filesystem" but the target was not found. #903

Open cello86 opened 3 years ago

cello86 commented 3 years ago

Hi All, we tried to build an old version of rsocket-cpp for mcrouter support but we found an issue during the CMAKE generation phase.

Expected Behavior

We expect the successfull generation via cmake command

Actual Behavior

The cmake generation fails.

Steps to Reproduce

We execute this command to generate via cmake the config:

&& tar xfz /tmp/rsocket-cpp-$RSOCKET_CPP_VERSION.tar.gz -C /tmp/ \
&& mkdir -p /tmp/rsocket-cpp-$RSOCKET_CPP_VERSION/_build/ \
&& cd /tmp/rsocket-cpp-$RSOCKET_CPP_VERSION/_build/ \
&& export CXXFLAGS="$CXXFLAGS -fPIC" \
&& cmake3 -Wno-dev .. \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INCLUDE_PATH="/usr/local/include" \
-DCMAKE_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:/usr/lib64:/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/"  \
-DCMAKE_PREFIX_PATH="/usr/local/include" \
-DBUILD_BENCHMARKS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=DEBUG \
-DBOOST_ROOT="/usr/local" \
-DBoost_NO_BOOST_CMAKE=ON \

The generation result is:

-- Found folly: /usr/local
-- Configuring done
CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::context" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::filesystem" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::program_options" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::regex" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::system" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::thread" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::context" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::filesystem" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::program_options" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::regex" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::system" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::thread" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::context" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::filesystem" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::program_options" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::regex" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::system" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at CMakeLists.txt:201 (add_library):
  Target "ReactiveSocket" links to target "Boost::thread" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::context" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::filesystem" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::program_options" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::regex" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::system" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

CMake Error at yarpl/CMakeLists.txt:67 (add_library):
  Target "yarpl" links to target "Boost::thread" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BOOST_ROOT
    Boost_NO_BOOST_CMAKE

CMake Generate step failed.  Build files cannot be regenerated correctly.

Possible Solution

N/A

Your Environment

pavars commented 3 years ago

Just wondering if you found a fix for this problem, as I'm having the same issue?