Quantcast
Channel: arm - openFrameworks
Viewing all 364 articles
Browse latest View live

OF v20180313 armv6l on Raspberry Pi 3 + ofxPiMapper + ofxKinect

$
0
0

@eLearner_Network wrote:

PiBakery download:


*Use to configure under “On First boot”> setup WIFI, set user password to, and set hostname…(OPTIONAL: enable VNC, enable SPI, enable I2C) then in a separate block under “On Every Boot”> Set boot option to “Console logged in”

PiFinder download:
http://ivanx.com/raspberrypi/files/PiFinder.zip

*Use PiFinder to locate the SSH Address of your Pi

*SSH into the Pi from a different computer using
ssh pi@###.###.###.###
————————————————————————
sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade

sudo raspi-config

  1. Select 7 Advanced Options: Select 1 Expand Filesystem and hit Enter
  2. Select 7 Advanced Options: Select A3 Memory Split and hit Enter
    • Type 64 and Hit ok
  3. Select 7 Advanced Options: Select A7 GL Driver
    • G3 Legacy and Hit
    • “The GL driver is disabled.” Hit ok
  4. Hit Finish
    ————————————————————————

cd

wget http://ci.openframeworks.cc/versions/nightly/of_v20180313_linuxarmv6l_nightly.tar.gz

sudo reboot
————————————————————————
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###

sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade

mkdir openFrameworks

tar vxfz of_v20180313_linuxarmv6l_nightly.tar.gz -C openFrameworks --strip-components 1

cd /home/pi/openFrameworks/scripts/linux/debian

sudo ./install_dependencies.sh

Do you want to continue? [Y/n] y hit return

Do you want to continue? [Y/n] y hit return

sudo ./install_codecs.sh

Do you want to continue? [Y/n] y hit return

cd /home/pi/openFrameworks/libs/openFrameworksCompiled/project/linuxarmv6l

nano config.linuxarmv6l.default.mk

  1. Replace
    PLATFORM_LIBRARIES += GLESv2
    PLATFORM_LIBRARIES += GLESv1_CM
    PLATFORM_LIBRARIES += EGL
    with
    PLATFORM_LIBRARIES += brcmGLESv2
    PLATFORM_LIBRARIES += brcmEGL
    *To save the changes you’ve made, press Control + O
    *hit return
    *To exit nano, type Control + X

sudo make Release -C /home/pi/openFrameworks/libs/openFrameworksCompiled/project
————————————————————————
*Compile your first app
cd /home/pi/openFrameworks/examples/graphics/polygonExample

make

make run
————————————————————————
Unlike other platforms, OF Raspberry Pi projects do not make use of the projectGenerator. To create your own project from scratch, copy examples/empty/emptyExample into apps/myApps/yourProjectName folder and start from there
For example:
————————————————————————
*File Structure: cp -R /home/pi/openFrameworks/examples/empty/emptyExample /home/pi/openFrameworks/apps/myApps/myRpiApp

*File Structure: cd /home/pi/openFrameworks/apps/myApps/myRpiApp

————————————————————————
*Our polygonExample:
cp -R /home/pi/openFrameworks/examples/graphics/polygonExample /home/pi/openFrameworks/apps/myApps/myRpiApp

cd /home/pi/openFrameworks/apps/myApps/myRpiApp

make

make run
————————————————————————
#Don’t forget to reset the memory split from raspi-config back to 128 or 256.

sudo shutdown -h now

————————————————————————
#ofxPiMapper
————————————————————————
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###

sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade

cd /home/pi/openFrameworks/addons/

git clone https://github.com/jvcleave/ofxOMXPlayer.git

cd /home/pi/openFrameworks/addons/ofxOMXPlayer

git checkout 0.9.0-compatible

cd /home/pi/openFrameworks/addons

git clone https://github.com/kr15h/ofxPiMapper.git

cd /home/pi/openFrameworks/addons/ofxPiMapper/example

make && ./bin/example
————————————————————————
————————————————————————
*to run example:
cd /home/pi/openFrameworks/addons/ofxPiMapper/example

make && ./bin/example

./bin/example -f
————————————————————————

*to move example:
cp -R /home/pi/openFrameworks/addons/ofxPiMapper/example /home/pi/openFrameworks/apps/myApps/PiMapperApp


*to run PiMapperApp:
cd /home/pi/openFrameworks/apps/myApps/PiMapperApp

./bin/example -f
————————————————————————

sudo shutdown -h now

————————————————————————
#ofxKinect
————————————————————————
*SSH into the Pi from a different computer using
ssh pi@###.###.###.###

sudo apt-get clean

sudo apt-get update

sudo apt-get update

cd /home/pi/openFrameworks/examples/computer_vision/kinectExample

sudo make

cd bin

sudo ./kinectExample

————————————————————————
————————————————————————
*to move example:
cp -R /home/pi/openFrameworks/examples/computer_vision/kinectExample /home/pi/openFrameworks/apps/myApps/kinectApp


*to run ofxKinectApp:
cd /home/pi/openFrameworks/apps/myApps/kinectApp/bin

sudo ./kinectExample

————————————————————————

sudo shutdown -h now

Posts: 1

Participants: 1

Read full topic


ofxThreadedImageLoader on Raspberry Pi

Get the most out of OMXplayer

$
0
0

@CCx266 wrote:

Hello !
Let’s gather informations and discoveries on what you tested in order to get 1080p videos playing smoothly at 30fps. The idea is to refresh the old topics with latest Rpi 3, OF 0.10, and Raspbian Stretch, if that even matters…

I am using and developing with ofxPiMapper, and it uses ofxOMXPlayer.

I ran a few tests myself but I’m sure a lot of people here did go further than me and this is very interesting for a lot of Raspberry Pi users, as long as OF is not ported on another more GPU powered board like UDOO or else.

If you understand how OMXPlayer works internally, what can be the least GPU consuming tricks for videos ? Playing RAW video would help ?

How can I measure the GPU usage while testing different videos ? (My CPU is not at all too busy) I tried overclock it to 500MHz but didn’t get significant results.

Let’s share anything we have ! Cheers.

Posts: 4

Participants: 2

Read full topic

Ubuntu core cm3

$
0
0

@pandereto wrote:

Hello

I ordered a compute module 3 and want to install oF on this, someone tried to run oF with this ubuntu?

I see that no apt is available it use snap to install things so i think that the dependencies install script will not work¿

Thanks!

Posts: 1

Participants: 1

Read full topic

RPi native video player won't play sound

$
0
0

@prisonerjohn wrote:

I’m having trouble playing a video with sound on a Raspberry Pi using the native ofVideoPlayer. The sound will start playing with the video but will quickly drift out of sync and eventually just stop playing. All this happens very quickly, in under 10 seconds.

The video is encoded in H.264 and the sound in AAC at 48 Khz. I’m using the HDMI output for audio. If I play the same video using the omxplayer command in the shell, it plays with no problems.

Could this be a memory issue or is there a setting I’m missing somewhere? Any help or suggestions is appreciated. Thanks!

Posts: 1

Participants: 1

Read full topic

ofMesh::drawVertices() on GLES?

$
0
0

@ttyy wrote:

I’m not seeing anything when trying to drawVertices() from a mesh on Raspberry Pi.

main.cpp

ofGLESWindowSettings settings;
settings.glesVersion = 2;
ofCreateWindow(settings);
ofRunApp(new ofApp());

and
02_simpleVertexDisplacement example

with plane.drawVertices() instead of plane.drawWireframe() in ofApp::draw()

this is with legacy GL drivers and of_v0.10.0RC3_linuxarmv6l_release

Posts: 3

Participants: 2

Read full topic

Read only raspberry pi

$
0
0

@fresla wrote:

I am looking for a read only script for stretch (not lite). I have found a lot of things these last few days but nothing that will do read only for stretch and work with the latest OF from git. I do have a USB stick in the pi to read and write changing files, and it is faster than the SD card so I can redirect swaps and whatever I need to there.

The main reason is I want this device to be able to be hard unplugged, there is not really a good way for a shutdown sequence. If anyone has any good pointers it would be great to know.

Posts: 6

Participants: 4

Read full topic

ofxFaceTracker2 on Raspberry Pi 3

$
0
0

@javl wrote:

I’m trying to get ofxFaceTracker2 to work with a Raspberry Pi 2 with Raspbian Lite. I’ve made some small steps trying to get it to work, but I keep failing. I believe my problem lies with dlib.
When I try to compile the example-pose project, I end up with the following type of errors (among some other ones):

/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxFaceTracker2/src/ofxFaceTracker2.o: In function `dlib::get_serialized_frontal_faces[abi:cxx11]()':
ofxFaceTracker2.cpp:(.text._ZN4dlib28get_serialized_frontal_facesB5cxx11Ev[_ZN4dlib28get_serialized_frontal_facesB5cxx11Ev]+0x1c): undefined reference to `dlib::base64::base64()'

When I try to compile the same project, but I add ofxDlib, I get the following errors:

/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxFaceTracker2/src/ofxFaceTracker2.o: In function `dlib::entropy_decoder_model_kernel_5<257ul, dlib::entropy_decoder_kernel_2, 200000ul, 4ul>::decode(unsigned long&)':
ofxFaceTracker2.cpp:(.text._ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm[_ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm]+0x1c4): undefined reference to `dlib::entropy_decoder_kernel_2::get_target(unsigned int)'
ofxFaceTracker2.cpp:(.text._ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm[_ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm]+0x250): undefined reference to `dlib::entropy_decoder_kernel_2::decode(unsigned int, unsigned int)'
ofxFaceTracker2.cpp:(.text._ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm[_ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm]+0x2fc): undefined reference to `dlib::entropy_decoder_kernel_2::decode(unsigned int, unsigned int)'
ofxFaceTracker2.cpp:(.text._ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm[_ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm]+0x374): undefined reference to `dlib::entropy_decoder_kernel_2::get_target(unsigned int)'
ofxFaceTracker2.cpp:(.text._ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm[_ZN4dlib30entropy_decoder_model_kernel_5ILm257ENS_24entropy_decoder_kernel_2ELm200000ELm4EE6decodeERm]+0x390): undefined reference to `dlib::entropy_decoder_kernel_2::decode(unsigned int, unsigned int)'
/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxFaceTracker2/src/ofxFaceTracker2.o: In function `dlib::matrix<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::type, dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::NC, dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::NR, dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > >::mem_manager_type, dlib::row_major_layout> const dlib::pinv_helper<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > > >(dlib::matrix_exp<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 3l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > > > const&, double)':
ofxFaceTracker2.cpp:(.text._ZN4dlib11pinv_helperINS_9matrix_opINS_8op_transINS_6matrixIdLl3ELl0ENS_33memory_manager_stateless_kernel_1IcEENS_16row_major_layoutEEEEEEEEEKNS3_INT_4typeEXsrSA_2NCEXsrSA_2NRENSA_16mem_manager_typeES6_EERKNS_10matrix_expISA_EEd[_ZN4dlib11pinv_helperINS_9matrix_opINS_8op_transINS_6matrixIdLl3ELl0ENS_33memory_manager_stateless_kernel_1IcEENS_16row_major_layoutEEEEEEEEEKNS3_INT_4typeEXsrSA_2NCEXsrSA_2NRENSA_16mem_manager_typeES6_EERKNS_10matrix_expISA_EEd]+0x174): undefined reference to `dgesvd_'

Has anyone tried this (and if so, did you end up with a workable framerate?)

Posts: 1

Participants: 1

Read full topic


Openframeworks.cc certificate not trusted raspberry pi

$
0
0

@Poltergeister wrote:

I tried ‘wget https://openframeworks.cc/versions/v0.9.8/of_v0.9.8_linuxarmv6l_release.tar.gz’ of the OF distribution from my Pi3 with Rasbian4.14 (Stretch). SSH’d from Mac computer.

I got
ERROR: The certificate of ‘openframeworks.cc’ is not trusted.
ERROR: The certificate of ‘openframeworks.cc’ hasn’t got a known issuer.

Know if this Is a Pi issue? ‘Stretch’ OS issue, (they changed some approaches to permissioning in the new version of OS)? Server issue?

Are there workarounds?

Posts: 6

Participants: 3

Read full topic

Raspbian stretch x oF 0.10 / audio example is not work

$
0
0

@icq4ever wrote:

soundPlayerFFTExample and soundPlayerExample is crashed with openframeworks 0.10.0 with clean setup raspbian stretch x raspberry pi 2(old one). it looks like something related with alsa. launching app is ok unless any play sound (ie. click to play).

by the way, I tried to play mp3 file with ofxOmxplayer addon. and works well.

I didn’t tested with raspberry pi model3+. soon I’ll post it.

HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio gtk+-3.0 libmpg123 
with PKG_CONFIG_LIBDIR=
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 1280x800
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 1024x768
[notice ] ofAppEGLWindow: createSurface(): setting up EGL Display
[notice ] ofAppEGLWindow: createSurface(): EGL Display correctly set 0x1
[notice ] ofAppEGLWindow: createSurface(): no current renderer selected
[notice ] ofAppEGLWindow: createSurface(): default renderer detected
[notice ] ofAppEGLWindow: createSurface(): surface created correctly
[notice ] ofAppEGLWindow: createSurface(): API bound correctly
[notice ] ofAppEGLWindow: createSurface(): -----EGL-----
[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION_MAJOR = 1
[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION_MINOR = 4
[notice ] ofAppEGLWindow: createSurface(): EGL_CLIENT_APIS = OpenGL_ES OpenVG
[notice ] ofAppEGLWindow: createSurface(): EGL_VENDOR = Broadcom
[notice ] ofAppEGLWindow: createSurface(): EGL_VERSION = 1.4
[notice ] ofAppEGLWindow: createSurface(): EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_lock_surface 
[notice ] ofAppEGLWindow: createSurface(): GL_RENDERER = VideoCore IV HW
[notice ] ofAppEGLWindow: createSurface(): GL_VERSION  = OpenGL ES-CM 1.1
[notice ] ofAppEGLWindow: createSurface(): GL_VENDOR   = Broadcom
[notice ] ofAppEGLWindow: createSurface(): -------------
[notice ] ofAppEGLWindow: setupPeripherals(): peripheral setup complete
[notice ] ofAppEGLWindow: setupNativeUDev(): created udev object
[notice ] ofAppEGLWindow: setupMouse(): mouse_fd=5 devicePath=/dev/input/by-path/platform-20980000.usb-usb-0:1.2:1.1-event-mouse
[notice ] ofAppEGLWindow: setupMouse(): mouse device name = Lenovo ThinkPad Compact USB Keyboard with TrackPoint
[notice ] ofAppEGLWindow: mouse x axis min, max: 0, 0
[notice ] ofAppEGLWindow: mouse y axis min, max: 0, 0
[notice ] ofAppEGLWindow: setupKeyboard(): keyboard_fd=6 devicePath=/dev/input/by-path/platform-20980000.usb-usb-0:1.2:1.0-event-kbd
[notice ] ofAppEGLWindow: setupKeyboard(): keyboard device name = Lenovo ThinkPad Compact USB Keyboard with TrackPoint
[notice ] ofAppEGLWindow: setupPeripherals(): native event setup complete
Illegal instruction
/home/pi/oF/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:190: recipe for target 'run' failed
make: *** [run] Error 132

Posts: 2

Participants: 1

Read full topic

[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded - RPI3

$
0
0

@steeley wrote:

Yes this old problem … :frowning:

Running 0.10 on RPI3 B+ under latest Raspbian lite. OF, dependencies and codecs installed as per documentation… Raspberry Pi camera works ok from the command line: raspistill -o cam.jpg

videoPlayerExample runs and shows movie , but videoGrabberExample does not. No video and the above error repeating in the log output to terminal.

How can I get this working??
(output from dpkg -l | grep gstreamer. shown below:)

Thanks.

ii gir1.2-gstreamer-1.0 1.10.4-1 armhf GObject introspection data for the GStreamer library
ii gstreamer1.0-alsa:armhf 1.10.4-1 armhf GStreamer plugin for ALSA
ii gstreamer1.0-libav:armhf 1.10.4-1 armhf libav plugin for GStreamer
ii gstreamer1.0-omx 1.10.4-1+rpt3 armhf GStreamer OpenMAX plugins
ii gstreamer1.0-omx-rpi 1.10.4-1+rpt3 armhf OpenMax plugins for GStreamer
ii gstreamer1.0-omx-rpi-config 1.10.4-1+rpt3 armhf OpenMax plugins for GStreamer
ii gstreamer1.0-plugins-bad:armhf 1.10.4-1 armhf GStreamer plugins from the “bad” set
ii gstreamer1.0-plugins-base:armhf 1.10.4-1 armhf GStreamer plugins from the “base” set
ii gstreamer1.0-plugins-good:armhf 1.10.4-1 armhf GStreamer plugins from the “good” set
ii gstreamer1.0-plugins-ugly:armhf 1.10.4-1 armhf GStreamer plugins from the “ugly” set
ii gstreamer1.0-pulseaudio:armhf 1.10.4-1 armhf GStreamer plugin for PulseAudio
ii gstreamer1.0-x:armhf 1.10.4-1 armhf GStreamer plugins for X11 and Pango
ii libgstreamer-plugins-bad1.0-0:armhf 1.10.4-1 armhf GStreamer development files for libraries from the “bad” set
ii libgstreamer-plugins-base1.0-0:armhf 1.10.4-1 armhf GStreamer libraries from the “base” set
ii libgstreamer-plugins-base1.0-dev 1.10.4-1 armhf GStreamer development files for libraries from the “base” set
ii libgstreamer1.0-0:armhf 1.10.4-1 armhf Core GStreamer libraries and elements
ii libgstreamer1.0-dev 1.10.4-1 armhf GStreamer core development files

Posts: 1

Participants: 1

Read full topic

openAl error raspberry pi

$
0
0

@fresla wrote:

I am trying to load a longer sample using ofSoundPlayer on raspberry pi. I get this error

[ error ] ofOpenALSoundPlayer: loadSound(): couldn’t generate source for “”/media/Data/audio/Narration.wav"": 40964 AL_INVALID_OPERATION

Trying to load the same file as an mp3 also fails (in fact all mp3 sound playback with sound player on raspberry pi does not work).

Any workarounds for audio playback on the pi?

Posts: 1

Participants: 1

Read full topic

App build fails with "fatal error: cairo-features.h: No such file"

$
0
0

@simspace wrote:

I am trying to build an app on my Raspberry Pi and I am getting this error …

../../../libs/openFrameworks/graphics/ofCairoRenderer.h:4:28: fatal error: cairo-features.h: No such file or directory #include "cairo-features.h"

I confirmed that cairo-features.h is located in this path:
/usr/include/cairo/cairo-features.h

I’m not sure how to resolve this issue … that is, how to get openFrameworks to locate the required headers in /usr/include/cairo.

I would appreciate any advice how to resolve this.

Thanks,
Chris

Posts: 1

Participants: 1

Read full topic

./compileOF.sh error on ubuntu/arm8

$
0
0

@nosarious wrote:

I followed some instructions for installing openframeworks on Linux which included using git to download (can’t find the page, sorry)

git clone --recursive(ly) https://github.com/openframeworks/openFrameworks

(the ‘recursively’ didn’t work, but ‘recursive’ did. I’m not sure when that particular web page was published)

I then found the instructions for installing on Linux here: https://openframeworks.cc/setup/linux-install/

However, while the dependencies and codecs found in openframeworks/scripts/Linux/ubuntu can be executed, when I go to the next line:

cd OF/scripts/linux
./compileOF.sh -j3

I get the error:

HOST_OS=Linux
makefilecommon/config.shared.mk:86: *** recipe commences before first target.
Stop.
there has been a problem compiling Debug OF library
please report this problem in the forums

This is on a NVidia Jetson TX2, which has an arm8 processor, but I didn’t know there were only arm6 and arm7 versions of openframeworks.

is there a way to install openframeworks onto this device? Is there a way to delete what is here already if I cannot?

Posts: 3

Participants: 2

Read full topic

Raspberry Pi window bigger than 2048 pixels?

$
0
0

@Digl wrote:

Hi all,

I’m trying to get a Raspberry Pi (3, B+) to run an app at 2560x1440 resolution. However, whenever I call ofSetupOpenGL with a dimension larger than 2048, I get an “egl_bad_native_window” error, followed by a lot of “egl swapbuffers failed” errors. (no extra code in ofApp.cpp past the default template)

I’ve tried doing it by calling ofSetupOpenGL at a smaller resolution (e.g. 500 x 500), then using ofSetWindowShape(2560, 1440). This seems to do something, but there are some black bars and positioning oddities: while the app reports its width is 2560 (using ofGetWidth()), things under the hood clearly aren’t happy.

Before ploughing on with weird hacks, thought I’d ask here. What’s the proper way of running a large-resolution app on the Pi? Is it possible, or is 2k some sort of hard limit for the hardware?

Cheers,
Digl

Posts: 3

Participants: 3

Read full topic


RPi - Temp fix or workaround for ofSetBackgroundAuto?

$
0
0

@Digl wrote:

Hi all,

I’m working on a Raspberry Pi project (RPi 3 B+) with a high resolution screen (2560x1440) (OF version 0.10.0_linuxarmv6l). The project has very simple graphics, but needs the background to not automatically redraw.

Raspberry Pi’s ofSetBackgroundAuto is currently bugged and will continue to draw the background even when set to false (Github issue). The current workaround is to use FBOs - these work, but are a massive hit on my framerate (60fps -> 20fps).

Is there an adjustment to the openFrameworks source I can make to quick-fix the ofSetBackgroundAuto problem? I don’t know much about the source or re-compiling it so this may be unpractical.

Alternatively, is there a more efficient workaround than using FBOs? Or a more efficient way to use them? The performance impact comes from the fbo.draw() call in my draw() loop.

Many thanks,
Digl

Posts: 3

Participants: 2

Read full topic

Attempting to make ofxPostProcessing on Raspbian

$
0
0

@cjniven wrote:

Hi there,

I built OF v.0.10 Release Candidate 4 on my Raspberry Pi 3 B+ (Running Raspbian Stretch) and I’m trying to make a project that works on my Mac that uses the ofxPostProcessing addon.

I feel like I might have not setup something properly because a lot of the core OF headers are not being seen:

/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp: In member function ‘itg::LUTPass* itg::LUTPass::loadLUT(std::__cxx11::string)’:
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:60:37: error: ‘ofToDataPath’ was not declared in this scope
             path = ofToDataPath(path);
                                     ^
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:98:19: warning: comparison betweensigned and unsigned integer expressions [-Wsign-compare]
    if (lut.size() != (LUT_3D_SIZE * LUT_3D_SIZE * LUT_3D_SIZE)) ofLogError() << "LUT size is incorrect.";
        ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:98:76: error: ‘ofLogError’ was notdeclared in this scope
    if (lut.size() != (LUT_3D_SIZE * LUT_3D_SIZE * LUT_3D_SIZE)) ofLogError() << "LUT size is incorrect.";
                                                                            ^
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:105:22: error: ‘GL_TEXTURE_3D’ wasnot declared in this scope
             glEnable(GL_TEXTURE_3D);
                      ^~~~~~~~~~~~~
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:113:63: error: ‘GL_CLAMP’ was not declared in this scope
             glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP);
                                                               ^~~~~~~~
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:115:44: error: ‘GL_TEXTURE_WRAP_R’was not declared in this scope
             glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP);
                                            ^~~~~~~~~~~~~~~~~
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:119:119: error: ‘glTexImage3D’ wasnot declared in this scope
 ge3D(GL_TEXTURE_3D, 0, GL_RGB, LUT_3D_SIZE, LUT_3D_SIZE, LUT_3D_SIZE, 0, GL_RGB, GL_FLOAT, &lut[0]);
                                                                                                   ^
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp: In member function ‘void itg::LUTPass::dispose()’:
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:152:23: warning: converting to non-pointer type ‘GLuint {aka unsigned int}’ from NULL [-Wconversion-null]
             lut_tex = NULL;
                       ^~~~
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp: In member function ‘virtual void itg::LUTPass::render(ofFbo&, ofFbo&)’:
/home/pi/openFrameworks/addons/ofxPostProcessing/src/LUTPass.cpp:165:45: error: ‘GL_TEXTURE_3D’ wasnot declared in this scope
         shader.setUniformTexture("lut_tex", GL_TEXTURE_3D, lut_tex, 1);
                                             ^~~~~~~~~~~~~
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:358: recipe for target '/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxPostProcessing/src/LUTPass.o' failed
make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxPostProcessing/src/LUTPass.o] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/apps/myApps/interpretat_io'
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2

