clean message:
CMake Error at plugins/db_plugin/CMakeLists.txt:21 (find_package):
By not providing "Findlibbsoncxx.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"libbsoncxx", but CMake did not find one.
Could not find a package configuration file provided by "libbsoncxx" with
any of the following names:
libbsoncxxConfig.cmake
libbsoncxx-config.cmake
Add the installation prefix of "libbsoncxx" to CMAKE_PREFIX_PATH or set
"libbsoncxx_DIR" to a directory containing one of the above files. If
"libbsoncxx" provides a separate development package or SDK, be sure it has
been installed.
could anyone help?
anyone encountered similar problems?
Try building everything from source and not using the build script.
libbsoncxx is part of MongoDB, but it isn't required for the build.
http://mongoc.org/libbson/current/index.html
See the previous issue https://github.com/EOSIO/eos/issues/894
Ever figure out what needed to be done?
Getting the same on Sierra/MacOS.
Step 14/27 : RUN git clone --depth 1 -b releases/stable git://github.com/mongodb/mongo-cxx-driver && cd mongo-cxx-driver && cmake -H. -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local && cmake --build build --target install
---> Running in 39b29b7fae0e
Cloning into 'mongo-cxx-driver'...
-- The CXX compiler identification is Clang 4.0.0
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is Clang 4.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive
CMake Error at src/bsoncxx/CMakeLists.txt:81 (find_package):
Could not find a configuration file for package "libbson-1.0" that is
compatible with requested version "1.9.2".
The following configuration files were considered but not accepted:
/usr/local/lib/cmake/libbson-1.0/libbson-1.0-config.cmake, version: 1.8.0
-- Configuring incomplete, errors occurred!
See also "/mongo-cxx-driver/build/CMakeFiles/CMakeOutput.log".
The command '/bin/sh -c git clone --depth 1 -b releases/stable git://github.com/mongodb/mongo-cxx-driver && cd mongo-cxx-driver && cmake -H. -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local && cmake --build build --target install' returned a non-zero code: 1
same issue. Looking forward to a solution!
FOR Mac OS 10.13 (you should try using the eosio_build.sh script first)
Install MongoDB drivers:
brew install --force pkgconfig
brew unlink pkgconfig && brew link --force pkgconfig
curl -LO https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz
tar xf mongo-c-driver-1.9.3.tar.gz
cd mongo-c-driver-1.9.3
./configure --enable-ssl=darwin --disable-automatic-init-and-cleanup --prefix=/usr/local
make -j$( sysctl -in machdep.cpu.core_count )
sudo make install
git clone https://github.com/mongodb/mongo-cxx-driver.git --branch releases/stable --depth 1
cd mongo-cxx-driver/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
make -j$( sysctl -in machdep.cpu.core_count )
sudo make install
Thanks a lot for that. Your comment with running eosio_build.sh helped the most, since I then realised I did not pull from the eos repo for 4 months. Gets a lot further now, but cmake still fails, yet I think not subject to this issue.