# Cross-compiling Crystal applications - Part 1

**URL:** <https://forum.crystal-lang.org/t/cross-compiling-crystal-applications-part-1/6956>\
**Category:** Learning Resources\
**Created:** [June 23, 2024, 5:33pm UTC](https://forum.crystal-lang.org/t/cross-compiling-crystal-applications-part-1/6956 "2024-06-23T17:33:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![luislavena](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/luislavena/32/572_2.png) [@luislavena](https://forum.crystal-lang.org/u/luislavena)\
**Post date:** [June 25, 2024, 4:21pm UTC](https://forum.crystal-lang.org/t/cross-compiling-crystal-applications-part-1/6956/10 "2024-06-25T16:21:03Z")

</div>

> [@Sunrise](#):
>
> Well, it does work when building very simple targets. However, when I tried to build the basic service program from the official website example, I encountered an error:

Indeed, for the errors you’re listing, you will need to add OpenSSL and Zlib, and a few others, depending on what you’re using.

For reference, here is a long list of all the packages I used in the past:

> <https://github.com/luislavena/magic-haversack/blob/main/libs.yml>

- gc-dev
- gmp-dev
- libevent-static
- libevent-dev
- openssl-libs-static
- openssl-dev
- pcre-dev
- pcre2-dev
- sqlite-static
- sqlite-dev
- yaml-static
- yaml-dev
- zlib-static
- zlib-dev

You’re welcome to explore and add the needed dependencies for your test 😊

I mentioned in previous comment, while I would like to ensure reproducibility of the build (being able to get the exact same dependencies), is hard to maintain and keep up to date the entire list.

Cheers.

---

_[View the full topic](https://forum.crystal-lang.org/t/cross-compiling-crystal-applications-part-1/6956)._
