Skip to content

None of the GLFW3 examples cross-compile to Windows from Linux #2

@tenten8401

Description

@tenten8401

When running make win in any of the example projects, I get the following:
Image

I've tried manually compiling GLFW3 and make installing it, and all of the native Linux builds work (just running make instead of make win) so I have reason to believe all my dependencies are installed.

This is the Dockerfile I'm trying to build inside of:

FROM debian:13

ENV DEBIAN_FRONTEND=noninteractive

# Update apt package lists
RUN apt-get update

# Install gcc build toolchain
RUN apt-get install -y \
    gcc \
    g++ \
    make

# Install MingW64 gcc build toolchain
RUN apt-get install -y \
    mingw-w64

# Install program dependencies
RUN apt-get install -y \
    curl \
    xz-utils \
    libopengl-dev \
    libgl1-mesa-dev \
    libglfw3 \
    libglfw3-dev \
    libxcursor-dev \
    libxinerama-dev \
    libxi-dev \
    libsdl2-dev \
    libsdl3-dev \
    git \
    ca-certificates

# Install choosenim (official installer)
RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
ENV PATH="/root/.nimble/bin:$PATH"

# Verify Nim installation
RUN nim --version

RUN mkdir -p /app && cd /app && git clone https://github.com/dinau/imguin_examples/

WORKDIR /app

CMD ["bash"]

Maybe you could provide some guidance? :D

I also notice that in linkControl.nim, you mention static linked GLFW as unsupported, so maybe it's already something you know of?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions