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
| /* | |
| Copyright (c) 2012, Broadcom Europe Ltd | |
| Copyright (c) 2012, OtherCrashOverride | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| * Redistributions of source code must retain the above copyright | |
| notice, this list of conditions and the following disclaimer. | |
| * Redistributions in binary form must reproduce the above copyright |
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
| CFLAGS="-std=c++14 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -ffast-math -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST" | |
| ./configure --extra-cflags="-mfpu=neon-vfpv4 -mfloat-abi=hard -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog" --enable-static --arch=arm --cpu=cortex-a7 --target-os=linux --disable-hwaccels --enable-parsers --disable-muxers --disable-filters --disable-encoders --disable-devices --disable-programs --enable-shared --disable-doc --disable-postproc --enable-gpl --enable-version3 --enable-protocols --enable-nonfree --enable- |
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
| #ON THE RPI (if you haven't downloaded openFrameworks) | |
| cd | |
| curl -O http://192.237.185.151/versions/nightly/of_v20151008_linuxarmv6l_nightly.tar.gz | |
| mkdir openFrameworks | |
| tar vxfz of_v20151008_linuxarmv6l_nightly.tar.gz -C openFrameworks --strip-components 1 | |
| cd /home/pi/openFrameworks/scripts/linux/debian | |
| sudo ./install_dependencies.sh | |
| #INSTALL SMB WITH / ACCESS |
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 "ofShader.h" | |
| #include "ofUtils.h" | |
| #include "ofFileUtils.h" | |
| #include "ofGraphics.h" | |
| #include "ofGLProgrammableRenderer.h" | |
| #include "ofTexture.h" | |
| #include "ofMatrix4x4.h" | |
| #include "ofMatrix3x3.h" | |
| #include "ofVec2f.h" | |
| #include "ofVec3f.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
| ifeq "$(CFG)" "Release" | |
| # Hardware specifying flags | |
| CFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 | |
| # Optimization level, minus currently buggy optimizing methods (which break bit-exact) | |
| CFLAGS += -O3 -fno-tree-pre -fno-strict-aliasing | |
| # More optimization flags | |
| CFLAGS += -ftree-vectorize -ffast-math -funsafe-math-optimizations #-fsingle-precision-constant |
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
| ############################################################################### | |
| # 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: |
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
| /* | |
| Copyright (c) 2012, Broadcom Europe Ltd | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| * Redistributions of source code must retain the above copyright | |
| notice, this list of conditions and the following disclaimer. | |
| * Redistributions in binary form must reproduce the above copyright | |
| notice, this list of conditions and the following disclaimer in the |
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
| =================== config.mk platform detection ================ | |
| PLATFORM_ARCH=armv6l | |
| PLATFORM_OS=Linux | |
| PLATFORM_VARIANT=default | |
| PLATFORM_LIB_SUBPATH=linuxarmv6l | |
| =================== config.mk paths ============================= | |
| OF_ADDONS_PATH=../../../addons | |
| OF_EXPORT_PATH=../../../export | |
| OF_EXAMPLES_PATH=../../../examples | |
| OF_APPS_PATH=../../../apps |
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
| struct YouTubeVideo | |
| { | |
| string url; | |
| int itag; | |
| map<string, string> valueMap; | |
| vector<string> valueMapNames; | |
| YouTubeVideo() | |
| { | |
| url = ""; | |
| itag = -1; |
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
| ON THE RPI (if you haven't downloaded openFrameworks) | |
| $ cd | |
| $ curl -O http://www.openframeworks.cc/versions/v0.8.4/of_v0.8.4_linuxarmv6l_release.tar.gz | |
| $ mkdir openFrameworks | |
| $ tar vxfz of_v0.8.4_linuxarmv6l_release.tar.gz -C openFrameworks --strip-components 1 | |
| $ cd /home/pi/openFrameworks/scripts/linux/debian_armv6l | |
| $ sudo ./install_dependencies.sh | |
| ON THE MAC: |