Skip to content
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

Build Linux version using Docker #319

Open
christofmuc opened this issue Apr 15, 2024 · 0 comments
Open

Build Linux version using Docker #319

christofmuc opened this issue Apr 15, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@christofmuc
Copy link
Owner

christofmuc commented Apr 15, 2024

This was documented by @fractalf in issue #312 , breaking it out to track status separately:

Arch linux builds (docker setup)

I'm on EndeavourOS (based on Arch Linux) and the binary you provide from your build pipeline didn't work for me due to some error on libicuuc.so

$ ./KnobKraftOrm 
./KnobKraftOrm: error while loading shared libraries: libicuuc.so.66: cannot open shared object file: No such file or directory

..so I made a docker setup to build it for Arch Linux and thought I'd share it here if you or anyone else is interested.

docker-compose.yml

version: "3.7"
services:
    knobkraft-builder:
        build:
            context: .
            dockerfile: Dockerfile-arch
        image: knobkraft-builder
        container_name: knobkraft-builder
        tty: true

Dockerfile-arch

FROM archlinux:base-20240101.0.204074
RUN pacman -Sy
RUN pacman -S --noconfirm \
    git \
    base-devel \
    cmake \
    alsa-utils \
    webkit2gtk \
    glew \
    python \
    pybind11

RUN git clone https://github.com/christofmuc/KnobKraft-orm.git
WORKDIR /KnobKraft-orm
RUN git submodule update --recursive --init --depth 1
RUN cmake -D CMAKE_INTERPROCEDURAL_OPTIMIZATION=off -S . -B builds
# "-j15" means use 15 cores when compiling. Adjust it to your own architecture
RUN cmake --build builds -- -j15

Run it like this and copy the binaries to your local ~/bin

$ docker compose up -d --build
$ docker cp knobkraft-builder:/KnobKraft-orm/builds/The-Orm ~/bin
$ ~/bin/The-Orm/KnobKraftOrm
@christofmuc christofmuc added the documentation Improvements or additions to documentation label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant