Giter VIP home page Giter VIP logo

bela-juce's Introduction

An example project to use Juce with Bela. Currently requires this JUCE branch.

The .jucer file comes with all the important flags already set. Here is a breakdown: Exporters -> LinuxMakefile

  • Extra preprocessor definitions:
__COBALT__
__COBALT_WRAP__
  • Extra compiler flags:
-mtune=cortex-a8
-mfloat-abi=hard
-mfpu=neon
-ftree-vectorize
-I/root/Bela/include -I/root/Bela/include/legacy -I/root/Bela/ -I/usr/xenomai/include/cobalt -I/usr/xenomai/include
  • Extra linker flags:
-L/root/Bela/lib  -L/usr/xenomai/lib
  • External libraries to link:
bela
belaextra
cobalt
modechk

In the juce_graphics, juce_gui_basics, and juce_gui_extra modules (which are for some obscure reason still required) disable most of the disableable voices (not all of them, as some will cause trouble!). Also disable curl in juce_core.

Prerequisites:

Not sure exactly what I had to install. Probably at least:

libfreetype6-dev
libxext6-dev
libxinerama1-dev

Usage:

Get a copy of JUCE, open the .jucer file in your Projucer, set the appropriate paths for the LinuxMakefile export, and save. Copy all the relevant files to the board, cd to Builds/LinuxMakefile and run make CONFIG=Release.

Further notes:

If your Juce app requires a display, then it will be probably fail at runtime. You may find it useful to use a virtual X11 server, such as xvfb, although ideally someone that doesn't perform any computation at all would probably be a better option.

The native build process is painfully slow. Using distcc helps making that faster, but still the linking stage is fairly slow. When building with distcc I recommend:

CXX=distcc-clang++ make V=1 TARGET_ARCH=-march=armv7-a CONFIG=Release

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.