Comments (4)
Maybe the issue was already solved since it was reported one year ago.
I was also getting the same problem recently and instead of installing the dependency like apt-get install libcereal-dev
I came out that it works better by fetching the latest version, source code, of cereal within my dockerfile like:
RUN wget --no-check-certificate https://github.com/USCiLab/cereal/archive/refs/heads/master.zip \
&& unzip master.zip \
&& cd cereal-master \
&& mkdir build \
&& cd build \
&& cmake -Wno-dev .. \
&& make -j12\
&& make install \
&& cd ../../ \
&& rm -rf master.zip
And then of course cloning or running wget to install vrs itself.
from vrs.
Thanks for the report.
:( We don't have a 22.04 setup ready to play with, so we need to find time to understand why 22.04 doesn't behave like the same as 20.04 that we're currently using for CI. Since 22.04 is an LTS release, we need to support it.
from vrs.
There are 3 problems needed to fixed:
1.
Ubuntu 22.04 libcereal-dev package include cmake files, 20.04 package version does not. VRS tries to use find_package(cereal QUIET CONFIG) first and in case of 22.04 (it use /usr/share/cmake/cereal/cerealTargets.cmake) set include path incorrectly. You can simply comment out line15 in vrs/cmake/FindCereal.cmake and have similar behavior like in 20.04. This solve that problem, but you will probably have another one related to fb_rapidjson namespace.
To fix it add RAPIDJSON_NAMESPACE=fb_rapidjson line in cereal::cereal interface definition.
The last problem is compile error in template instantiation in jDocumentToJsonStringPretty function, I fixed it by adding missing parameter to type aliasing in /usr/include/rapidjson/prettywriter.h
Rapid json authors define it as typedef Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator> Base; but inherit from public Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator, writeFlags> as template parameter is part of instantiated class defintion complier complains that
"error: type ‘fb_rapidjson::Writer<fb_rapidjson::GenericStringBuffer<fb_rapidjson::UTF8<> > >’ is not a direct base of ‘fb_rapidjson::PrettyWriter<fb_rapidjson::GenericStringBuffer<fb_rapidjson::UTF8<> >, fb_rapidjson::UTF8<>, fb_rapidjson::UTF8<>, fb_rapidjson::CrtAllocator, 2>".
Changing it to typedef Writer<OutputStream, SourceEncoding, TargetEncoding, StackAllocator, writeFlags> Base; fix it.
I was able to successfully compile that projects on PopOS 22.04 which is direct Ubuntu derivative, so should work as well.
My proposal for fist 2 726dff3
3rd one was fixed 5y ago mborows2/rapidjson@d88be8e
Well, I am not sure why 22.04 don't have it.
from vrs.
We have now removed the dependency on cereal, which was causing this issue.
from vrs.
Related Issues (20)
- Run ninja error when using ubuntu 18.04 HOT 1
- Build error when installing in a conda environment HOT 5
- Amendments to README.md. HOT 2
- Build error on macOS 12.6 using Podman 4.2.1 HOT 1
- How is the audio recording stored? HOT 9
- Clarification about appropriate use cases HOT 1
- pyVRS roadmap HOT 2
- Mac M1 Build Issue HOT 1
- pip installation of vrs does not come with command line tool HOT 5
- Is there any way to replace video stream in a vrs file? HOT 6
- VRS image/video support HOT 1
- A HOT 1
- setGlobalLogLevel does not work HOT 1
- Issue with rapidjson when building HOT 4
- What's a good way to save multiple synchronized images? HOT 2
- How to play back VRS files at multiple speeds? HOT 2
- Build failed on Ubuntu 24.04 HOT 4
- support decoding in javascript (?) HOT 1
- Undefined Reference to aio_write and aio_return When Building with Clang HOT 1
- Build errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vrs.