Open fcana opened 1 year ago
Hey I just responded on the forum. You need to update the dockerfile to build for Duo: https://github.com/christosku/modgen/blob/master/Dockerfile#L22-L30
You mean something like that: https://github.com/fcana/modgen/tree/modduo-patch-1 ??? sorry, very newby here ;)
You mean something like that: https://github.com/fcana/modgen/tree/modduo-patch-1 ??? sorry, very newby here ;)
Looks fine to me! Can you test it? If it compiles and runs on your ModDuo I will merge your changes to this repo!
not today unfortunately.. but i'll test in a couple of days and let you know...
I'm not 100% sure if modduo-new
exists as a target in MPB. Could be it is just modduo
.
I can try this later if needed.
I initially thought the same but it turns out it exists!
Goodmorning @christosku and @dromer, tried today the compilation for modduo... failed :( here the logs:
Detected Plugin type: gen
Detected 1 inputs and 1 outputs
✓ Files uploaded successfully
✓ Modifying Distrho Plugin Info
✓ Distrho Plugin Info modified successfully
Building Plugin
make AR=/home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-gcc-ar CC=/home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-gcc CPP=/home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-cpp CXX=/home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-g++ LD=/home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-ld PKG_CONFIG=/home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config PKG_CONFIG_PATH="/home/modgen/mod-workdir/modduo-static/staging/usr/lib/pkgconfig" STRIP=/home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-strip CFLAGS="-I/home/modgen/mod-workdir/modduo-static/staging/usr/include " CPPFLAGS= CXXFLAGS="-I/home/modgen/mod-workdir/modduo-static/staging/usr/include " LDFLAGS="-L/home/modgen/mod-workdir/modduo-static/staging/usr/lib " EXE_WRAPPER="qemu-arm-static -L /home/modgen/mod-workdir/modduo-static/target" HAVE_CAIRO=false HAVE_OPENGL=false MOD_BUILD=true NOOPT=true
make[1]: /home/modgen/mod-workdir/modduo-static/host/usr/bin/arm-mod-linux-gnueabihf.static-gcc: No such file or directory
make[1]: Entering directory '/home/modgen/mod-plugin-builder/max-gen-plugins'
/bin/sh: 1: /home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config: not found
make all -f max-gen/Makefile.common.mk NAME=max-gen-plugin
/bin/sh: 1: /home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config: not found
make[2]: Entering directory '/home/modgen/mod-plugin-builder/max-gen-plugins'
/bin/sh: 1: /home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config: not found
Compiling max-gen/DistrhoPluginMaxGen.cpp
/bin/sh: 1: /home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config: not found
make[2]: Leaving directory '/home/modgen/mod-plugin-builder/max-gen-plugins'
/bin/sh: 1: /home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config: not found
make[1]: Leaving directory '/home/modgen/mod-plugin-builder/max-gen-plugins'
/bin/sh: 1: /home/modgen/mod-workdir/modduo-static/host/usr/bin/pkg-config: not found
✓ Plugin built successfully
Compressing Plugin
✗ Plugin not found
✗ Failed to compress plugin
and here the previous build log:
$ docker compose up -d --build modgen
[+] Building 5573.9s (30/30) FINISHED docker:default
=> [modgen internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.90kB 0.0s
=> [modgen internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [modgen internal] load metadata for docker.io/library/debian:bullseye-slim 1.7s
=> [modgen 1/25] FROM docker.io/library/debian:bullseye-slim@sha256:fd3b382990294beb46aa7549edb9f40b1 0.0s
=> [modgen internal] load build context 0.0s
=> => transferring context: 1.06kB 0.0s
=> CACHED [modgen 2/25] RUN apt-get update && apt-get install -y acl bc curl cvs git mercurial 0.0s
=> CACHED [modgen 3/25] RUN useradd -m modgen 0.0s
=> CACHED [modgen 4/25] WORKDIR /home/modgen 0.0s
=> CACHED [modgen 5/25] RUN git clone https://github.com/moddevices/mod-plugin-builder/ 0.0s
=> CACHED [modgen 6/25] WORKDIR /home/modgen/mod-plugin-builder 0.0s
=> [modgen 7/25] RUN if [ true = true ]; then ./bootstrap.sh modduo-new minimal ;fi 1811.7s
=> [modgen 8/25] RUN if [ true = true ]; then ./bootstrap.sh modduox-new minimal ;fi 1791.8s
=> [modgen 9/25] RUN if [ true = true ]; then ./bootstrap.sh moddwarf-new minimal ;fi 1773.0s
=> [modgen 10/25] RUN git clone https://github.com/moddevices/max-gen-plugins/ 1.6s
=> [modgen 11/25] WORKDIR /home/modgen/mod-plugin-builder/max-gen-plugins 0.1s
=> [modgen 12/25] RUN sed -i 's/git@github.com\:/https\:\/\/github.com\//' .gitmodules 0.6s
=> [modgen 13/25] RUN git submodule update --init --recursive 6.7s
=> [modgen 14/25] WORKDIR /home/modgen/mod-plugin-builder 0.1s
=> [modgen 15/25] RUN git clone https://github.com/christosku/max-rnbo-plugins/ 1.4s
=> [modgen 16/25] WORKDIR /home/modgen/mod-plugin-builder/max-rnbo-plugins 0.1s
=> [modgen 17/25] RUN git submodule update --init --recursive 6.8s
=> [modgen 18/25] RUN apt-get install -y python3-pip 7.9s
=> [modgen 19/25] RUN mkdir -p /home/modgen/server 0.6s
=> [modgen 20/25] WORKDIR /home/modgen/server 0.1s
=> [modgen 21/25] COPY requirements.txt /home/modgen/server 0.1s
=> [modgen 22/25] RUN pip3 install -r requirements.txt 5.4s
=> [modgen 23/25] COPY dpf.patch /home/modgen/server 0.1s
=> [modgen 24/25] RUN patch /home/modgen/mod-plugin-builder/max-rnbo-plugins/dpf/Makefile.base.mk dpf. 0.4s
=> [modgen 25/25] RUN patch /home/modgen/mod-plugin-builder/max-gen-plugins/dpf/Makefile.base.mk dpf.p 0.6s
=> [modgen] exporting to image 162.0s
=> => exporting layers 161.9s
=> => writing image sha256:45112b952fae9a158a73f8932e20c0a98a33de6e75600f0bb26824540469d820 0.0s
=> => naming to docker.io/library/modgen-modgen 0.0s
[+] Running 1/1
✔ Container modgen-modgen-1 Started 1.2s
my suspect is that in dpf.patch file is missing an update/correction for the right package in case of Mod Duo... i'm stucked anyway... don't know how to solve that
Dear @christosku first thank you very much for this simply great work... I installed everything and all seems to be fine but unfortunately i own an old mod duo gear ... and compilations for modduox does not work. Is there a way for enabling also mod duo ?