if I type

#include "ofLog.h"

In LUTPass.h to get rid of the message of it complaining about ofLogError() not being found, it still gives me the same error.

If anyone can point me in the right direction I would greatly appreciate it!

Thanks,

-Chris

Posts: 4

Participants: 2

Read full topic

Attempting to cross-compile OF for RPI3 Raspbian Stretch

$
0
0

@cjniven wrote:

Hi there,

I’m trying to learn how to cross-compile on my Mac running OS X 10.13.3 for my Raspberry Pi 3 B+ running Stretch.

I’ve tried doing this using the VM method outlined in this thread: Cross compiler for OF 0.9.0/Jessie/arm6/RPi1, but I got stuck on the step where I had to actually mount the RPI as a network drive on the VM (however, mounting on my Mac works fine).

I’ve found another resource online for cross-compiling that provides a precompiled toolchain here: Cross compiler for OF 0.9.0/Jessie/arm6/RPi1

Using the guide outlined here: https://openframeworks.cc/setup/raspberrypi/raspberry-pi-cross-compiling-guide/ I tried running this command:

make TOOLCHAIN_ROOT=/Volumes/xtools/armv8-rpi3-linux-gnueabihf/bin GCC_PREFIX=armv8-rpi3-linux-gnueabihf RPI_ROOT=/Volumes/Data/home/pi

Which produces this error:

HOST_OS=Darwin
/Volumes/Data/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:86: *** commands commence before first target.  Stop.

I’m very new to this so I’m sure there’s something very obvious that I’m doing wrong. I would rather compile the code on my mac without having to use a VM if possible. Could anyone point me in the right direction?

EDIT: I’m taking a look at the steps here in the meantime: https://openframeworks.cc/setup/raspberrypi/raspberry-pi-cross-compiling-guide-wheezy/

Posts: 2

Participants: 2

Read full topic

Raspberry x11 window

Setting up Raspberry Pi 3 B with OpenFrameworks

$
0
0

@nicourense98 wrote:

I just set up my Rsapberry Pi 3 B and now I am trying to connect it to openFrameworks. I am following this tutorial https://openframeworks.cc/setup/raspberrypi/raspberry-pi-getting-started/ but I get an error on the step where I need to install the necessary packages. I was previously also getting an error on the dowloading openFrameworks step but then I just did that step manually (without using the Shell) and I think that’s fine now, hopefully no problems there. Any suggestions?

Posts: 6

Participants: 4

Read full topic

Viewing all 364 articles
Browse latest View live