-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fix cross compilation in order to generate and distribute precompiled binaries. #34
Comments
的确,我在编译windows二进制过程中出现了很多困难 |
I have had some success with this, though some features needed to be disabled to get a static binary. (They might work if dynamically linked binaries are acceptable)
ENABLED_FEATURES="amqp dns ftp http http_relative_paths imap kerberos ldap mongodb mqtt mssql pop3 rdp redis scylla smtp socks5 sql ssh stomp tcp_ports telnet vnc"
DISABLED_FEATURES="oracle samba (breaks, unable to find libs)"
ENABLED_FEATURES="amqp dns ftp http http_relative_paths imap kerberos ldap mongodb mqtt mssql pop3 rdp redis scylla smtp socks5 sql ssh stomp tcp_ports telnet vnc"
DISABLED_FEATURES="oracle samba (breaks, unable to find libs)"
ENABLED_FEATURES="amqp dns ftp http http_relative_paths imap kerberos ldap mongodb mssql pop3 rdp redis scylla smtp socks5 sql ssh stomp tcp_ports telnet vnc"
DISABLED_FEATURES="mqtt ( https://github.com/eclipse/paho.mqtt.rust/issues?q=is%3Aissue+is%3Aopen+windows ) ; oracle samba (breaks, unable to find libs) " |
@Azathothas yes, as I said compiling legba without said libraries (especially smbclient) is trivial on any OS. The point of this issue is finding solutions to cross compile binaries including the samba feature. |
Currently, when a new release is published, docker images for
linux/amd64
andlinux/arm64
are automatically built and pushed to https://hub.docker.com/r/evilsocket/legba. While this allows users to just pull the image and use it on any platform supported by Docker, it'd be ideal to also be able to generate and distribute precompiled binaries that might be better suited for certain scenarios (embedded devices for one).While I had some success in cross compiling this project for
x86_64-unknown-linux-gnu
using cross with this Cross.toml project file, the build still fails for some OS/arch, mostly due to thelibsmbclient
andlibssl
native dependencies that somehow I still am trying to cross compile and/or install incorrectly.It'd be awesome if someone with more experience than me on Rust cross compilation could help.
To start we'd need to generate binaries for:
Ideally support Android and iOS targets in the future too.
The text was updated successfully, but these errors were encountered: