Skip to content

Instantly share code, notes, and snippets.

@CarloCattano
Last active October 27, 2022 09:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarloCattano/83d572ea18031ca6e40ce8545b6f174c to your computer and use it in GitHub Desktop.
Save CarloCattano/83d572ea18031ca6e40ce8545b6f174c to your computer and use it in GitHub Desktop.

Compile plugins for 64-bit OS aarch64 raspberry pi 4

this plugins are included on the mod-plugin-builder repo

on a debian/ubuntu system or VM (I use a debian lite image on Oracle VirtualBox). Approx time 3 hours or more

sudo apt install acl bc curl cvs git mercurial rsync subversion wget \
bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip \
automake binutils build-essential cpio libtool libncurses-dev pkg-config python-is-python3 libtool-bin

git clone --recursive https://github.com/moddevices/mod-plugin-builder

cd mod-plugin-builder

./bootstrap.sh raspberrypi4
# for other platforms you can replace here with your hardware ( modduo, modduox, moddwarf or x86_64)

#remove problematic plugins like wolf-shaper-labs lv2 ( asks for github credentials ) and others
rm plugins/package/wolf-shaper-labs -rf   
rm plugins/package/zeroconvo-labs -rf
rm plugins/package/zynaddsubfx-labs* -rf

for f in plugins/package/*; do ./build raspberrypi4 $f; done | tee build.log

Once done the plugins are at:

$HOME/mod-workdir/raspberrypi4/plugins 

I use this plugins on raspberry pi setup + PiSound interface. You can check my install script here

if unsure, run uname -m on a terminal in your pi.Should return aarch64 on a 64-bit system

I start from a 64-bit Raspberry pi OS lite image

@jtemple967
Copy link

jtemple967 commented Sep 4, 2022

I just tried the above on Ubuntu 20. My results:

  • I think you need a "-rf" at the end of the line for removing zeroconvo-labs
  • When executing the "for f..." command I get the following repeated over and over:
    ./build: line 99: cd: /home/jonas/mod-workdir/raspberrypi4/build/buildroot-2016.02: No such file or directory

And I checked the mod-workdir/raspberrypi4/plugins folder and that folder is empty.

Okay, I didn't read the output of ./bootstrap.sh raspberrypi4. There were some missing packages that I had to install on Ubuntu 20:

  • libncurses5-dev libncursesw5-dev
  • libtool libtool-bin
  • gawk
  • help2man
  • texinfo
  • flex

However once those were installed and bootstrap.sh ran for a while I get the following. Digging into the error to try and figure out what the issue is. I'm wondering if I need an updated version of crosstool-ng

Log [INFO ] ================================================================= [INFO ] Installing C library headers & start files [INFO ] ================================================================= [INFO ] Building for multilib 1/1: '' [EXTRA] Configuring C library [ERROR] configure: error: [ERROR] [ERROR] >> [ERROR] >> Build failed in step 'Building for multilib 1/1: ''' [ERROR] >> called in step 'Installing C library headers & start files' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@376] [ERROR] >> called from: glibc_backend_once[scripts/build/libc/glibc.sh@263] [ERROR] >> called from: CT_IterateMultilibs[scripts/functions@1586] [ERROR] >> called from: glibc_backend[scripts/build/libc/glibc.sh@74] [ERROR] >> called from: glibc_start_files[scripts/build/libc/glibc.sh@38] [ERROR] >> called from: do_libc_start_files[scripts/build/libc.sh@28] [ERROR] >> called from: main[scripts/crosstool-NG.sh@696] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> 'docs/manual/B_Known_issues.md' [ERROR] >> [ERROR] >> NOTE: Your configuration includes features marked EXPERIMENTAL. [ERROR] >> Before submitting a bug report, try to reproduce it without enabling [ERROR] >> any experimental features. Otherwise, you'll need to debug it [ERROR] >> and present an explanation why it is a bug in crosstool-NG - or [ERROR] >> preferably, a fix. [ERROR] >> [ERROR] >> If you feel this is a bug in crosstool-NG, report it at: [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/ [ERROR] >> [ERROR] >> Make sure your report includes all the information pertinent to this issue. [ERROR] >> Read the bug reporting guidelines here: [ERROR] >> http://crosstool-ng.github.io/support/ [ERROR] [ERROR] (elapsed: 6:13.58) [06:14] / make: *** [ct-ng:261: build] Error 1

@CarloCattano
Copy link
Author

CarloCattano commented Sep 5, 2022

@jtemple967 damm i forgot to add the deps

sudo apt install acl bc curl cvs git mercurial rsync subversion wget \
bison bzip2 flex gawk gperf gzip help2man nano perl patch tar texinfo unzip \
automake binutils build-essential cpio libtool libncurses-dev pkg-config python-is-python3 libtool-bin

Thanks for letting me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment