# Build sqlcipher under win10 by msys2

**URL:** <https://discuss.zetetic.net/t/build-sqlcipher-under-win10-by-msys2/5313>\
**Category:** Uncategorized\
**Created:** [March 3, 2022, 7:57am UTC](https://discuss.zetetic.net/t/build-sqlcipher-under-win10-by-msys2/5313 "2022-03-03T07:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hemingway2003](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@Hemingway2003](https://discuss.zetetic.net/u/Hemingway2003)\
**Post date:** [March 3, 2022, 7:57am UTC](https://discuss.zetetic.net/t/build-sqlcipher-under-win10-by-msys2/5313/1 "2022-03-03T07:57:42Z")

</div>

I cloned the source from [GitHub - sqlcipher/sqlcipher: SQLCipher is a standalone fork of SQLite that adds 256 bit AES encryption of database files and other security features.](https://github.com/sqlcipher/sqlcipher.git).  
And I can build it very easily under my debian, but when I turned to msys2, it seems hard to work.  
There steps I have done:

1. Installed msys2 on my win10
2. Installed mingw64\_gcc, openssl and tcl in msys2
3. Set the default gcc by run: export PATH="/mingw64/bin:$PATH"
4. And run `./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"`, there were no error, especially the “install openssl” error.
5. Run `make clean && make`, and I have got some errors  
So what happend? Or is there any correct guide?

---

<div class="post-metadata">

**Author:** ![Hemingway2003](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@Hemingway2003](https://discuss.zetetic.net/u/Hemingway2003)\
**Post date:** [March 4, 2022, 8:04am UTC](https://discuss.zetetic.net/t/build-sqlcipher-under-win10-by-msys2/5313/2 "2022-03-04T08:04:56Z")

</div>

OK!  
Finally, I solved this problem by myself.  
Thanks for the helpness of the ‘nobody-repling’ website

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [March 4, 2022, 3:38pm UTC](https://discuss.zetetic.net/t/build-sqlcipher-under-win10-by-msys2/5313/3 "2022-03-04T15:38:35Z")

</div>

Hi @Hemingway2003,

> Finally, I solved this problem by myself.  
> Thanks for the helpness of the ‘nobody-repling’ website

> Run make clean && make, and I have got some errors  
> So what happend?

We are happy to hear you were able to resolve the issue, however, without sharing any details regarding the errors that you experienced, it is difficult for anyone in the community to provide help.
