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

Syncing video on rpi over wifi or wired network

$
0
0

@bendylegs wrote:

I'm tech installing a gallery installation that requires 12 videos in sync on a budget. Initially I wanted to try and use pi zero w's and I've been experimenting with triptych and looking at omxplayer-sync.

My test setup is a pi zero w and a pi 3 communicating over wireless and most of the time the videos stay in sync but sometimes the slave is out. Most of the examples I can find online advocate using wired ethernet to minimise network jitter.

My question is am I wasting time trying to get videos to sync over wifi and is wired ethernet the only way to ensure sync?

Posts: 3

Participants: 3

Read full topic


Strange ofVboMesh behavior on Raspberry Pi

$
0
0

@davidemania wrote:

In the process of porting my code to the Raspberry Pi I am having trouble with how the mesh object behaves. So far it runs smoothly on mac, windows and Ubuntu.

I stripped down everything to a MWE, reported below:

class ofApp : public ofBaseApp{
    public:
        void setup();
        void update();
        void draw();

        void keyPressed(int key);
        void keyReleased(int key);
        void mouseMoved(int x, int y);
        void mouseDragged(int x, int y, int button);
        void mousePressed(int x, int y, int button);
        void mouseReleased(int x, int y, int button);
        void mouseEntered(int x, int y);
        void mouseExited(int x, int y);
        void windowResized(int w, int h);
        void dragEvent(ofDragInfo dragInfo);
        void gotMessage(ofMessage msg);

        ofVboMesh mesh;
        ofImage monoscope;
};

void ofApp::setup()
{
    monoscope.load("monoscope.jpg");

    int w = ofGetWidth();
    int h = ofGetHeight();

    mesh.clear();
    mesh.setMode(OF_PRIMITIVE_TRIANGLES);

    mesh.addVertex(ofPoint(10, 10, 0));
    mesh.addVertex(ofPoint(w-10, 10, 0));
    mesh.addVertex(ofPoint(w-10, h-10, 0));
    mesh.addVertex(ofPoint(10, h-10, 0));

    w = monoscope.getWidth();
    h = monoscope.getHeight();

    mesh.addTexCoord(ofVec2f(0, 0));
    mesh.addTexCoord(ofVec2f(w-1, 0));
    mesh.addTexCoord(ofVec2f(w-1, h-1));
    mesh.addTexCoord(ofVec2f(0, h-1));

    mesh.addIndex(0);
    mesh.addIndex(1);
    mesh.addIndex(3);

    mesh.addIndex(1);
    mesh.addIndex(2);
    mesh.addIndex(3);
}

void ofApp::draw()
{
    ofBackground(0, 0 , 0);

    ofSetColor(255);
    ofTexture& tex = monoscope.getTexture();
    tex.bind();
    mesh.draw();
    tex.unbind();

    ofSetColor(255, 0, 0);
    mesh.drawWireframe();
}

monoscope is a simple jpeg picture in data folder. Well, on mac the output is (as expected) this:

Lines are a little thin but the mesh is drawn correctly, and so the binded texture. On the RasPi (sorry I had to take a picture because of apps do not appear in screenshots) the mesh is missing the vertical lines and the binded texture is not there.

I really could use some help here, thank you!
Davide

Posts: 4

Participants: 2

Read full topic

OfxCcv on Rasberry Pi zero

$
0
0

@Khang_vo wrote:

Can i compile ofxCcv on raspberry pi zero?
Because i've tried to compile but it showed a lot of errors :frowning:
Please help me.

Posts: 1

Participants: 1

Read full topic

ofSoundPlayer not working setVolume (Pi3 with a hifiberry dac+)[solved]

$
0
0

@mar.canet wrote:

hi,

I am on Raspberry Pi3 with a hifiberry dac+ using lastest version 0.9.8 Openframeworks.
In my app using ofSoundPlayer a wav file is playing, but I cannot setVolume. It is not responding to any value (0-1) always is playing at full volume even If i set to 0.

Only see is the following warning:
AL lib: (WW) alc_initConfig: Failed to initialize backend "pulse"

I did try what was suggest at this post: https://forum.openframeworks.cc/t/error-running-soundplayerexample-on-the-pi/13197 but it did not help.

Posts: 2

Participants: 1

Read full topic

Compiling OF in raspbian Stretch

ofExit system halt

$
0
0

@pandereto wrote:

Hello

Is posible to detect in a raspberry when its going to halt, in order to call a function to stop a watchdog? When the system halt its ofExit executed?

