Menu

Native (C) client assembly

Help
2016-10-19
2016-10-19
  • Timur Kospanov

    Timur Kospanov - 2016-10-19

    Can someone provide a litle bit detailed instruction how to compile native client on windows?

     
  • Eric Long

    Eric Long - 2016-10-19

    Here are the steps I used to compile SymmetricDS native C client on Windows:

    1. Install Shining Lights Productions OpenSSL.

    2. Install MinGW (with options of gcc, gdb, tcl, make, and libcurl).

    Edit C:\MinGW\msys\1.0\etc\fstab and add line with "C:\MinGW /mingw" followed with blank line.

    Control Panel->System to edit PATH with C:\MinGW\bin;C:\MinGW\msys\1.0\bin

    1. Download and build SQLite

    ./configure --with-crypto-lib=none --disable-tcl CFLAGS="-DSQLITE_HAS_CODEC -DSQLCIPHER_CRYPTO_OPENSSL -I/c/OpenSSL-Win32/include -L/c/OpenSSL-Win32/lib /c/OpenSSL-Win32/libeay32.dll -L/c/sqlcipher-master/ -static-libgcc" LDFLAGS="-llibeay32"

    make clean
    make sqlite3.c
    make
    make dll

    Copy sqlite3.dll to C:\Windows\System32.

    1. Download and build libcsv

    2. (Optional, for running unit tests) Download and build CUnit

    libtoolize --force
    aclocal
    autoconf
    automake --force-missing --add-missing
    chmod +x ./configure
    ./configure --prefix /c/CUnit-2.1-3/CUnit CFLAGS="-static-libgcc"
    make
    make install

    1. Download and build SymmetricDS

    Either use Eclipse CDT or gradle to build it. For gradle, you can use:

    ./gradlew -Ptarget_platform=windows32 clean build

     
  • Eric Long

    Eric Long - 2016-10-19

    Sorry about the numbering problem above, it renumbered my content when I submitted it.

     

Log in to post a comment.