Can someone provide a litle bit detailed instruction how to compile native client on windows?
Here are the steps I used to compile SymmetricDS native C client on Windows:
Install Shining Lights Productions OpenSSL.
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
./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.
Download and build libcsv
(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
Either use Eclipse CDT or gradle to build it. For gradle, you can use:
./gradlew -Ptarget_platform=windows32 clean build
Sorry about the numbering problem above, it renumbered my content when I submitted it.
Log in to post a comment.
Can someone provide a litle bit detailed instruction how to compile native client on windows?
Here are the steps I used to compile SymmetricDS native C client on Windows:
Install Shining Lights Productions OpenSSL.
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
./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.
Download and build libcsv
(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
Either use Eclipse CDT or gradle to build it. For gradle, you can use:
./gradlew -Ptarget_platform=windows32 clean build
Sorry about the numbering problem above, it renumbered my content when I submitted it.