Giter VIP home page Giter VIP logo

surge-arm-build's Introduction

apt-get install build-essential libcairo-dev libxkbcommon-x11-dev libxkbcommon-dev libxcb-cursor-dev libxcb-keysyms1-dev libxcb-util-dev

git clone https://github.com/surge-synthesizer/surge-extra-content.git
cd surge-extra-content
git checkout afc591cc06d9adc3dc8dc515a55c66873fa10296
cd ..
git clone https://github.com/surge-synthesizer/surge.git
cd surge
git checkout release_1.9.0
git submodule update --init --recursive
patch -p1 < /compile/doc/surge/remove-parallel-option.patch
patch -p1 < /compile/doc/surge/install-to-usr-local.patch
patch -p1 < /compile/doc/surge/adjust-cmake.patch

# if the vst2-sdk headers are available - otherwise ignore this line
export VST2SDK_DIR=/compile/source/vcvrack-dockerbuild-v0/vst2-sdk

# armv7l - the .cmake file does not seem to work - thus the export after
cp /compile/doc/surge/arm-armv7l.cmake /compile/source/surge/cmake/arm-native.cmake
export CXXFLAGS="-march=armv7 -mfpu=vfpv3-d16 -mno-unaligned-access -Wno-psabi -Wno-attribute -flax-vector-conversions" CFLAGS="-march=armv7 -mfpu=vfpv3-d16 -mno-unaligned-access -Wno-psabi -Wno-attribute -flax-vector-conversions"
# aarch64 - the .cmake file does not seem to work - thus the export after
cp /compile/doc/surge/arm-aarch64.cmake /compile/source/surge/cmake/arm-native.cmake
export CXXFLAGS="-march=armv8-a -mtune=cortex-a53 -Wno-psabi -flax-vector-conversions" CFLAGS="-march=armv8-a -mtune=cortex-a53 -Wno-psabi -flax-vector-conversions"
./build-linux.sh --project=vst2 build
./build-linux.sh --project=vst3 build
./build-linux.sh --project=lv2 build
./build-linux.sh --project=headless build
rm -rf /usr/local/share/surge /usr/local/lib/vst3/Surge.vst3 /usr/local/lib/lv2/Surge.lv2 /usr/local/bin/Surge-Headless /usr/local/lib/vst/Surge.so
./build-linux.sh --project=vst2 install
./build-linux.sh --project=vst3 install
./build-linux.sh --project=lv2 install
./build-linux.sh --project=headless install
cp -r /compile/source/surge-extra-content/Skins/royal-surge.surge-skin /usr/local/share/surge/skins
# armv7l
tar czf /tmp/surge-1.9.0.armv7l.tar.gz /usr/local/share/surge /usr/local/lib/vst3/Surge.vst3 /usr/local/lib/lv2/Surge.lv2 /usr/local/bin/Surge-Headless
tar czf /tmp/surge-vst-1.9.0.armv7l.tar.gz /usr/local/lib/vst/Surge.so
# aarch64
tar czf /tmp/surge-1.9.0.aarch64.tar.gz /usr/local/share/surge /usr/local/lib/vst3/Surge.vst3 /usr/local/lib/lv2/Surge.lv2 /usr/local/bin/Surge-Headless
tar czf /tmp/surge-vst-1.9.0.aarch64.tar.gz /usr/local/lib/vst/Surge.so
# x86_64
tar czf /tmp/surge-1.9.0.x86_64.tar.gz /usr/local/share/surge /usr/local/lib/vst3/Surge.vst3 /usr/local/lib/lv2/Surge.lv2 /usr/local/bin/Surge-Headless
tar czf /tmp/surge-vst-1.9.0.x86_64.tar.gz /usr/local/lib/vst/Surge.so

surge-arm-build's People

Contributors

hexdump0815 avatar

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.