Skip to content
xeodou edited this page Apr 2, 2015 · 1 revision

Building

Building in Windows

You can get some information here

Can't build go-sqlite3 on windows 64bit. Probably, you are using go 1.0, go1.0 has a problem when it comes to compiling/linking on windows 64bit. See: https://github.com/mattn/go-sqlite3/issues/27

You need install http://www.mingw.org first, it will bring you gcc compile environment to you.

Issues

  • If you got some issue like:

    "openssl/rand.h: No such file or directory"

    You may need install openssl first.

    You can download openssl from here http://slproweb.com/products/Win32OpenSSL.html

    Notice: You need download the full version

    1. Download the windows installer and install to somewhere you want, i put it in c:\mingw\openssl
    2. Link the .h files.
      cd /mingw/include
      ln -s ../openssl/include/openssl openssl
  • If you got some some issue like:

    c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lcrypto collect2.exe: error: ld returned 1 exit status

    You may need link the libcrypto,Run

     cd /mingw/lib
     ln -s ../openssl/lib/MinGW/libeay32.a ../lib/libcrypto.a
     ln -s ../openssl/lib/MinGW/libeay32.def ../lib/libcrypto.def
Clone this wiki locally