Skip to content

Instantly share code, notes, and snippets.

@bitbd83
Last active April 29, 2020 05:23

Revisions

  1. bitbd83 revised this gist Apr 29, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion bdb.sh
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,7 @@ CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
    make
    make install

    #download bdb https://mega.nz/file/8zwHiDTI#0wck67T5fKdrV2AHQI72_CXvbQRl1_xV9surxJwduQY
    #download bdb https://mega.nz/file/8zwHiDTI#0wck67T5fKdrV2AHQI72_CXvbQRl1_xV9surxJwduQY
    --------------
    leveldb
    TARGET_OS=NATIVE_WINDOWS make -j4 CC=i686-w64-mingw32.static-gcc CXX=i686-w64-mingw32.static-g++ libleveldb.a libmemenv.a
  2. bitbd83 revised this gist Apr 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bdb.sh
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
    make
    make install

    #download bdb https://mega.nz/file/8zwHiDTI
    #download bdb https://mega.nz/file/8zwHiDTI#0wck67T5fKdrV2AHQI72_CXvbQRl1_xV9surxJwduQY
  3. bitbd83 revised this gist Apr 25, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion bdb.sh
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,6 @@ CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
    --prefix=$MXE_PATH/usr/i686-w64-mingw32.static

    make
    make install
    make install

    #download bdb https://mega.nz/file/8zwHiDTI
  4. bitbd83 created this gist Apr 25, 2020.
    17 changes: 17 additions & 0 deletions bdb.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/bash
    MXE_PATH=/mnt/mxe
    sed -i "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h
    mkdir build_mxe
    cd build_mxe

    CC=$MXE_PATH/usr/bin/i686-w64-mingw32.static-gcc \
    CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
    ../dist/configure \
    --disable-replication \
    --enable-mingw \
    --enable-cxx \
    --host x86 \
    --prefix=$MXE_PATH/usr/i686-w64-mingw32.static

    make
    make install