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

Any recommendations for a small Raspberry Pi screen to display oF projects?

$
0
0

Hi,

Has anybody had any luck with one of the smaller screens and a Raspberry Pi to display openFrameworks projects?

I’m in the market for a small-ish screen (ca. 10cm), but don’t really know what to get.
I’ve been eyeing the Pimoroni Hyperpixel ones, but they seem to have some downsides, like for instance not being able to show anything, when the OS hasn’t booted to desktop.
I also have the official 7" touchscreen, but that’s too big and I’m already using it with another Pi.

Any recommendations or other tipps?

Thanks.

2 posts - 2 participants

Read full topic


Compiler error on rpi3 while trying to install ofxPiMapper (ofxOMXPlayer - IL/OMX_Core.h)

$
0
0

So I’m trying to put ofxPiMapper on a raspberry pi 3 using these instructions:

I was running into errors at first so I got cloned the master repo and managed to compile OF with the included libraries and scripts; cloned the provided repos from kr15h and jvcleave and have since had difficulty compiling the example-basic code for ofxOMXPlayer.

install_depends.sh runs without a hitch but running make returns the following fatal error:

/home/pi/openFrameworks/addons/ofxOMXPlayer/src/ofxOMXPlayerSettings.h:4:10: fatal error: IL/OMX_Core.h: No such file or directory
    4 | #include <IL/OMX_Core.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:217: obj/linuxarmv6l/Release/src/ofApp.o] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/addons/ofxOMXPlayer/example-basic'
make: *** [/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

trolling through old forums indicated that I needed the package libomxil-bellagio-dev but installing it hasn’t solved the issue.

I’m at a loss as to where I need to get those headers or if I need to modify any scripts or files. any advice to move forward would be greatly appreciated.

1 post - 1 participant

Read full topic

Missing cairo.h in 0.11.0

$
0
0

Hi I’m trying to open the examples in pimapper using a raspberry Pi 3b. I am getting this error

fatal error: cairo.h: no such file or directory

any clues as to where to find and place this header file?

2 posts - 2 participants

Read full topic

Of 0.11.2 on raspberry pi 4 bullseye - fail to compile example

$
0
0

OF seems to have installed ok but …
getting this error when building on bullseye lite (but I do have X11) on RPI 4:

Linking bin/3DPrimitivesExample for linuxarmv6l
g++ -o bin/3DPrimitivesExample  obj/linuxarmv6l/Release/src/main.o obj/linuxarmv6l/Release/src/ofApp.o   /home/pi/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a  -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -pthread -latomic -L/opt/vc/lib /home/pi/openFrameworks/libs/kiss/lib/linuxarmv6l/libkiss.a /home/pi/openFrameworks/libs/tess2/lib/linuxarmv6l/libtess2.a -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lrtaudio -lasound -lpulse-simple -lpulse -ljack -lpthread -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lGLEW -lGLU -lGL -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama -lglfw -lGLESv2 -lGLESv1_CM -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpcre -lrt -lX11 -ldl
/usr/bin/ld: cannot find -lopenmaxil

Get the same result with polygonExample

Any clues??

TIA

4 posts - 2 participants

Read full topic

Of 0.11.2 on raspberry pi 4 bulleyes - can launch from start

$
0
0

Yet more RPI OF problems …

in the RPI install guide in section " Tips for 0.11.0 / Raspberry Pi 4"
you can install Xorg and run from commandline without full desktop:

startx ./polygonExample – -s off

polygonExample compiles fine but launching via this method fails due to server shutting down.
See this error but I still see it if I run openbox.

XDG_RUNTIME_DIR not set in environment.xinit

I installed openbox and can run starts to get a window manager and use RunRelease to launch file, which works but not what I want.

Any idea??

TIA

1 post - 1 participant

Read full topic

SBC alternatives

$
0
0

Hello

Now that seems not possible to get a bunch of rpi (3 or 4 dont mind) im searching for alternatives, did someone use oF in a similar price range sbc¿? I would like to know about performance and realibility

3 posts - 2 participants

Read full topic

OF 0.11.2 pi4 bullseye - some projects with addons do not compile due to "config.addons.mk:210: *** missing separator"

$
0
0

Pretty much as the title says, if I try to compile some projects that use addons, I get the following output when the compile fails:

/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk:210: *** missing separator.

I haven’t checked all the examples, but so far it seems to happen to:
3DModelLoaderExample
assimpExample
cameraLensOffsetExample
opencvExample
anything with ofxRPI4Window

And from my initial observations, I think this only happens when the addons have an addon_config.mk file in the addon folder, but I might be wrong here.

I found a similar issue here on github, but it might be a red herring:

From what I can decipher from this thread, the fault lies somewhere with an incompatibility with make 4.3 (Bullseye uses this).

Should I try to downgrade to make 4.2 on my pi? Or is there something else I can do?
Thank you!

3 posts - 2 participants

Read full topic

Screen size difference beetween Pi3 and Pi4

$
0
0

Hi guys I want to share a problem I got recently. I got an OF App than runs on Raspberry Pi 3, everything was fine but the framerate was a bit to slow, so I change for a Raspberry Pi 4. Until here everything was fin but… the image size is distorted on Pi 4.

I use same /boot/config.txt options, same resolution, same video projector, the only difference is the starting method as I was starting in the terminal with pi 3 and with startx with pi4.

Anyone aware of this and a way to solve it ?

3 posts - 2 participants

Read full topic


ofVideoPlayer audio routing on RPi 3

Cross compiling for Raspberry Pi from Windows

$
0
0

Hi all!
On the recommendation of @arturo , I’ve been investigating VisualGDB which is capable of:

  1. Cross compiling
  2. Deploying
  3. Remote debugging

It seems to significantly simplify the process of cross-compilation, e.g.:

  1. it will download a toolchain for your Raspbian version
  2. it will sync relevant folders

From there, it works within Visual Studio and is somewhat compatible with the usual MSBuild workflow features (e.g. .props).
I’ve posted a mini log of my progress here:
Topic: Log : cross-compiling openFrameworks to Raspberry Pi using VisualGDB | Sysprogs

And now that it’s mostly working (emptyExample runs fine). I’m trying to get my actual project building (i.e. with more addons).

Caveats:

  • You have to pay ~100USD/year to use it (30 day free trial with all features)
  • It isn’t great at importing Makefile projects, so I’ve actually remade a build system from scratch using MSBuild.
  • Precompiled headers need to be in the same folder as the project file (it seems?? unsure - basically pch is quite tricky at the moment)
  • System slows down considerably during builds (it seems to be ‘less polite’ than when VC++ is building)
  • I’ve disabled sound for now. It should be pretty easy to bring back (watch out for the TARGET_NO_SOUND in the props file)

IF you want to try it out then try the emptyExample here:
elliotwoods/ofxVisualGDBCrossCompile: Use VisualGDB to cross-compile, deploy and debug on Raspberry Pi (github.com)

3 posts - 1 participant

Read full topic

How to change display resolution on RPi 4 / startx

$
0
0

Not an issue, just a tip.

I’m running a 1920x1080 app on a Raspberry Pi 4 via startx. It works fine on a native 1920x1080 monitor, but when I tried a 4k monitor, X starts with the monitor’s default resolution and my app only fills 1/4 of the screen. Here’s how I fixed things, in case anyone else is doing something similar:

After starting the app with startx, you can use xrandr to change the display resolution:
sudo xrandr -display :0.0 --output HDMI-1 --mode 1920x1080

This obviously isn’t ideal. Another option is to create a file called xorg.conf in /etc/X11/ with something like the following contents:

Section “Monitor”
Identifier “HDMI-1”
VendorName “SAM”
Modeline “forced” 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Option “Primary” “true”
Option “PreferredMode” “forced”
Option “Enable” “true”
Option “IgnoreEDID”
EndSection

Note that the Modeline and VendorName lines were copied from a log file at /var/log/Xorg.??.log that is created by startx. See linux - Xorg -configure not working, but running X works - Super User

1 post - 1 participant

Read full topic

Looking for an oF ready to use SD Image for RPI2

$
0
0

Hello,

anybody has or knows where can I download an openFrameworks ready to use SD image to download/share?

I am not pretty handy with Linux and would like to save some time, installing, updating, etc…

I think I have some RPI 2 B, some RPI 1.

PS:
And if not, any nice guide around to look into in 2022?
Raspbian or Arch Linux?
Anybody has success on cross compiling on Windows/macOS?

Regards

2 posts - 2 participants

Read full topic

OF on Jetson nano

$
0
0

Hi there,
I recently got a Jetson Nano 4GB and I am having trouble installing OF.
I followed the steps from these two page:

After successfully installing all dependencies, compileOF.sh gives me the error below. I tried a couple of times from a freshly flashed OS as well as an older version of OF, but without any luck.

In file included from /home/ch3/dev/openFrameworks/libs/openFrameworks/events/ofEvents.h:3:0,
                 from /home/ch3/dev/openFrameworks/libs/openFrameworks/events/ofEvents.cpp:1:
/home/ch3/dev/openFrameworks/libs/openFrameworks/utils/ofConstants.h:480:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.

I am not as experienced with troubleshooting linking issues especially in linux environments, so any pointers would be highly appreciated
thank you

6 posts - 2 participants

Read full topic

Install Debian and oF on a Rock Pi 4

RPi GPIO sampling faster than 60Hz

$
0
0

Hi! Not sure how trivial my problem/question is (maybe this should be moved to “beginners”?). I would appreciate any help.

What I have is RPi4 (running Lite system and oF 0.11.2), one of the GPIO ports is connected to a currency validator (coin/token/bill acceptor). Once a valid coin is inserted, the device will send a 100ms signal.

For security reasons I need to make sure that the signal duration is with 10% tolerance (so it needs to be between 90ms and 110ms). Signal length 89ms and shorter or 111ms and longer should be detected as invalid. So I need a precise way to measure signal duration.

I assume I need to monitor GPIO ports outside the main ofApp::update() loop (which is 60fps/Hz). In a separate thread? Any help with measuring signal length at for example 250Hz?

2 posts - 2 participants

Read full topic


[pi4 bulleye ] libcamerasrc and ofGstVideoUtils

$
0
0

Hi!

I want to use the raspberry pi camera in openframeworks (0.11.2) on a raspberry pi 4 (4gb) running debian bulleye (32 bit).

I tried every detected camera in the videoGrabberExample but it does not seem to work (compile ok but no video texture).

I’m able to preview the camera using this command

gst-launch-1.0 -v libcamerasrc ! video/x-raw,width=640,height=480,framerate=60/1 ! videoconvert ! autovideosink

Is there a way to use libcamerasrc with ofGstVideoUtils ?

I tried this
setup()

camWidth = 640; 
camHeight = 480;
gst.setPipeline("-v libcamerasrc ! video/x-raw,width=640,height=480,framerate=60/1 ! videoconvert " , OF_PIXELS_RGB, true, camWidth, camHeight);
gst.startPipeline();
gst.play();
 tex.allocate(camWidth,camHeight,GL_RGB);

update

gst.update();
    if(gst.isFrameNew()){
        if (tex.getWidth() != gst.getWidth())
        {
            tex.allocate(gst.getWidth(), gst.getHeight(), GL_RGB);
        }
        tex.loadData(gst.getPixels(), GL_RGB);

draw()

 tex.draw(0,0, ofGetWidth(), ofGetHeight());

It compiles fine, still no texture and an error

using newer build and GLFW window
[notice ] ofGstUtils: setPipelineWithSink(): gstreamer pipeline: -v libcamerasrc ! video/x-raw,width=640,height=480,framerate=60/1 ! videoconvert  ! appsink name=ofappsink enable-last-sample=0 caps="video/x-raw, format=RGB, width=640, height=480"
[ error ] ofGstUtils: setPipelineWithSink(): couldn't create pipeline: syntax error
[2:17:24.374080858] [26592]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3866-0c55e522
[2:17:24.405790102] [26594]  INFO RPI raspberrypi.cpp:1374 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[2:17:24.412440443] [26597]  INFO Camera camera.cpp:1035 configuring streams: (0) 640x480-NV21
[2:17:24.413619213] [26594]  INFO RPI raspberrypi.cpp:761 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA

Is there a GST guru that can help me?

4 posts - 2 participants

Read full topic

OF Arm support / quick poll

SOLVED-USB camera not working on pi3

$
0
0

of 0.11.2 installed ok on 32 bit bullseye on pi3 A+

grabberExample compiles ok and launches but shows no video.
camera does work - I tested it with the application ‘cheese’

Any ideas?

output from log:

[notice ] ofGstVideoGrabber: Probing devices with udev...

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-codec-decode

[notice ] ofGstVideoGrabber: driver: bcm2835-codec, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84204000

[notice ] device /dev/video10 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-codec-encode

[notice ] ofGstVideoGrabber: driver: bcm2835-codec, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84204000

[notice ] device /dev/video11 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-codec-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-codec, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84204000

[notice ] device /dev/video12 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-codec-image_fx

[notice ] ofGstVideoGrabber: driver: bcm2835-codec, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84204000

[notice ] device /dev/video18 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-codec-encode_image

[notice ] ofGstVideoGrabber: driver: bcm2835-codec, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84204000

[notice ] device /dev/video31 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84200002

[notice ] device /dev/video13 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84200001

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84200001

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84A00000

[notice ] device /dev/video16 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84200002

[notice ] device /dev/video20 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84200001

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84200001

[notice ] ofGstVideoGrabber: Found device :, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: bcm2835-isp

[notice ] ofGstVideoGrabber: driver: bcm2835-isp, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84A00000

[notice ] device /dev/video23 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] ofGstVideoGrabber: Found device 046d:0825, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: UVC Camera (046d:0825)

[notice ] ofGstVideoGrabber: driver: uvcvideo, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84A00001

[notice ] ofGstVideoGrabber: Found device 046d:0825, getting capabilities...

[notice ] ofGstVideoGrabber: detected v4l2 device: UVC Camera (046d:0825)

[notice ] ofGstVideoGrabber: driver: uvcvideo, version: 331596

[notice ] ofGstVideoGrabber: Capabilities: 0x84A00001

[notice ] device /dev/video1 seems to not have the capture capability, (radio tuner/metadata device?)

[notice ] removing it from device list

[notice ] 0: bcm2835-isp

[notice ] 1: bcm2835-isp

[notice ] 2: bcm2835-isp

[notice ] 3: bcm2835-isp

[notice ] 4: UVC Camera (046d:0825)

[notice ] ofGstVideoGrabber: initGrabber(): selected device: bcm2835-isp

[notice ] ofGstVideoGrabber: initGrabber(): selected format: 256x256 video/x-raw RGB framerate: 30/1

[notice ] ofGstUtils: setPipelineWithSink(): gstreamer pipeline: v4l2src name=video_source device=/dev/video14 ! video/x-raw,format=RGB,width=256,height=256,framerate=30/1 ! videoscale method=2 ! appsink name=ofappsink enable-last-sample=0 caps="video/x-raw, format=RGB, width=320, height=240"

3 posts - 2 participants

Read full topic

OF 0.11.2 on Le Potato SBC - no graphics

$
0
0

Got one of these which seems to work well and runs 64 bit Raspbian ok.
https://libre.computer/products/aml-s905x-cc/

I got everything working as described below, but when running PolygonExample or 3DPrimitivesExample I get a window, but no graphics just a black image.

make shows this just as it finishes and is the only error I can see:

cp /home/user/openFrameworks/libs/*/lib/linuxarmv7l/*.so bin/ ; true
cp: cannot stat '/home/user/openFrameworks/libs/*/lib/linuxarmv7l/*.so': No such file or directory

Any ideas?

I got OF to build using the Arm7 instructions. I had to fix some libs like this though:

> ./apothecary -t linux download kiss
> ./apothecary -t linux prepare kiss
> ./apothecary -t linux build kiss
> ./apothecary -t linux download tess2
> ./apothecary -t linux prepare tess2
> ./apothecary -t linux build tess2

sudo cp apothecary/apothecary/build/kiss/lib/linux/libkiss.a openFrameworks/libs/kiss/lib/linuxarmv7l/

sudo cp apothecary/apothecary/build/tess2_patched/build/libtess2.a openFrameworks/libs/tess2/lib/linuxarmv7l/

Also. needed to edit some config files similar to what is discussed here:

1 post - 1 participant

Read full topic

How to use openglES instead of GLFW on ODROID XU4

$
0
0

I have got OF 0.11.2 built on an ODROID XU4 (Arm7) running Ununtu Mate 22.04 32 bit.
However, 3d graphics performance is very poor in OF (3DPrimitivesExample)

I tested with Chrome web browser to view some WebGl samples and they work well. Also
tried command line testing with glmark2 (poor performance)
and
GLMark-es2 (good performance)

it seems then the OpenGL driver does not support direct rendering inopengl.
However from my testing it seems using opengl-es is fine.
BUT…

I can’t get OF to work with OpeglL-es. I tried the shader program examples but they fail with ‘no shader’ errors. with GLFW window I do get a window but its just blank white.
also trying to get 3DPrimitives to run with OpenGL-es but not sure if it can be done.

Any ideas?

TIA

1 post - 1 participant

Read full topic

Viewing all 147 articles
Browse latest View live