Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.8 KB

BUILD_OTHERS.md

File metadata and controls

61 lines (44 loc) · 1.8 KB

Optional components

Build Redis client

Pretty straight forward stuff here - just be mindful of the extra environment variable set to DESTDIR:

cd lib/qredisclient
git submodule update --init
qmake CONFIG+=debug DESTDIR=. qredisclient.pro
make

Build MongoDb driver

  1. Install scons - e.g. brew install scons or sudo apt-get install scons

  2. Install boost

    Boost may be challenging to build so it's highly recommended that you use something like homebrew, apt-get, or the pre-built binary installer for windows

    # Install what you can with Ubuntu
    sudo apt-get install mongodb-dev
    sudo apt-get install libboost1.54-all-dev
    # Brew on macx
    brew search boost
    brew info boost
    brew install boost --c++11

    NOTE: If you're installing mongo locally, make sure you link to the same set of BOOST libraries!

    brew install mongodb --with-boost --with-openssl
  3. Build the driver!

    Ubuntu

    cd QttpServer/lib/mongo-cxx-driver
    sudo scons --libpath=/usr/lib/x86_64-linux-gnu --cpppath=/usr/include --dbg=on --opt=on --64 install

    Windows

    set PATH=C:\Python27;C:Pyathon27\Scripts;%PATH%
    scons --32 --dbg=on --opt=off --sharedclient --dynamic-windows --prefix="C:\local\mongo-client" --cpppath="C:\local\boost_1_59_0" --libpath="C:\local\boost_1_59_0\lib32-msvc-14.0" install

    Mac

    scons --libpath=/usr/local/lib --cpppath=/usr/local/include --dbg=on --opt=on --64 install

For more information visit mongodb.org