-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The installation is failing on windows, may be because it's not been tested i believe. #1
Comments
hi, 1.)After that go to this path ->C:\OpenSSL-Win32\include Then do go get github.com/xeodou/go-sqlcipher you wouldn't get any error |
This is what I got:
|
Hi, I got the same error, and followed the steps above. This is what I got :
Maybe it is trying to compile for 64bit while having a 32bit library? |
you are Right about compile for 64bit while having a 32bit library. |
But I need to build 64bit program. How can I do? |
@vijaygiri10 |
Now I stuck there: C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xd8b): undefined reference to |
I tried in GO 1.6 32bit (windows10,windows7 64 bit OS) You can download openssl from here http://slproweb.com/products/Win32OpenSSL.html Rename these two file( libeay32.a) and (libeay32.def) to libcrypto.a and libcrypto.def These two file( libeay32.a) and (libeay32.def) will be present at where you install openssl. For me it is ->C:\OpenSSL-Win32\lib\ When you rename above file, please place them to C:\TDM-GCC-64\lib\ Then do go get github.com/xeodou/go-sqlcipher you wouldn't get any error Thanks $ Regards |
If you want to build 32bit binary with 64bit go compiler and TDMGCC. Just recompile a 32bit libcrypto.a from OpenSSL. Then put it into C:\TDM-GCC-64\lib. DO NOT USE the distribution of http://slproweb.com/products/Win32OpenSSL.html, that doesn't work. And don't use the OpenSSL of 1.1.x version. Because that's not compatible with old version. |
See Issue #5 I've written a complete complication manual for how to compile on Windows 64bit. I do have to submit a PR for a minor change. Also this manual should probably go in some README or something. But first check it out and verify it also works on your environment. |
That's great. Well done! |
Incorporate original PR 271 from https://github.com/brokensandals
I have the gcc properly installed. But looks like there seems to be an issue while installing go-sqlchiper. Has anyone tried to install the new release on windows yet. Any help is greatly appreciated. Thanks
go get github.com/xeodou/go-sqlcipher
github.com/xeodou/go-sqlcipher
....\workspace\src\github.com\xeodou\go-sqlcipher\sqlite3-binding.c:18280:26: fatal error: openssl/rand.h: No such file or directory
#include <openssl/rand.h>
^
compilation terminated.
The text was updated successfully, but these errors were encountered: