Skip to contentSkip to conversation

JUCE Framework support for OE

PATCH In review Felipe F. Tonello 3 participants 9 messages Jul 15, 2016 – Jul 22, 2016

lore
Share & tools
lore
#0 lore raw

cover JUCE Framework support for OE

This patchset contains the needed infrastructure needed in order to easily support JUCE applications on OpenEmbedded.

For more information about JUCE, check the patch #2.

Felipe F. Tonello (2):
recipes-graphics: Added native and nativesdk support for some
libraries
juce: Added support for JUCE framework

 meta/classes/juce.bbclass                          | 37 +++++++++++++++++++
 meta/recipes-devtools/juce/projucer_git.bb         | 41 ++++++++++++++++++++++
 meta/recipes-graphics/freetype/freetype_2.6.3.bb   |  2 +-
 .../recipes-graphics/xorg-lib/libxcursor_1.1.14.bb |  2 +-
 .../recipes-graphics/xorg-lib/libxinerama_1.1.3.bb |  2 ++
 .../xorg-proto/xineramaproto_1.2.1.bb              |  2 ++
 6 files changed, 84 insertions(+), 2 deletions(-)
 create mode 100644 meta/classes/juce.bbclass
 create mode 100644 meta/recipes-devtools/juce/projucer_git.bb
Signature · 1 line
2.9.0
#1 lore raw

PATCH 1/2 recipes-graphics: Added native and nativesdk support for some libraries

These libraries are used in some recipes outside oe-core, so we should add this class support to avoid duplication and bbappends on other layers.

---
 meta/recipes-graphics/freetype/freetype_2.6.3.bb        | 2 +-
 meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb     | 2 +-
 meta/recipes-graphics/xorg-lib/libxinerama_1.1.3.bb     | 2 ++
 meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb | 2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)
meta/recipes-graphics/freetype/freetype_2.6.3.bb +1 -1
index bcd50444cb83..c59376d66386 100644
@@ -46,4 +46,4 @@ do_install_append() {
 
 BINCONFIG = "${bindir}/freetype-config"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
meta/recipes-graphics/xorg-lib/libxcursor_1.1.14.bb +1 -1
index a8e4f24b6ba9..17629047b7b7 100644
@@ -12,7 +12,7 @@ LICENSE = "MIT-style"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8902e6643f7bcd7793b23dcd5d8031a4"
 
 DEPENDS += "libxrender libxfixes"
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
 
 PE = "1"
 
meta/recipes-graphics/xorg-lib/libxinerama_1.1.3.bb +2 -0
index 027c8043d843..bb03f44e25ad 100644
@@ -18,3 +18,5 @@ XORG_PN = "libXinerama"
 
 SRC_URI[md5sum] = "9336dc46ae3bf5f81c247f7131461efd"
 SRC_URI[sha256sum] = "7a45699f1773095a3f821e491cbd5e10c887c5a5fce5d8d3fced15c2ff7698e2"
+
+BBCLASSEXTEND = "native nativesdk"
meta/recipes-graphics/xorg-proto/xineramaproto_1.2.1.bb +2 -0
index d00774ece5dc..dde7e9db7aa8 100644
@@ -15,3 +15,5 @@ PE = "1"
 
 SRC_URI[md5sum] = "9959fe0bfb22a0e7260433b8d199590a"
 SRC_URI[sha256sum] = "977574bb3dc192ecd9c55f59f991ec1dff340be3e31392c95deff423da52485b"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.9.0
#2 lore raw

PATCH 2/2 juce: Added support for JUCE framework

In reply to Felipe F. Tonello

See below for the official README from JUCE.

For TL;DRs: JUCE is a well known and widely used C++ Framework for audio applications. It has good support for Linux and ARM.

A typical JUCE application recipe will only contain this skeleton:

inherit juce

SRC_URI = "..."

JUCE_JUCERS = "${B}/Embedded/equator-embedded.jucer"

do_compile() {
CONFIG=Release oe_runmake
}

do_install() {
install ...
}

======

From the README:

JUCE (Jules' Utility Class Extensions) is an all-encompassing C++ framework for developing cross-platform software.

It contains pretty much everything you're likely to need to create most applications, and is particularly well-suited for building highly-customised GUIs, and for handling graphics and sound.

Most JUCE modules are shared under the GNU Public Licence (GPLv2, v3, and the AGPLv3). This means that the code can be freely copied and distributed, and costs nothing to use in other GPL applications. One module (the juce_core module) is permissively licensed under the ISC.

For more information, visit the website:
http://www.juce.com)

---
 meta/classes/juce.bbclass                  | 37 +++++++++++++++++++++++++++
 meta/recipes-devtools/juce/projucer_git.bb | 41 ++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)
 create mode 100644 meta/classes/juce.bbclass
 create mode 100644 meta/recipes-devtools/juce/projucer_git.bb
meta/classes/juce.bbclass new file +37 -0
new file mode 100644
index 000000000000..8fba23863f2d
@@ -0,0 +1,37 @@
+inherit pkgconfig
+
+JUCE_X11_DEPS = "libx11 libxext libxinerama libxinerama libxrandr libxcursor freetype"
+JUCE_DEPS = " \
+  ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${JUCE_X11_DEPS}', '', d)} \
+  alsa-lib \
+  curl \
+"
+DEPENDS_prepend = "projucer-native ${JUCE_DEPS} "
+
+export OE_JUCE_INTROJUCER = "${STAGING_BINDIR_NATIVE}/Projucer"
+
+juce_do_configure() {
+  if [ -z "${JUCE_JUCERS}" ]; then
+    JUCERS=`find . -type f -iname "*.jucer"` && IFS=$'\n'
+  else
+    JUCERS="${JUCE_JUCERS}"
+  fi
+
+  if [ -z "$JUCERS" ]; then
+    die "JUCE_JUCERS not set and no profiles found in $PWD"
+  fi
+
+  # XXX: Hack for Projucer, since it requires a X Display even when running in
+  # console mode. This will be fixed in future. Most cases DISPLAY=:0 will just work,
+  # the only case why we have JUCE_DISPLAY variable, is in case of a build system,
+  # such as jenkins, that can have multiple virtual X server running for each build.
+  test -z "${JUCE_DISPLAY}" && export DISPLAY=:0 || export DISPLAY=${JUCE_DISPLAY}
+
+  for i in $JUCERS; do
+    ${OE_JUCE_PROJUCER} --resave $i
+  done
+}
+
+EXPORT_FUNCTIONS do_configure
+
+addtask configure after do_unpack do_patch before do_compile
meta/recipes-devtools/juce/projucer_git.bb new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.9.0
#3 lore raw

Re: [PATCH 2/2] juce: Added support for JUCE framework

Quoted 3 lines · Felipe F. Tonello

For TL;DRs: JUCE is a well known and widely used C++ Framework for audio applications. It has good support for Linux and ARM.

Getting new recipes into oe-core has a high bar. Why would this be in oe-core and not it's own layer, or part of meta-multimedia?

Ross

#4 lore raw

Re: [PATCH 2/2] juce: Added support for JUCE framework

Hi Ross,

Quoted 11 lines · Ross

On 15 July 2016 at 17:36, Felipe F. Tonello <[email protected] <mailto:[email protected]>> wrote:

For TL;DRs: JUCE is a well known and widely used C++ Framework for audio applications. It has good support for Linux and ARM.

Getting new recipes into oe-core has a high bar. Why would this be in oe-core and not it's own layer, or part of meta-multimedia?

Yes. I sent this patch to oe-core because I believe it is a great addition to OE since this will enable many applications to be ported to Embedded Linux that before was not possible. JUCE has no support for Embedded Linux so far because most people doing Audio programming have no experience with this side of things.

I can send this as part of meta-multimedia, no problem. What is the process to promote a recipe to oe-core?

Anyhow, I have to resend a v2 of this recipe anyway because there are some typos to be fixed.

Signature · 1 line
Felipe
#5 lore raw

Re: [PATCH 2/2] juce: Added support for JUCE framework

Quoted 3 lines · Felipe Ferreri Tonello

I can send this as part of meta-multimedia, no problem. What is the process to promote a recipe to oe-core?

To be part of oe-core you basically need to be able to demonstrate that a large proportion of users will need it. As this is an audio framework, meta-multimedia is the obvious home for it.

Ross

#6 lore raw

Re: [PATCH 2/2] juce: Added support for JUCE framework

Hi Ross,

Quoted 4 lines · Ross

On 18 July 2016 at 11:07, Felipe Ferreri Tonello <[email protected] <mailto:[email protected]>> wrote:

Quoted 8 lines

I can send this as part of meta-multimedia, no problem. What is the process to promote a recipe to oe-core?

To be part of oe-core you basically need to be able to demonstrate that a large proportion of users will need it. As this is an audio framework, meta-multimedia is the obvious home for it.

Ok. Nevertheless the first patch is valid for oe-core.

Thanks.

Signature · 1 line
Felipe
#7 lore raw

Re: [PATCH 2/2] juce: Added support for JUCE framework

Quoted 2 lines · Felipe Ferreri Tonello

Ok. Nevertheless the first patch is valid for oe-core.

Agreed, already queued it for testing. :)

Ross

#8 lore raw
In reply to Felipe F. Tonello
Quoted 4 lines · Felipe F. Tonello

This patchset contains the needed infrastructure needed in order to easily support JUCE applications on OpenEmbedded.

For more information about JUCE, check the patch #2.

Meta-OE please.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750