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

Addons not compiling on RPi3 and 4

$
0
0

Hi folks,

I’m having trouble compiling addons, specifically but not limited to ofxOSC, on both a Raspberry Pi 4B and a 3A+. As soon as I add an addon to addons.make I get a large and incomprehensible output, two representative samples of which I’ve pasted below.

This seems extremely weird to me and I don’t quite know where to start!

I’m successfully compiling and running projects that don’t use addons, and the ofxNetwork addon seems to work. I haven’t tested them all, but several others including ofxGUI fail in the same way.

The output I’m getting below is from attempting to compile the emptyProject that comes with the ofx installation and the line ofxOSC included in addons.make. Otherwise I’ve changed nothing in the project at all. This is happening with all projects I attempt to compile, including ones that compile successfully without any addons and projects that use the addons successfully in Windows.

I’m compiling over SSH using PuTTY using the make command from the project folder.

OS: Latest version of Raspberry Pi OS lite (Bullseye), but I’m also getting the same results with Buster.

ofx Version: 0.11.2

I really hope I’m doing something stupid :slight_smile:

PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYP/./bin/locale:207:3                                                                                                      8: error: stray ‘\200’ in programu
  207 |    ▒  d   c  ▒V              d  ▒V              e  ▒V                f                                                                                                        ▒V                g  ▒V                h W                i  W                j                                                                                                        (W                k  8W                l  DW               m  PW              n                                                                                                        `W                o  ▒W
   {  pW
   ▒  ▒W
   ▒  ▒W
      ▒W                  ▒W                  X                  ▒W                                                                                                                        ▒W                  ▒W                   LX                  `X                                                                                                                        ▒W                  ▒W
X                  X                  ,X                  tX                 ▒X                                                                                                                         ▒X               T
T      |                                      ^
YPuTTYPuTTY/./bin/locale:207:39: error: stray ‘\275’ in program
  207 |    ▒  d   c  ▒V              d  ▒V              e  ▒V                f                                                                                                        ▒V                g  ▒V                h W                i  W                j                                                                                                        (W                k  8W                l  DW               m  PW              n                                                                                                        `W                o  ▒W
   {  pW
   ▒  ▒W
   ▒  ▒W
      ▒W                  ▒W                  X                  ▒W                                                                                                                        ▒W                  ▒W                   LX                  `X                                                                                                                        ▒W                  ▒W
X                  X                  ,X                  tX                 ▒X                                                                                                                         ▒X
      |                                       ^
/./bin/locale:207:40: error: stray ‘\350’ in program
  207 |    ▒  d   c  ▒V              d  ▒V              e  ▒V                f                                                                                                        ▒V                g  ▒V                h W                i  W                j                                                                                                        (W                k  8W                l  DW               m  PW              n                                                                                                        `W                o  ▒W
   {  pW
   ▒  ▒W
   ▒  ▒W
      ▒W                  ▒W                  X                  ▒W                                                                                                                        ▒W                  ▒W                   LX                  `X                                                                                                                        ▒W                  ▒W
X                  X                  ,X                  tX                 ▒X                                                                                                                         ▒X
      |                                        ^
/./bin/locale:207:41: error: stray ‘\10’ in program
  207 |    ▒  d   c  ▒V              d  ▒V              e  ▒V                f                                                                                                        ▒V                g  ▒V                h W                i  W                j                                                                                                        (W                k  8W                l  DW               m  PW              n                                                                                                        `W                o  ▒W
   {  pW
   ▒  ▒W
   ▒  ▒W


In file included from /usr/include/c++/10/iomanip:43,
                 from /home/tby/openFrameworks/libs/openFrameworks/utils/ofUtils                                                                                                      .h:7,
                 from /home/tby/openFrameworks/libs/openFrameworks/utils/ofTimer                                                                                                      .h:3,
                 from /home/tby/openFrameworks/libs/openFrameworks/events/ofEven                                                                                                      ts.h:5,
                 from /home/tby/openFrameworks/libs/openFrameworks/utils/ofURLFi                                                                                                      leLoader.h:3,
                 from /home/tby/openFrameworks/libs/openFrameworks/ofMain.h:11,
                 from /home/tby/openFrameworks/apps/myApps/waveDrawer/src/ofApp.                                                                                                      h:3,
                 from /home/tby/openFrameworks/apps/myApps/waveDrawer/src/ofApp.                                                                                                      cpp:1:
/./bin/locale:235:2608: error: stray ‘\24’ in program
/./bin/locale:235:2609: error: stray ‘\34’ in program
/./bin/locale:235:2610: error: stray ‘\1’ in program
/./bin/locale:235:2612: error: stray ‘\354’ in program
/./bin/locale:235:2613: error: stray ‘\33’ in program
/./bin/locale:235:2614: error: stray ‘\1’ in program
/./bin/locale:235:2632: error: stray ‘\1’ in program
/./bin/locale:235:2637: error: stray ‘\3’ in program
/./bin/locale:235:2640: error: stray ‘\1’ in program
/./bin/locale:235:2645: error: stray ‘\3’ in program

4 posts - 2 participants

Read full topic


Autostarting applications on RPI with PM2

$
0
0

Just a quick not that PM2 works really well for running OF applications on RPI on startup. It requires NodeJS. It offers some flexible things for timing and keepalive. It is a much easier process than Crontab and other autostart options I have had issues with.

PM2 is also very well docomented and as a bonus you can use the log function with the app name to see the output of your app via SSH, which works better than screen for me.

Hope this helps someone.

Fred

1 post - 1 participant

Read full topic

Is it possible to use openframeworks on aarch64 architecture with GLESv2 support?

$
0
0

Hello everybody! I am trying to run openframeworks on Khadas VIM1S. Which runs on Ubuntu 22, 2.0GHz Quad core ARM Cortex-A35 and ARM Mali-G31 MP2 GPU.

I downloaded the nightly build for the aarch64 architecture. When trying to compile applications or a framework, an error occurs:

===
Package opengl was not found in the pkg-config search path.
Perhaps you should add the directory containing opengl.pc' to the PKG_CONFIG_PATH environment variable Package 'opengl', required by 'glu', not found Package opengl was not found in the pkg-config search path. Perhaps you should add the directory containing opengl.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘opengl’, required by ‘glu’, not found
makefileCommon/config.shared.mk:311: *** couldn’t find glu pkg-config package or it’s dependencies, did you run the latest install_dependencies.sh?. Stop.
there has been a problem compiling Debug OF library
please report this problem in the forums

My board supports GLESv2. config.linuxaarch64.default.mk contains these lines:

PLATFORM_PKG_CONFIG_LIBRARIES += glesv1_cm
PLATFORM_PKG_CONFIG_LIBRARIES += glesv2
PLATFORM_PKG_CONFIG_LIBRARIES += egl

But the script is looking for opengl. Is it possible to use openframeworks on aarch64 architecture with GLESv2 support?

2 posts - 2 participants

Read full topic

Multiple webcams on Raspberry pi

$
0
0

Hello. I am trying to use two webcams in my app. I use two ofVideoGrabber, on the update method, updates both grabbers, but when draws, it flickers, shows some frames from webcam1 and some frames from webcam2.
If i use one videoGrabber, works just fine, I see that webcam.
I would like to draw both webcams. Any idea for solving this issue?
I am using Raspberry pi 4 and of 0.11.0

  void ofApp::setup(){
    camWidth = 320;  // try to grab at this size.
    camHeight = 240;

    vidGrabber.setDeviceID(2);
    vidGrabber.setDesiredFrameRate(60);
    vidGrabber.setUseTexture(true);
    vidGrabber.initGrabber(camWidth, camHeight);
    
    vidGrabber2.setDeviceID(0);
    vidGrabber2.setDesiredFrameRate(60);
    vidGrabber2.setUseTexture(true);
    vidGrabber2.initGrabber(camWidth, camHeight);

    ofSetVerticalSync(true);
}


//--------------------------------------------------------------
void ofApp::update(){
    ofBackground(100, 100, 100);    
    vidGrabber.update();
    vidGrabber2.update();
}

//--------------------------------------------------------------
void ofApp::draw(){
    ofSetHexColor(0xffffff);
    vidGrabber.draw(20, 20);
    vidGrabber2.draw(20, 40+camHeight);
}

1 post - 1 participant

Read full topic

Building fails for ofxFX on Raspberry Pi 4

$
0
0

I’m trying to use ofxFX on a raspberry pi but I’m getting errors when trying trying to build anything that includes the library.
These are the errors I’m getting:
/home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp: In member function ‘void ofxFXObject::selectShaderSource()’: /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:242:33: error: qualified-id in declaration before ‘(’ token 242 | bool ofxFXObject::needsFboResize(){ | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:253:30: error: qualified-id in declaration before ‘(’ token 253 | bool ofxFXObject::compileCode(){ | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:307:29: error: qualified-id in declaration before ‘(’ token 307 | void ofxFXObject::setTexture(ofBaseDraws& tex, int _texNum){ | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:327:24: error: qualified-id in declaration before ‘(’ token 327 | void ofxFXObject::begin(int _texNum ) { | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:338:22: error: qualified-id in declaration before ‘(’ token 338 | void ofxFXObject::end(int _texNum) { | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:351:25: error: qualified-id in declaration before ‘(’ token 351 | void ofxFXObject::update(){ | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:417:23: error: qualified-id in declaration before ‘(’ token 417 | void ofxFXObject::draw(int _x, int _y, float _width, float _height){ | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:432:26: error: qualified-id in declaration before ‘(’ token 432 | void ofxFXObject::initFbo(ofFbo & _fbo, int _width, int _height, int _internalformat) { | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:442:30: error: qualified-id in declaration before ‘(’ token 442 | void ofxFXObject::renderFrame(float _width, float _height){ | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:459:1: error: expected ‘}’ at end of input 459 | } | ^ /home/sn/openFrameworks/addons/ofxFX/src/ofxFXObject.cpp:202:39: note: to match this ‘{’ 202 | void ofxFXObject::selectShaderSource(){ | ^ make[1]: *** [/home/sn/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:360: /home/sn/openFrameworks/addons/obj/linuxarmv6l/Release/ofxFX/src/ofxFXObject.o] Error 1 make[1]: Leaving directory '/home/sn/openFrameworks/addons/ofxFX/example-grayscott' make: *** [/home/sn/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

I have tried the solution from github issues #44 with ofAppGlutWindow but this doesn’t seem to help. I have also tried to use an older version of openframeworks but this doesn’t help
can someone help?
Thanks <3

4 posts - 3 participants

Read full topic

OF on Khadas vim4

$
0
0

Hello,
I got a Khadas vim4 and I struggle to install OF.

I downloaded of_v0.11.2_linuxarmv7l_release, run the 2 dependencies scripts under ubuntu without an issue, but when I run compileOF.sh I get the error:

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

I read online about about indentation issues between tabs and spaces… but I am not great with makefiles and thought to report it here. I also tried with of_v0.11.2_linuxarmv6l_release as well as the latest of_v20230805_linux6l_release with similar error.

I need to admit that I don’t fully understand the difference between arm7 and the linuxaarch64 build, so I also tried of_v20230805_linuxaarch64_release (even though I believe the vim4 is arm7), which didn’t give me the same error, but complained about missing opengl packages.

Package opengl was not found in the pkg-config search path.
Perhaps you should add the directory containing opengl.pc' to the PKG_CONFIG_PATH environment variable Package 'opengl', required by 'glu', not found Package opengl was not found in the pkg-config search path. Perhaps you should add the directory containing opengl.pc’
to the PKG_CONFIG_PATH environment variable
Package ‘opengl’, required by ‘glu’, not found
makefileCommon/config.shared.mk:311: *** couldn’t find glu pkg-config package or it’s dependencies, did you run the latest install_dependencies.sh?. Stop.
there has been a problem compiling Debug OF library
please report this problem in the forums

I am not sure if the second build comes closer and I just need to install openGl, but any further pointers would be highly appreciated.

Thank you
Georgios

6 posts - 2 participants

Read full topic

ofxVLCVideoPlayer compile error in Raspberry piB+

$
0
0

In file included from /home/pi/ofApp/addons/ofxVLCVideoPlayer/src/ofxVLCVideoPlayer.h:4:0,
from /home/pi/ofApp/src/ofApp.h:5,
from /home/pi/ofApp/src/ofApp.cpp:1:
/home/pi/ofApp/addons/ofxVLCVideoPlayer/src/VLCMovie.h:45:5: error: ‘Poco’ does not name a type
Poco::Mutex backImageMutex;
^~~~
/home/pi/ofApp/addons/ofxVLCVideoPlayer/src/VLCMovie.h:46:5: error: ‘Poco’ does not name a type
Poco::Mutex imageFlipMutex;
^~~~
/home/pi/ofApp/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:215: recipe for target ‘obj/linuxarmv6l/Release/src/ofApp.o’ failed
make[1]: *** [obj/linuxarmv6l/Release/src/ofApp.o] Error 1
make[1]: Leaving directory ‘/home/pi/ofApp’
/home/pi/ofApp/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target ‘Release’ failed

Hi,
anyone can help me to solved this problem

1 post - 1 participant

Read full topic

Viewing all 147 articles
Browse latest View live