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
Build from source without Boost? #456
Comments
Try
Try |
I tried both of your suggestions, including with |
No, no easy way. kind of 'minimal' build would be to extract boost.context from the whole boost and used, but it is also not an easy task by itself. Final version of boost.context we link with is a static library from couple of sources, taking just 4-20Kb (depends from debug symbols attached), but building from sources invokes many parts of not very important but still necessary stuff from other parts of boost. Theoretically the only lib may be subsetted and patched to be standalone, but don't think it is a good idea in general as with such customization we have then support this code, and not just refer to upstream boost for it. |
Operating System: Ubuntu 20.04
Source Code URL: https://github.com/manticoresoftware/manticoresearch/archive/3.5.2.tar.gz
The documentation references Boost needing to be used by Galera: https://manual.manticoresearch.com/Installation/Compiling_from_sources#Available-features-and-their-dependencies
I'm trying to build a fairly minimal install from source and don't need replication. For build options, I've referenced the documentation for building from source, https://github.com/manticoresoftware/manticoresearch/blob/master/config/config_cmake.h.in, and grepped "USE_" and "WITH_" across the all source code.
This is how I'm running cmake:
cmake \ -DUSE_BISON=0 \ -DUSE_FLEX=0 \ -DUSE_GALERA=0 \ -DUSE_ICU=0 \ -DUSE_LIBEXPAT=0 \ -DUSE_LIBICONV=0 \ -DUSE_LIBSTEMMER=0 \ -DUSE_MYSQL=0 \ -DUSE_ODBC=0 \ -DUSE_PGSQL=0 \ -DUSE_RE2=0 \ -DUSE_SSL=0 \ -DUSE_SYSLOG=1 \ -DUSE_ZLIB=1 \ -DWITH_EXPAT=0 \ -DWITH_GALERA=0 \ -DWITH_ICONV=0 \ -DWITH_ICU=0 \ -DWITH_MYSQL=0 \ -DWITH_ODBC=0 \ -DWITH_PGSQL=0 \ -DWITH_RE2=0 \ -DWITH_STEMMER=0 \ -DWITH_SYSTEMD=1 \ -DWITH_SYSTEMD=1 \ -DWITH_ZLIB=1 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake outputs a line saying "-- Could NOT find Boost (missing: Boost_INCLUDE_DIR context) (Required is at least version "1.61.0")", which is then followed by downloading Boost.
Is there a way to build from source without including Boost and/or creating a fairly minimal install? Or is Boost now required?
Thanks.
The text was updated successfully, but these errors were encountered: