eos icon indicating copy to clipboard operation
eos copied to clipboard

build error on Ubuntu 17.04

Open aboutyy opened this issue 8 years ago • 7 comments

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?

aboutyy avatar Dec 16 '17 14:12 aboutyy

anyone encountered similar problems?

aboutyy avatar Dec 18 '17 05:12 aboutyy

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

FortisFortuna avatar Dec 19 '17 07:12 FortisFortuna

Ever figure out what needed to be done?

kyzitemelos avatar Jan 17 '18 03:01 kyzitemelos

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

cloudscape-germany avatar Mar 07 '18 01:03 cloudscape-germany

same issue. Looking forward to a solution!

futouyiba avatar Mar 09 '18 16:03 futouyiba

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

first install mongo c driver

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

install mongo C++ driver

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

pacificcode avatar Mar 09 '18 20:03 pacificcode

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.

cloudscape-germany avatar Mar 11 '18 02:03 cloudscape-germany