Target "yarpl" links to target "Boost::filesystem" but the target was not found.
cello86 opened this issue · 1 comments
cello86 commented
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 commented
Just wondering if you found a fix for this problem, as I'm having the same issue?