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

Reference to zstd library #7

Open
cvilas opened this issue Oct 24, 2024 · 6 comments
Open

Reference to zstd library #7

cvilas opened this issue Oct 24, 2024 · 6 comments

Comments

@cvilas
Copy link

cvilas commented Oct 24, 2024

Hey @filippobrizzi

Thanks for this repo. Came handy trying to integrate mcap on a personal test project. Really strange the upstream project has flaky CMake support. Your MR would have solved it!

Anyway, on my machine (Kubuntu 24.04), the following had to be changed from zstd::libzstd to zstd::zstd. Just a heads up. Not sure if this was tested before
https://github.com/olympus-robotics/mcap_builder/blob/main/src/CMakeLists.txt#L22

@filippobrizzi
Copy link
Contributor

Hey @cvilas,
I just checked with the latest zstd version and it creates zstd::libzstd target. How do you compile it?

@cvilas
Copy link
Author

cvilas commented Oct 24, 2024

On Kubuntu 24.04

cd mcap_builder/build
cmake ..

gives me:

-- The CXX compiler identification is GNU 14.2.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 zstd from /usr/lib/x86_64-linux-gnu/cmake/zstd
-- Configuring done (1.6s)
CMake Error at src/CMakeLists.txt:28 (target_link_libraries):
  Target "mcap" links to:

    zstd::libzstd

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

But I see now that zstd::zstd doesn't work either (I am confused. Sorry. Need to check if the behaviour is different on Fedora vs Ubuntu)

@filippobrizzi
Copy link
Contributor

filippobrizzi commented Oct 24, 2024

You have zstd installed globally, I do not know what version that is

@damien-robotsix
Copy link

damien-robotsix commented Nov 5, 2024

Hello :)
Same issue here (Ubuntu 24.04). Any news on this?

@filippobrizzi
Copy link
Contributor

Latest version of zstd creates target zstd::libzstd. If you are using an older version, you either upgrade zstd or fork this repo and change it locally.

@damien-robotsix
Copy link

Thank you to make it clear :)

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

3 participants