Cross Compiling Rust GTK Projects for Windows

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • rust-crosscompile

    docker for cross compiling rust gtk programs to windows

  • pe-util

    List shared object dependencies of a portable executable (PE)

  • FROM fedora:latest # # Set up system # WORKDIR /root RUN dnf -y update RUN dnf clean all RUN dnf install -y git cmake file gcc make man sudo tar RUN dnf install -y gcc-c++ boost boost-devel # # Build peldd to find dlls of exes # RUN git clone https://github.com/gsauthof/pe-util WORKDIR pe-util RUN git submodule update --init RUN mkdir build WORKDIR build RUN cmake .. -DCMAKE_BUILD_TYPE=Release RUN make RUN mv /root/pe-util/build/peldd /usr/bin/peldd RUN chmod +x /usr/bin/peldd # # Add package.sh # ADD package.sh /usr/bin/package.sh RUN chmod +x /usr/bin/package.sh # # Install Windows libraries # RUN dnf install -y mingw64-gcc RUN dnf install -y mingw64-freetype RUN dnf install -y mingw64-cairo RUN dnf install -y mingw64-harfbuzz RUN dnf install -y mingw64-pango RUN dnf install -y mingw64-poppler RUN dnf install -y mingw64-gtk3 RUN dnf install -y mingw64-winpthreads-static RUN dnf install -y mingw64-glib2-static # # Install rust # RUN useradd -ms /bin/bash rustacean USER rustacean RUN curl https://sh.rustup.rs -sSf | sh -s -- -y RUN /home/rustacean/.cargo/bin/rustup update # # Set up rust for cross compiling # RUN /home/rustacean/.cargo/bin/rustup target add x86_64-pc-windows-gnu ADD cargo.config /home/rustacean/.cargo/config ENV PKG_CONFIG_ALLOW_CROSS=1 ENV PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/ ENV GTK_INSTALL_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/ # # Setup the mount point # VOLUME /home/rustacean/src WORKDIR /home/rustacean/src # # Build and package executable # CMD ["/usr/bin/package.sh"]

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • HackTheBox - Writeup Builder [Retired]

    1 project | dev.to | 27 Apr 2024
  • Snowflake Arctic Instruct (128x3B Moe LLM)

    2 projects | news.ycombinator.com | 24 Apr 2024
  • Show HN: Wrote a Distributed Cache Service

    1 project | news.ycombinator.com | 18 Apr 2024
  • Windows 11 adding ads to Start Menu

    1 project | news.ycombinator.com | 15 Apr 2024
  • Setup NGINX

    1 project | dev.to | 15 Apr 2024