-
Notifications
You must be signed in to change notification settings - Fork 93
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
Problems with external dependencies #86
Comments
Hi! Don't use The |
I am planning to build Restinio and create a debian package from it for local distrubution using apt. The documentation says: |
This phrase should tell that if someone is planned to install RESTinio and use it via INCLUDE path, then it's better to install RESTinio's dependencies separately and build RESTinio with RESTinio by itself is a header-only library. The build command for your purposes is necessary only for copying RESTinio's files and making appropriate .cmake-files for I think that for the creation of .deb package for RESTinio it's necessary to make a dependency of RESTinio's package from libhttp-parser-dev and libfmt-dev. Then RESTinio should be built with:
But note, that since v.0.6.3 RESTinio requires fmtlib 6.1 or newer. |
Sorry, I forgot about such dependency as Asio :( |
Ok, so I am right that in my case I should not use mxx_ru prior to building Restinio, but install all dependencies manually using apt? |
Yes. |
Sorry, but I still have problems with dependencies, it is most likely asio.
Apparently, dependency to Asio should be added, but target |
@guteksan can you provide information about your environment (OS, compiler version, versions of libasio-dev and libhttp-parser-dev)? Or maybe you can provide a Dockerfile with your build commands inside so I can reproduce your steps in my Kubuntu? |
restinio-test-docker.zip |
It seems that libhttp-parser-dev for ubuntu-16.04 contains http-parser v.2.1. There are no many HTTP methods that were added to http-parser at v.2.6. Like HTTP_BIND, HTTP_REBIND, HTTP_UNBIND. We have started the development of RESTinio with http-parser v.2.7.1. So I don't know how to make RESTinio work with such old versions of http-parser as v.2.1, v.2.2 and so on. |
Can someone tell me where is mxxruexternals command? |
If you install Mxx_ru gem via: gem install Mxx_ru then mxxruexternals has to be added to your PATH automatically. On some platforms (like Archlinux, IIRC) that isn't the case and you have to modify your PATH manually: export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
export PATH="PATH:$GEM_HOME" NOTE: Mxx_ru is a gem (package) for RubyGems and RubyGems is package manager for Ruby language. |
Hi,
I am trying to build restinio from sources, using mxx_ru for handling dependencies. So basically, I run these commands:
cmake failed having not found "unnoficial-http-parser".
Shouldn't running this
mxxruexternals
ensure that all external dependencies for restinio are downloaded? If I run with default values of RESTINIO_SAMPLE and RESTINIO_TEST, cmake fails also on not finding Catch2. I know these are optional dependencies, but my understanding was that mxx_ru will handle them, if necessary.The text was updated successfully, but these errors were encountered: