Created
July 21, 2014 20:25
-
-
Save bakercp/37a4984486b4c8f7fea0 to your computer and use it in GitHub Desktop.
openFrameworks on the UDOO Udoobuntu 1.0
This file contains 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
############################################################################### | |
# CONFIGURE CORE PLATFORM MAKEFILE | |
# This file is where we make platform and architecture specific | |
# configurations. This file can be specified for a generic architecture or can | |
# be defined as variants. For instance, normally this file will be located in | |
# a platform specific subpath such as | |
# | |
# $(OF_ROOT)/libs/openFrameworksComplied/linux64 | |
# | |
# This file will then be a generic platform file like: | |
# | |
# configure.linux64.default.make | |
# | |
# Or it can specify a specific platform variant like: | |
# | |
# configure.linuxarmv6l.raspberrypi.make | |
# | |
################################################################################ | |
################################################################################ | |
# include common rules | |
# | |
# all linux systems have several rules in common so most of them are included | |
# from the following file | |
# | |
################################################################################ | |
include $(OF_SHARED_MAKEFILES_PATH)/config.linux.common.mk | |
PLATFORM_DEFINES += LINUX | |
################################################################################ | |
# PLATFORM CFLAGS | |
# This is a list of fully qualified CFLAGS required when compiling for this | |
# platform. These flags will always be added when compiling a project or the | |
# core library. These flags are presented to the compiler AFTER the | |
# PLATFORM_OPTIMIZATION_CFLAGS below. | |
# | |
# Note: Leave a leading space when adding list items with the += operator | |
################################################################################ | |
PLATFORM_CFLAGS += -march=armv7 | |
PLATFORM_CFLAGS += -mtune=cortex-a8 | |
PLATFORM_CFLAGS += -mfpu=neon | |
PLATFORM_CFLAGS += -mfloat-abi=hard | |
PLATFORM_CFLAGS += -fPIC | |
PLATFORM_CFLAGS += -ftree-vectorize | |
PLATFORM_CFLAGS += -Wno-psabi | |
PLATFORM_CFLAGS += -pipe | |
################################################################################ | |
# PLATFORM LIBRARIES | |
# These are library names/paths that are platform specific and are specified | |
# using names or paths. The library flag (i.e. -l) is prefixed automatically. | |
# | |
# PLATFORM_LIBRARIES are libraries that can be found in the library search | |
# paths. | |
# PLATFORM_STATIC_LIBRARIES is a list of required static libraries. | |
# PLATFORM_SHARED_LIBRARIES is a list of required shared libraries. | |
# PLATFORM_PKG_CONFIG_LIBRARIES is a list of required libraries that are | |
# under system control and are easily accesible via the package | |
# configuration utility (i.e. pkg-config) | |
# | |
# See the helpfile for the -l flag here for more information: | |
# http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html | |
# | |
# Note: Leave a leading space when adding list items with the += operator | |
################################################################################ | |
#PLATFORM_PKG_CONFIG_LIBRARIES += glesv2 | |
#PLATFORM_PKG_CONFIG_LIBRARIES += egl | |
PLATFORM_LIBRARIES += GLESv1_CM | |
PLATFORM_LIBRARIES += GLESv2 | |
PLATFORM_LIBRARIES += EGL | |
ifeq ($(CROSS_COMPILING),1) | |
GCC_PREFIX=arm-linux-gnueabihf | |
PLATFORM_CXX = $(GCC_PREFIX)-g++ | |
PLATFORM_CC = $(GCC_PREFIX)-gcc | |
PLATFORM_AR = $(GCC_PREFIX)-ar | |
PLATFORM_LD = $(GCC_PREFIX)-ld | |
# Code Generation Option Flags (http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html) | |
PLATFORM_CFLAGS += --sysroot=$(SYSROOT) | |
PLATFORM_HEADER_SEARCH_PATHS += $(SYSROOT)/usr/include/c++/4.6/ | |
PLATFORM_HEADER_SEARCH_PATHS += $(SYSROOT)/usr/include/c++/4.6/arm-linux-gnueabihf | |
PLATFORM_LDFLAGS += --sysroot=$(SYSROOT) | |
PLATFORM_LDFLAGS += -Wl,-rpath-link $(SYSROOT)/usr/lib | |
PLATFORM_LDFLAGS += -Wl,-rpath-link $(SYSROOT)/usr/lib/arm-linux-gnueabihf | |
PLATFORM_LDFLAGS += -Wl,-rpath-link $(SYSROOT)/lib | |
PLATFORM_LDFLAGS += -Wl,-rpath-link $(SYSROOT)/lib/arm-linux-gnueabihf | |
PKG_CONFIG_LIBDIR=$(SYSROOT)/usr/lib/pkgconfig:$(SYSROOT)/usr/lib/arm-linux-gnueabihf/pkgconfig:$(SYSROOT)/usr/share/pkgconfig | |
PLATFORM_LIBRARIES += dl | |
endif |
This file contains 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
sudo apt-get install libmpg123-dev alsa-base alsa-tools alsa-utils libupnp-dev automake cvs libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libraw1394-dev libudev-dev libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev python-lxml python-argparse libfreetype6-dev libassimp-dev portaudio19-dev libssl-dev libpulse-dev libmpg123-dev libdrm-dev libglew-dev libgtk2.0-dev | |
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev gstreamer0.10-pulseaudio gstreamer0.10-x gstreamer0.10-plugins-bad gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly |
This file contains 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
To Install: | |
- Download 0.8.3 or use the 0.8.3 tag on master. | |
- Install dependencies. | |
- Copy config.linuxarmv7l.udoo.mk into $OF_ROOT/libs/openFrameworksCompiled/project/linuxarmv7l | |
- Go to example project. | |
To Prep: | |
$ export MAKEFLAGS="-j4 -s PLATFORM_VARIANT=udoo" | |
Then to Build: | |
$ make | |
To run: | |
$ make run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment