Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cello86 opened this issue Feb 9, 2021 · 1 comment

Comments

@cello86
Copy link

cello86 commented Feb 9, 2021

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

  • RSocket version(s) used: 2020.05.04.00
  • OS and version (eg uname -a): centos 7.9
@pavars
Copy link

pavars commented Jun 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants