krabbencutter said:
Has anybody tried compiling the open source stuff from waves?
Has anybody I've tried compiling the open source stuff from waves.
Important 2020 Update!
Please skip everything from here on and jump straight to
https://groupdiy.com/index.php?topic=71385.msg958215#msg958215
You're going to need the following things to get started:
- the source files for kernel versions 2016 & 2017 from https://www.waves.com/legal/soundgrid-server-open-source-code
- Ubuntu 12.04 (srsly!)
- around 30GB of available storage for your Ubuntu System (using a VM works as well)
- horsepower & time (more on that later)
Setting up Ubuntu is pretty straightforward and you don't need to change any of the defaults during the installation. Once you're up and running you should get two popups regarding updates and upgrading to 14.04. Installing updates is neccessary but do
not upgrade to 14.04. Or you can close them and just do it from the terminal
Code:
sudo apt-get update && sudo apt-get upgrade
Once that's done, reboot. Now open firefox, go to https://www.waves.com/legal/soundgrid-server-open-source-code and download the kernel packages. We're going to need some files from the older archive later on. But for now open the terminal and extract just the 2017 release
Code:
cd Downloads
tar -xvf sglinux-9.7.10.1.tar.gz
There's two folders in there
- app
- ubuntu-packege
[sic!]
app contains the tools that are included in soundgrid os,
ubuntu-packege includes all the compilers and dependencies, to build the stuff from the app folder.
That's why we're going to build the ubuntu packages first, starting with libstc++-6. There's a couple of dependencies that need to be installed first
Code:
sudo apt-get install dpkg-dev debhelper g++-multilib libc6-dev-i386 lib32gcc1 m4 libtool autoconf2.64 automake zlib1g-dev gawk patchutils gperf bison flex gettext texinfo sharutils libcloog-ppl-dev libmpc-dev libmpfr-dev libgmp-dev libelfg0-dev dejagnu autogen realpath chrpath quilt doxygen graphviz gsfonts-x11 texlive-latex-base automake1.10 texi2html fdupes nasm uuid-dev
Now cd your way into the libstdc++-6 folder, extract the source files and apply the changes from waves
Code:
dpkg-source -x gcc-4.6_4.6.3-1ubuntu5.dsc
cd into the newly created folder and build that sh!t
This is going to take a while! I used a Virtualbox on a trashan MacPro and had assigned 12cores & 16gigs of RAM to my VM. Compiling gcc-4.6 and gccgo-4.7 took around an hour each, eglibc-2.15 took 1,5 hours.
After the compilation has finished go up one level ( cd .. ) and install all the .deb files
In case some packages fail, just run the command again.
Now repeat this whole process for the libgcc1 folder.
libc6 works mostly similar but needs to be patched manually
Code:
tar xvf eglibc_2.15.orig.tar.gz
mkdir ./eglibc-2.15/debian
zcat eglibc_2.15-0ubuntu10.15.diff.gz| patch -p0
chmod +x ./eglibc-2.15/debian/rules
then you can build & install it.
The (computationally) hard part is over, now you can build syslinux which will only take a couple of minutes.
Syslinux does not need to be compiled as a .deb but it's going to be needed later, to create the bootable usb drive.
Code:
dpkg-source -x syslinux_4.05+dfsg-2.dsc
cd syslinux-4.05+dfsg
make
Congratulations, you've got your toolchain set up! Now you're ready for the 'fun' part:
Part 2 - Compiling the Kernel from scratch
https://groupdiy.com/index.php?topic=71385.msg943040#msg943040
references
https://www.infodrom.org/Debian/doc/maint/Maintenance-pkgbuild.html