-
Notifications
You must be signed in to change notification settings - Fork 39
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 fails on RPi3B+, no build-linux.rb in folder zyn-fusion-build, make setup failed #87
Comments
As mentioned on IRC, the raspberry pi build scripts haven't been updated since some build system changes occurred a few months back. It shouldn't be terribly complex to adapt the build-rpi3 scripts to work again based on the changes in the common makefile and linux makefile. e.g. 'make setup' is no longer a required build step. I currently only own a Rasberry Pi 1, so I'm not equipped to verify all changes are made correctly to those scripts, but if they're failing because they're calling 'make setup' when that has been removed, that's a logical starting point. Zyn itself should work just fine on Rasberry Pi 1..4 and the Raspberry Pi 400, The Zyn-Fusion interface should work fine with Rasberry Pi 2..4/400 (I'd expect the Rpi1 to have too little compute power). The build system does not have a compatibility issue with those devices, it just does not have a working build-rpi3.rb script. That script is community maintained and contributions are welcome to fix it. |
Fundamental, appreciate you picking up the conversation here. I have many years experience in various languages but I'm new to contributing with open source. I wanted to do a diff between build-rpi2.rb and build-linux.rb but my searches for build-linux.rb were not successful. I commented out make setup and that led to a make builddep error so I commented that out also: On IRC you mentioned "I wouldn't be surprise if the OpenGL -> OpenGL ES flag is needed for the raspberry pi build." Any tips on were to turn on this flag? It got to 100% on the build but then it threw a gl related error: Building Zest in release modeChanging directory to mruby-zest-build rm -f /home/pi/zyn-fusion-build/mruby-zest-build/mruby/build/host/mrbgems/mruby-file-stat/config.h |
Update, searching for location to set the OpenGL -> OpenGL ES flag. I used this to activate GL, rebooted, and rebuilt, but no change. I did a grep -r OpenGL in zyn-fusion-build and got about 100 instances of that string but I didn't see from that how or where to set the OpenGL -> OpenGL ES flag. Any ideas on how to to set the OpenGL -> OpenGL ES flag. |
It looks like the file is in the place where the code is trying to copy it, so that statement might not be needed. If the existing one doesn't work then it would have to be the old one in this repo which got removed around 2eed727
No configuration change on the side of your raspberry pi should be needed. My statement referred to build-rpi3.rb:67,68 where GL2 was replaced with GLES2 |
Update, got through ruby build-rpi3.rb by skipping (commenting out) many steps, but then I had previously done a search on github for ruby build-linux.rb but could not find it. Maybe if I could locate that file I could compare it to ruby build-rpi3.rb to see why so many commands fail. Does the RPi400 use a different OS that is detected such that ruby build-linux.rb installs seamlessly? Something must account for the ease of building the project Floyd Steinberg shows on an RPi400, as compared to the multitude of failures trying to build on an RPi3B+.. Here is the modified build script I have added to with every failure. I had to comment out so many things to get ruby build-rpi3.rb to complete that I am not surprised the subsequent command tar -jxvf zyn-fusion-linux-64bit-3.0.6-dev-release.tar.bz2 failed (below)
|
No. As stated before the build system has changed over time. When he built it the older scripts would have worked. build-linux.rb was replaced with the makefiles and around the same time the build-rpi3.rb script was likely broken. |
If you look in this repository's history you'll see the build-linux.rb file. It was removed when it was replaced with the makefiles. I strongly recommend referring to the makefiles as they're the currently tested build system. Only minor modifications of those should be required to have a fully functional raspberry pi build. |
I'm trying to get this working on a 3b myself within patchbox OS. Will come back with details if I manage to get it going @fundamental |
Sounds good to me. I just got a RPi 4 for an unrelated project, so I should be able to verify what is proposed. Side note - egads does the chip shortage make it tricky to buy a RPi without going through scalpers. |
@fundamental At least for me the standard make process seems to compile just fine. Have you tried that @CychoRider ? |
@rtizzy I appreciate the response. I have tried the standard build process but it failed in my setup. Lots of details are posted above with the points at which it threw errors and the items I cut out of the makefile in order to get the make to complete. Eventually I got the make to complete but by then I had cut so many things out that the result did not function. I first had a problem with this: Thus, the standard build process calls for build-linux.rb to be in a folder on the Pi, but it was not present there or any other place I looked, and I searched all subfolders from the root of the Pi. However, build-rpi3.rb was present so I edited that file name into the process, but that led to a series of other calls that threw errors. I am using an Rpi3B+, Raspbian, imager, update, and upgrade to start with a freshly imaged microSD drive. I see you are using patchbox OS, so that is at least one difference in our configurations. |
@CychoRider
Read the full README. The install instructions for generic Linux should
work.
https://github.com/zynaddsubfx/zyn-fusion-build
I've seen the YouTube video you're referring to and his instructions did
not work for me either. A lot of the instructions are relatively outdated.
Make sure you read the entire README as there is an important tidbit at the
end regarding setting the release.
…On Sun, Oct 24, 2021, 1:15 AM CychoRider ***@***.***> wrote:
@rtizzy <https://github.com/rtizzy> I appreciate the response. I have
tried the standard build process but it failed in my setup. Lots of details
are posted above with the points at which it threw errors and the items I
cut out of the makefile in order to get the make to complete. Eventually I
got the make to complete but by then I had cut so many things out that the
result did not function.
I first had a problem with this:
#build-linux.rb not present, use build-rpi3.rb instead
#ruby build-linux.rb
ruby build-rpi3.rb
Thus, the standard build process calls for build-linux.rb to be in a
folder on the Pi, but it was not present there or any other place I looked,
and I searched all subfolders from the root of the Pi. However,
build-rpi3.rb was present so I edited that file name into the process, but
that led to a series of other calls that threw errors.
I am using an Rpi3B+, Raspbian, imager, update, and upgrade to start with
a freshly imaged microSD drive. I see you are using patchbox OS, so that is
at least one difference in our configurations.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD75FTHR62MJ5ZFL5UQC6TUIM6YJANCNFSM5DNQW2VQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@robert Tisdale
Great info! By "standard build" I was referring to the process shown on
the wiki page, which appears to be where floyd Steinberg got his command
list for his video. As @fundamental has pointed out to me, that wiki is
not necessarily maintained so me calling it "standard" is not actually
valid.
So, based on the readme you directed me to, it seems this is the command
list I should follow. I have not tested this process yet.
# refer to partially outdated wiki
# https://github.com/zynaddsubfx/zyn-fusion-build/wiki/Building-on-Linux
# refer to more up to date build description, and readme
# https://github.com/zynaddsubfx/zyn-fusion-build
# ruby calls are in makefile so need to install ruby first
sudo apt-get install build-essential git ruby libtool libmxml-dev automake
cmake libfftw3-dev libjack-jackd2-dev liblo-dev libz-dev libasound2-dev
mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libcairo2-dev
libfontconfig1-dev bison libuv1 libuv1-dev
# next 3 lines have been replaced by makefile build process and other
instructions
# git clone https://github.com/zynaddsubfx/zyn-fusion-build
# cd zyn-fusion-build
# ruby build-linux.rb
git clone --recursive https://github.com/zynaddsubfx/zyn-fusion-build
zyn-fusion-build
# Install build dependencies
# make MODE=release -f Makefile.<platform>.mk <target>
make MODE=release -f Makefile.linux.mk install_deps
# Start building
make MODE=release -f Makefile.linux.mk all
# tar is in makefile
# tar -jxvf zyn-fusion-linux-64bit-3.0.6-dev-release.tar.bz2
# readme says install is still needed
cd zyn-fusion
sudo bash ./install-linux.sh
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sat, Oct 23, 2021 at 7:53 PM Robert Tisdale ***@***.***>
wrote:
… @CychoRider
Read the full README. The install instructions for generic Linux should
work.
https://github.com/zynaddsubfx/zyn-fusion-build
I've seen the YouTube video you're referring to and his instructions did
not work for me either. A lot of the instructions are relatively outdated.
Make sure you read the entire README as there is an important tidbit at the
end regarding setting the release.
On Sun, Oct 24, 2021, 1:15 AM CychoRider ***@***.***> wrote:
> @rtizzy <https://github.com/rtizzy> I appreciate the response. I have
> tried the standard build process but it failed in my setup. Lots of
details
> are posted above with the points at which it threw errors and the items I
> cut out of the makefile in order to get the make to complete. Eventually
I
> got the make to complete but by then I had cut so many things out that
the
> result did not function.
>
> I first had a problem with this:
> #build-linux.rb not present, use build-rpi3.rb instead
> #ruby build-linux.rb
> ruby build-rpi3.rb
>
> Thus, the standard build process calls for build-linux.rb to be in a
> folder on the Pi, but it was not present there or any other place I
looked,
> and I searched all subfolders from the root of the Pi. However,
> build-rpi3.rb was present so I edited that file name into the process,
but
> that led to a series of other calls that threw errors.
>
> I am using an Rpi3B+, Raspbian, imager, update, and upgrade to start with
> a freshly imaged microSD drive. I see you are using patchbox OS, so that
is
> at least one difference in our configurations.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#87 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAD75FTHR62MJ5ZFL5UQC6TUIM6YJANCNFSM5DNQW2VQ
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVPPBKEZVHVCR24ELAWJCSLUINYKDANCNFSM5DNQW2VQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I see a very minor error or two (You miss a |
Following the build instructions on the github wiki page (https://github.com/zynaddsubfx/zyn-fusion-build/wiki/Building-on-Linux) leads to errors when building on an RPi3B+ with 32 bit Raspbian OS installed on the SD using Imager, followed by update and upgrade prior to build.
Anybody have success building ZynAddSubFX on an RPi3B+ or any other Raspberry Pi?
Floyd Steinberg (ZYNADDSUBFX on Raspberry PI Linux - open source synthesiser) has a cool youtube video showing building on an RPi400. In the description are links to the wiki where he got the build instruction list. He shows running the build instruction list without errors, but when I run those build instructions there is no build-linux.rb in the folder zyn-fusion-build.
So I tried using build-rpi3.rb instead of build-linux.rb, but that led to a make error.
Things seemed to be going OK after I made a little substitution:
Then the build quickly failed:
I would not mind buying a different RPi if the RPi3B+ is not supported, but I don't really want the form factor of an RPI400.
Thanks very much if you have any tips, experiences, or links to share.
The text was updated successfully, but these errors were encountered: