Giter Site home page Giter Site logo

rack-dockerbuild-v2's Introduction

vcvrack-dockerbuild-v2

docker based build for vcvrack v2 on debian bullseye for aarch64, armv7l, x86_64 and i686

still very much work in progress ... it might work on raspberry pi os as well, but most probably only on the 64bit version of it as it is essentially a debian bullseye system

very short summary of how to use this:

  • you need a system of the arch you want to build for (for example aarch64 for aarch64)
  • docker needs to be installed and running well on that system
  • clone this repo somewhere and make sure there are around 50+ gb of space available
  • first build the docker image used for the build process: ./docker-buildenv.sh
  • prepare for the rack build: ./prepare.sh
  • prepare for the module build: ./prepare-modules.sh
  • enter the docker buildenv: ./buildenv.sh
  • inside of that start the rack build: /compile/build.sh
  • inside of that start the module build: /compile/build-modules.sh
  • exit the docker buildenv: exit
  • build a distribution dir: ./make-dist.sh
  • the result will be a dir dist - put this somewhere and run "./Rack -d" in it to start rack

rack-dockerbuild-v2's People

Contributors

hexdump0815 avatar

Stargazers

estufa avatar Mark Harris avatar Wojciech Miłkowski avatar Josh Adams avatar Alexis Hildebrandt avatar Don Cross avatar

Watchers

James Cloos avatar  avatar

rack-dockerbuild-v2's Issues

some questions regarding building on rpi5

Hello,

I tried builing your rack-dockerbuild-v2 on a Raspbberry pi 5 (with 1TB nvme m.2 storage).

for some reason, the build stops in the /compile/build-modules.sh and doesn't exit to shell.

this is the last output:

=== Volume1 ===

make: Nothing to be done for 'dep'.
g++ -std=c++11 -Wsuggest-override  -fPIC -I/compile/Rack/include -I/compile/Rack/dep/include -fno-gnu-unique -MMD -MP -g -O3 -funsafe-math-optimizations -fno-omit-frame-pointer -Wall -Wextra -Wno-unused-parameter -DARCH_ARM64 -march=armv8-a -mtune=cortex-a53 -DSIMDE_ENABLE_NATIVE_ALIASES -DARCH_LIN  -c -o build/src/GraphData.cpp.o src/GraphData.cpp
In file included from /compile/Rack/include/simd/Vector.hpp:3,
                 from /compile/Rack/include/simd/functions.hpp:2,
                 from /compile/Rack/include/dsp/common.hpp:4,
                 from /compile/Rack/include/rack.hpp:110,
                 from src/GraphData.hpp:2,
                 from src/GraphData.cpp:1:
/compile/Rack/include/simd/common.hpp:6: warning: "SIMDE_ENABLE_NATIVE_ALIASES" redefined
    6 |         #define SIMDE_ENABLE_NATIVE_ALIASES
      |
<command-line>: note: this is the location of the previous definition
In file included from /compile/Rack/include/rack.hpp:123:
/compile/Rack/include/dsp/convert.hpp:17:1: warning: 'gcc_struct' attribute directive ignored [-Wattributes]
   17 | Int24 {
      | ^~~~~

if i break (ctrl-c) it,

make: *** [/compile/Rack/compile.mk:87: build/src/GraphData.cpp.o] Interrupt

also, I don't know much about it, but seems your tune options are for RPI3 ?

grep mtune *

AriaModules.armv7l.patch:+$(quickjs): DEP_CFLAGS := $(filter-out -march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access,$(CFLAGS))
Rack.aarch64.patch:+    FLAGS += -march=armv8-a -mtune=cortex-a53 -DSIMDE_ENABLE_NATIVE_ALIASES
Rack.aarch64.patch:+    DEP_FLAGS += -march=armv8-a -mtune=cortex-a53 -DSIMDE_ENABLE_NATIVE_ALIASES
Rack.armv7l.patch:+     FLAGS += -march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access -DSIMDE_ENABLE_NATIVE_ALIASES
Rack.armv7l.patch:+     DEP_FLAGS += -march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access -DSIMDE_ENABLE_NATIVE_ALIASES
SurgeXTRack.aarch64.patch:+add_compile_options(-march=armv8-a -mtune=cortex-a53 -DSIMDE_ENABLE_NATIVE_ALIASES)
SurgeXTRack.armv7l.patch:+add_compile_options(-march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access -DSIMDE_ENABLE_NATIVE_ALIASES)
VCV-Prototype.armv7l.patch:+$(quickjs): DEP_CFLAGS := $(filter-out -march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access,$(CFLAGS))
VCV-Prototype.armv7l.patch:+$(luajit): DEP_CFLAGS := $(filter-out -march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access,$(CFLAGS))
VCV-Recorder.armv7l.patch:+     cd ffmpeg && PKG_CONFIG_PATH="$(DEP_PATH)/lib/pkgconfig" CPPFLAGS="-march=armv7 -mtune=cortex-a9 -mfpu=neon -mno-unaligned-access -DSIMDE_ENABLE_NATIVE_ALIASES" ./configure \

should these be changed for RPI5 ? (cortex-a78)
I also have RPI 4 (cortex-a76) - offcause I'd appreciate optimized builds for both machines.

Failed to build the environment with docker-buildenv-raspbian.sh

Hi,

I tried to build this on my RPi 4 but I ran into problems when trying to create the build environments for raspbian.

    E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
    E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
    E: debootstrap can only run as root
    sha256:b5985e5e7b14f77b63cda9d1591ffdc2e3f445b12d615f79543fe88230bf6461
    Sending build context to Docker daemon  2.048kB
    Step 1/3 : FROM raspbian-bullseye
     ---> b5985e5e7b14
    Step 2/3 : RUN apt-get update
     ---> Running in bdacf781564f
    failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown

I tried running with sudo so debootstrap is called but I got the following error:

    sha256:574765e85e1a8fc6fe4cd1af60bcb377b0667ba75b29321e51931857f4617a85
    Sending build context to Docker daemon  2.048kB
    Step 1/3 : FROM raspbian-bullseye
     ---> 574765e85e1a
    Step 2/3 : RUN apt-get update
     ---> Running in b76073174bf2
    failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown

Do you know how can I fix this? I looks like building with the ubuntu image works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.