Made from https://github.com/RetroGFX/UnofficialOS/blob/main/PACKAGE.md#late-binding-variable-assignment And poking at environment variables and defined variables inside the shell during build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
REPO="https://github.com/JustEnoughLinuxOS/distribution" | |
BRANCH="main" | |
BUILD_OPTS="EMULATION_DEVICE=no ENABLE_32BIT=no" | |
BUILD_DEVICE="RK3326" | |
BUILDER="<VPS ip>" | |
SSH_OPTS="-o PubkeyAuthentication=yes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ReloadSoundUI keeps a map that associates labels used in dsp code | |
// with pointers to Soundfile zones so that they can be reloaded | |
// while the DSP is running | |
class ReloadSoundUI : public SoundUI | |
{ | |
std::map<std::string, Soundfile**> fSfZoneMap; | |
public: | |
ReloadSoundUI(const std::string& sound_directory = "", int sample_rate = -1, SoundfileReader* reader = nullptr, bool is_double = false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <thread> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include "faust/dsp/llvm-dsp.h" | |
#include "faust/dsp/libfaust.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14) | |
project(faustuserprojectwithllvm) | |
get_filename_component(MYLIBFAUSTEMBEDDED_ROOT | |
"${CMAKE_CURRENT_LIST_DIR}/../" | |
ABSOLUTE) | |
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0) | |
message(/usr/lib/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu/libz3.so) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- wget https://github.com/rxi/json.lua/raw/master/json.lua | |
local revx2 = require("revx2") | |
local inspect = require 'inspect' | |
local json = require "json" | |
local wav = require'luawav' | |
local path = "/path/to/json.json" | |
local json_file = io.open(path) | |
local loop = json.decode(json_file:read("*all")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14) | |
project(faustuserprojectwithllvm) | |
add_executable(faustuserprojectwithllvm main.cpp) | |
target_compile_features(faustuserprojectwithllvm PRIVATE cxx_std_11) | |
target_link_libraries(faustuserprojectwithllvm PUBLIC | |
${PROJECT_SOURCE_DIR}/libfaustwithllvm.a | |
rt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
apt install build-essential docker.io | |
cd ~ | |
git clone https://github.com/JustEnoughLinuxOS/distribution.git | |
cd distribution/ | |
# change netbase to 5.6 | |
# adapt flags here | |
EMULATION_DEVICE=no ENABLE_32BIT=no make docker-AMD64 | |
tar -czvf release.tar.gz release/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/surge-xt/osc/OSCListener.cpp b/src/surge-xt/osc/OSCListener.cpp | |
index a209970f..8ed102ce 100644 | |
--- a/src/surge-xt/osc/OSCListener.cpp | |
+++ b/src/surge-xt/osc/OSCListener.cpp | |
@@ -128,6 +128,24 @@ void OSCListener::oscMessageReceived(const juce::OSCMessage &message) | |
#ifdef DEBUG_VERBOSE | |
std::cout << "Parameter OSC name:" << p->get_osc_name() << " "; | |
std::cout << "Parameter full name:" << p->get_full_name() << std::endl; | |
+#endif | |
+ } |
⚠️ Quickly put together in April 2023, you're reading a gist, not a community wiki. It's fundamentally hacky, heavily summarized, and might be out-of-date, make sure you're familiar with the concepts before attempting this!
So, for some reason, the arm64 images used in lxc don't run on amd64 qemu by default.
The images are hosted here: https://us.lxd.images.canonical.com/images/
We will go for an ubuntu jammy arm64 image: https://us.lxd.images.canonical.com/images/ubuntu/jammy/arm64/default/20230413_07:43/disk.qcow2
There are plenty to choose from, just make sure to pick the qcow2 file
If you have lxc you can also run: lxc image export images:ubuntu/jammy/arm64 --vm images_ubuntu_arm64
It's a good thing to make a backup of this file as we're going to change it right away.