Skip to content
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

Compilation fails due to FindBoostThreadpool.cmake missing #15

Open
fabval opened this issue Jan 7, 2021 · 4 comments
Open

Compilation fails due to FindBoostThreadpool.cmake missing #15

fabval opened this issue Jan 7, 2021 · 4 comments

Comments

@fabval
Copy link

fabval commented Jan 7, 2021

I'm trying to build rpc library from source.
The boost libraries have been installed with command:
\.b2 link=shared.

When executing command:
build>cmake -DRPCPROTO=rpcdds -A x64 ..

the boost libraries are correctly found:
-- Found Boost: F:/boost_1_75_0/boost_1_75_0 (found version "1.75.0") found components: thread system date_time chrono regex atomic

but cmake fails at the following instruction:
find_package(BoostThreadpool REQUIRED)

with the following message:

  By not providing "FindBoostThreadpool.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "BoostThreadpool", but CMake did not find one.

  Could not find a package configuration file provided by "BoostThreadpool"
  with any of the following names:

    BoostThreadpoolConfig.cmake
    boostthreadpool-config.cmake

  Add the installation prefix of "BoostThreadpool" to CMAKE_PREFIX_PATH or
  set "BoostThreadpool_DIR" to a directory containing one of the above files.
  If "BoostThreadpool" provides a separate development package or SDK, be
  sure it has been installed.

But no file containing "BoostThreadpool" is present in any directory and at the moment is not possible to complete the compilation

@richiware
Copy link
Member

Which commit are you using? Last commit modifies how this project should be compiled. After this commit the project is able to be compiled using colcon. But it is inmature because we have to update the project documentation.

I recommend you to use the previous commit which matches with the current documentation.

@fabval
Copy link
Author

fabval commented Jan 11, 2021

Thank you for your support, Ricardo.

I was using the last November commit "Colcon support (#13)".

I've switched to the previous commit "Update to Fast DDS v2.0.0 (#11)" and now cmake is successful.

I've built the rpcdds.sln and also the Install project. Now I have the two libraries.

What should I do to have the rpcddsgen.bat working? It is complaining about a missing jar.

@richiware
Copy link
Member

You should compile the java application. First update git submodules.

git submodule update --init

Go to fastrpcgen directory and use gradle to compile the java application.

gradle build

@fabval
Copy link
Author

fabval commented Jan 18, 2021

I've installed gradle and built the jar using it.
But when I launch the rpcddsgen.bat it complains about missing platform.
I've manually tried to fill a folder like the one in the rpcdds bin folder that is present inside your binaries but without any success.

I have fastdds version 2.1 installed from the binaries and I'm trying to build rpcoverdds against it.
I'm building the visual studio solution generated by cmake with the branch previous to the one introducing the colcon support.

I'm not using cmake with EPROSIMA_INSTALLER flag because I need to link against the existing third party (without using the git module).

Maybe without that flag, I'm missing something.

Is it possibile to proceed like I'm trying or should I wait for the complete colcon support?
In the latter case, is rpcoverdds going to be aligned with the latest version of fastdds?
I need to have both in the same application, ideally sharing the same partecipant and secure settings.

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