Thanks

Posts: 3

Participants: 2

Read full topic

Help in understanding SPI interface on ofxGPIO

$
0
0

@ayruos wrote:

Hello! I'm planning a project using the Raspberry Pi and the MCP3008 ADC and I needed some help in understanding the example code available on the SPI interface of ofxGPIO.

void ofApp::update(){
         data[0] = 1;
         data[1] = 0b10000000 |( ((a2dChannel & 7) << 4));
         data[2] = 0;
         a2d.readWrite(data);//sizeof(data) );
         a2dVal = 0;
         a2dVal = (data[1]<< 8) & 0b1100000000;
         a2dVal |=  (data[2] & 0xff);
         cout << "The Result is: " << a2dVal << endl;
         usleep(5000);
}

I don't exactly understand what's happening here.

Also, if I plan to use all the inputs (8) on the chip, how do I do that?

Posts: 2

Participants: 1

Read full topic

ofSoundPlayer play stereo sounds output as mono for speaker

$
0
0

@mar.canet wrote:

I am looking a way to play stereo sounds with ofSoundPlayer and output as mono since i am connecting to single speaker (means mono output).

In OF ARM ofSoundPlayer i understand that use openAL library. There is any way to define the audio output as mono in order that mix both channels?

In FMOD there is SPEAKERMODE that i think is not implemented in OF but i could be add it.
https://www.fmod.org/docs/content/generated/FMOD_SPEAKERMODE.html But in openAl didn't find anything similar.

Posts: 1

Participants: 1

Read full topic


ofxRPiezos - piezos to OSC messages, running on raspberry pi

$
0
0

@npisanti wrote:

Hi everyone, i've made a oF based device that turns piezo sensor data to OSC messages, running on the raspberry Pi.
The is a system composed by a shield to mount on the rPi, a server application running on the rPi to elaborate signals and a client side calibration utility.

perfoboard prototype:

calibration utility:

the code is on github:

Posts: 1

Participants: 1

Read full topic

rPi: install dependency error [recompiling poco]

$
0
0

@ayruos wrote:

Trying to set up oF on a new rPi, when running install_dependencies I got a message that I have gcc 5 or later and Poco needs to be recompiled. That step never finishes and ends with

ranlib /home/pi/Development/openFrameworks/scripts/apothecary/build/poco/lib/Linux/armv7l/libPocoData.a
make[1]: Leaving directory '/home/pi/Development/openFrameworks/scripts/apothecary/build/poco/Data'

 ^ Received error ^

Help?

Posts: 5

Participants: 2

Read full topic

rPi: ofxGPIO not compiling

$
0
0

@ayruos wrote:

This is what I'm getting at the end when I'm trying to run the examples:

/home/pi/Development/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:358: recipe for target '/home/pi/Development/openFrameworks/addons/obj/linuxarmv6l/Release/ofxGPIO/src/gpio.o' failed
make[1]: *** [/home/pi/Development/openFrameworks/addons/obj/linuxarmv6l/Release/ofxGPIO/src/gpio.o] Error 1
make[1]: Leaving directory '/home/pi/Development/openFrameworks/addons/ofxGPIO/example-simple-button'
/home/pi/Development/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2

Posts: 3

Participants: 1

Read full topic

Master audio output fx raspberry pi

$
0
0

@fresla wrote:

Hi, I am lloking for a way to have an audio compressor to control volume on the output of my raspberry pi 3 (running jessie) without hardware. I came accross these plugins

https://packages.ubuntu.com/search?keywords=swh-plugins

But as far as I can tell they are not compiled for arm. I am making roving audio generating stuff for the PI and want to have a more even volume, it is generative and I like the sound but the fluctuations are too much, and turning everything up distorts.

It would be great if anyone has any tips

Cheers

Posts: 2

Participants: 1

Read full topic

Cant play audio files on Raspberry pi- fast help in the middle of a project [solved- ish]

$
0
0

@fresla wrote:

There seems to be an issue with the sound player on raspberry pi. I am using the latest nightly and Jessie. I ran all the apt update/upgrade commands as well.

cat /proc/version
Linux version 4.9.28-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #998 SMP Mon May 15 16:55:39 BST 2017

When I try to load any sound file (even just trying to run the soundPlayer Example I get this error:

AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
[ error ] ofOpenALSoundPlayer: sfReadFile(): couldn't read ""data/sounds/1085.mp3""
Floating point exception
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:190: recipe for target 'run' failed
make: *** [run] Error 136

It would be great if anyone can shed some light on this, I am a bit stuck without audio playback. I cannot use video as I need to run 6 files at once.

I have tried wav and mp3, and no change.

Cheers

Posts: 3

Participants: 2

Read full topic

ofVideoplayer fairly unusable on RPI3

$
0
0

@steeley wrote:

playing a few simple, small size , very short h264 movie(.mov) clips (no sound) on RPI 3, OF 0.98 (latest jessie).

Get lots of these errors:
[warning] ofGstUtils: setPosition(): unable to seek
and sometimes:
[ error ] ofGstUtils: gstHandleMessage(): embedded video playback halted for plugin, module omxh264dec-omxh264dec0 reported: No valid frames decoded before end of stream

Tried the video player example (fingers movie) which generally freezes after a few plays or if you touch the mouse.
stripped this app down to a real simple load and play when a key is pressed - slightly better but still not usable.
issues:

Using setFrame to set the player to the first frame seems to set it to -1. player does not appear to update.
or seems to go to the wrong frame. if you assign .play() to a key and press the key so it gets 2 play messages close together, the video and app seems. to freeze.

Tried different codecs - made no difference.
tried the info here:

this just makes it worse.
Of course it all works perfectly on OSX, but it has to run on the RPI....

Anyone got simple video playback working reliably on an RPI3? I really need to make this work.

I looked at ofxOMXplayer but that freezes the machine solid when I try to compile LOL...
and I don't think it can do frame by fame locating.

TIA.

Posts: 8

Participants: 2

Read full topic

Dispman_display ofAppEGLWindow

$
0
0

@pandereto wrote:

Hi

Its possible to get the dispman_display object from ofAppEGLWindow inside ofApp

its protectect on ofAppEGLWindow.h and want to take snapshots of the current frame buffer.

DISPMANX_DISPLAY_HANDLE_T dispman_display;

Thanks!!

Posts: 1

Participants: 1

Read full topic


Porting to aarch64

$
0
0

@Jon_Watte wrote:

I'd like to try OF on the NVIDIA Jetson TX2. There is an old fork on Github for someone that ported it to the TK1, but that's a much older version which is not compatible.
The TX2 uses Ubuntu 16.04, but it is using aarch64 architecture. Currently, only armv6l and armv7l is supported in the build.
I edited a bunch of shell scripts and make files to create variants for aarch64, based on grepping for armv7l and editing as appropriate. However, I cannot make the projectGenerator work.

I've checked out the "stable" branch from current github.

Interestingly, when I try to re-compile for x86_64, I also get a link error:

/usr/bin/ld: /home/jwatte/pilot/openFrameworks/libs/kiss/lib/linux64/libkiss.a(kiss_fftr.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/jwatte/pilot/openFrameworks/libs/tess2/lib/linux64/libtess2.a(tess.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/jwatte/pilot/openFrameworks/libs/tess2/lib/linux64/libtess2.a(mesh.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/jwatte/pilot/openFrameworks/libs/tess2/lib/linux64/libtess2.a(sweep.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/jwatte/pilot/openFrameworks/libs/tess2/lib/linux64/libtess2.a(dict.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
/home/jwatte/pilot/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:382: recipe for target 'bin/projectGenerator' failed

(This is on Ubuntu 17.04 on x86_64, using GCC 5.4.0)

Please don't tell me to download a pre-compiled projectGenerator. There isn't one for aarch64, and the only reason I tried compiling it on x86_64 was to have something to compare against.
So, if I want to make x86_64 actually compile, as a pre-requisite to understanding what I need to do for aarch64, what is the problem here? I tried with adding either of -fPIC, or -static, to the build flags in the projectGenerator commandline Makefile, but neither works. Presumably, I need to make kiss and tess2 compile with -fPIC somehow?

Posts: 3

Participants: 2

Read full topic

ofxKinect (included in of v0.9.8) on Raspberry Pi 3b (Jessie, arm6)

$
0
0

@yeseul wrote:

I'm trying to run ofxKinect on Raspberry Pi 3b with Jessie. I've tried so many different ways that I found on of forum, OF github issues, and many places on the web, but anything has worked for me yet.

I did everything below:
- installed libusb and freenect
- run sudo cp libs/libfreenect/platform/linux/udev/51-kinect.rules /etc/udev/rules.d
- installed dependencies such as git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev... (The list of dependencies from this post)
- I disabled #define BUILD_AUDIO following a suggestion on the forum, but it didn't help.

Freenect examples (freenect-glview, freenect-cppview, and more) are running without any problem and they show me depth image with rgb image, but when I run a kinect example, I'm not getting any data from my Kinect. The program I'm running is kinectExample which is originally a part of the OSX version of OF v0.9.8. I remade the file as a ARM6 version using Project Generator from my mac because ARM6 version of OF v0.9.8 doesn't include an ofKinect example.

ofxKinect seems to find the device once I run the app, but then gives me these errors:

[verbose] ofxKinect: 1 device found
[verbose] ofxKinect:     id: 0 serial: A00365A11245052A
send_cmd: Input control transfer failed (18)
freenect_fetch_reg_info: send_cmd read 18 bytes (expected 118)
send_cmd: Output control transfer failed (-1)
freenect_fetch_reg_const_shift: send_cmd read -1 bytes (expected 8)
freenect_camera_init(): Failed to fetch const shift for device
[ error ] ofxKinect: could not open device 0
[warning] ofxKinect: update(): device -1 isn't delivering data, reconnecting tries: 1
Failed to open camera subdevice or it is not disabled.Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled.
[ error ] ofxKinect: could not open device -1

After this, the app tries to connect to the device four more times, but they all fail.

Even more weird part is that the app sometimes runs properly, like once out of 30 times. It's usually after trying 5 times to connect to my Kinect. I'm not sure what is the consequences. I feel like the app is likely to connect to the Kinect when I move the cursor a lot over the app as soon as I start the app? It might be totally my illusion. When the app is running well, I can perfectly see the depth image with 60 fps.

Is there anyone who has succeeded running ofxKinect on the same/similar environment? Any ideas what I could try? Should I use an old version of OF? If so, which version?

I'd really appreciate your help.

Posts: 7

Participants: 3

Read full topic

Segmentation fault when ofxMaxim playes sample on Raspberry pi

$
0
0

@yiannis wrote:

Hello,

I am using ofxMaxim to play a sample. The code works on Windows but on Raspberry pi 3 I get a Segmentation fault. If I use a sine oscillator to make a tone it works on both machines.

Here is the code, is very basic and it is based on the sample player example of ofxMaxim:

#include "ofApp.h"

//--------------------------------------------------------------
void ofApp::setup() {
	sampleRate = 44100;
	bufferSize = 1024;

	soundStream.listDevices();
#ifdef TARGET_RASPBERRY_PI 
	soundStream.setDeviceID(2);
#else
	soundStream.setDeviceID(1);
#endif

	soundStream.setup(this, 2, 0, sampleRate, bufferSize, 4);
	tsiks.load(ofToDataPath("tsiks.wav"));
}
//
void ofApp::audioOut(float * output, int bufferSize, int nChannels) {
	for (int n = 0; n < bufferSize; n++) {
		output[n*nChannels] = tsiks.play(1);
		output[n*nChannels + 1] = tsiks.play(1);
	}
}
//--------------------------------------------------------------
void ofApp::update() {
}
//
void ofApp::draw() {
}

and here is the error:

 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 openssl libpulse-simple alsa gtk+-3.0 libmpg123
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 720x480
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 720x480
[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-3f980000.usb-usb-0:1.3:1.0-event-mouse
[notice ] ofAppEGLWindow: setupMouse(): mouse device name = 2.4G RF SoC Desktop Receiver
[notice ] ofAppEGLWindow: setupKeyboard(): keyboard_fd= 6 devicePath=/dev/input/by-path/platform-3f980000.usb-usb-0:1.2.2:1.0-event-kbd
[notice ] ofAppEGLWindow: setupKeyboard(): keyboard device name = Logitech Logitech BT Mini-Receiver
[notice ] ofAppEGLWindow: setupPeripherals(): native event setup complete
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
[notice ] ofSoundStream::listDevices:
[0] hw:bcm2835 ALSA,0 [in:0 out:2]
[1] hw:bcm2835 ALSA,1 [in:0 out:2]
[2] hw:Sound Blaster Play! 2,0 [in:2 out:2]
[3] default [in:2 out:2]

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

RtApiAlsa: dump hardware params just after device open:

ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (1020 2972155)
PERIOD_SIZE: [45 131072]
PERIOD_BYTES: [180 524288]
PERIODS: [2 1024]
BUFFER_TIME: (2040 5944309)
BUFFER_SIZE: [90 262144]
BUFFER_BYTES: [360 1048576]
TICK_TIME: ALL

RtApiAlsa: dump hardware params after installation:

ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (23219 23220)
PERIOD_SIZE: 1024
PERIOD_BYTES: 4096
PERIODS: 4
BUFFER_TIME: (92879 92880)
BUFFER_SIZE: 4096
BUFFER_BYTES: 16384
TICK_TIME: 0

RtApiAlsa: dump software params after installation:

tstamp_mode: NONE
period_step: 1
avail_min: 1024
start_threshold: 1024
stop_threshold: -1
silence_threshold: 0
silence_size: 1073741824
boundary: 1073741824
Segmentation fault
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:176: recipe for target 'RunRelease' failed
make: *** [RunRelease] Error 139

Any ideas?

Thanks

Posts: 4

Participants: 2

Read full topic

Ubuntu Mate Raspberry Pi Setup Guide on RPI-2 board

$
0
0

@alp wrote:

Following instructions are hosted on my gist account also.
I can compile the polygon and opencv examples successfully after the issues.
Now everything works fine. Enabling overclock makes compiling process faster btw.

Ubuntu Mate Raspberry Pi Setup on RPI-2 board

1) Download ubuntu RPI image
https://ubuntu-mate.org/raspberry-pi/ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img.xz

2) Use Etcher freeware to burn image to SD Card

3) Attach SD Card to rPi, connect keyboard, mouse and display to rPi for the first run and power up RPI

4) Follow the instructions and create user (pi) and password (raspberry)

5) When desktop interface starts, open up Terminal and edit raspi-config to enable following commands;

sudo raspi-config
- Change Boot Options to the Command Line
- Change Interfacing Options to enable SSH
- Change Memory Split option to 64 M from Advanced Options
- Change GL Driver option to 3rd one to disable GL Driver from Advanced Options
- Save, exit & reboot

6) Login to "pi" user

7) Download nightly build oF arm7 version

curl -O http://ci.openframeworks.cc/versions/nightly/of_v20170714_linuxarmv7l_nightly.tar.gz

8) Make oF directory

mkdir of_v20170714_linuxarmv7l_nightly

9) Upack the content into this oF directory

tar vxfz of_v20170714_linuxarmv7l_nightly.tar.gz -C of_v20170714_linuxarmv7l_nightly --strip-components 1

10) Run dependencies scripts. I get bunch of issues in this section. If you have it also, read the the following fixes and redo the dependencies installation

cd of_v20170714_linuxarmv7l_nightly/scripts/linux/ubuntu
sudo ./install_dependencies.sh

**ISSUE 1: When installing dependencies I got error libgl1-mesa-dev-hwe-16.0.4
installing OF dependencies with -hwe-16.04 packages, confirm Y/N ?**

*ref:
https://forum.openframeworks.cc/t/e-unable-to-locate-package-libgl1-mesa-dev-hwe-16-04-and-this-package-doesnt-support-your-platform-probably-you-downloaded-the-wrong-package-ubuntu/26823*

Just type N to fix this issue 1

**ISSUE 2:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?**

ref. & fix: https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
to fix the issue run the following commands;

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo ./install_dependencies.sh

11) If everything goes fine, run codec installation scripts

sudo ./install_codecs.sh

12) Set your make flags in your .bash_profile

sudo nano ~/.bash_profile

add the following Line (MAKEFLAGS=-j2 not -j4 because of ISSUE 3 see below)

export MAKEFLAGS=-j2 PLATFORM_ARCH=armv7l PLATFORM_VARIANT=raspberry2

and Save

kntrl+o
kntrl+x

13) cd /home/pi/of_v20170714_linuxarmv7l_nightly/examples/graphics/polygonExample
make
**ISSUE 3:
I got the following error;
virtual memory exhausted: Cannot allocate memory**
*ref. & fix:
https://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/*

And recompile again if it fails again then recompile again...I can compile the example at the 2nd try

Posts: 1

Participants: 1

Read full topic

Raspberry audio play

$
0
0

@pandereto wrote:

Hello

I have an installation running where i play mp3 files on a rpi3 running jessie.

The problem im having its that sometimes the sound files "not sound" i mean no audio on the jack output, i get no errors loading or playing... just don't hear the sound.

When that happens a reboot solved the issue.

Any clues? i don't know how to debug that as i don't get any errors

Thanks

Posts: 1

Participants: 1

Read full topic

Viewing all 364 articles
Browse latest View live