Addons not compiling on RPi3 and 4

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

I’ve managed to solve this, although I don’t know why it worked.

Instead of writing the addons.make file myself using nano, I copied a version with the correct text in it from one of the example files in the communications folder. It worked perfectly.

I don’t know what the difference is but it’s obviously significant - if anyone could enlighten me that would be great :smiley:

Hello! Can you post your non-functioning version of addon.make? I suspect a capitalization issue (the clue is the way you write ofxOsc). Just to make sure the “editor switch” is inconsequential to your success.

This pattern of “stray characters” errors (sometimes associated to XML complaints) has little value in itself, but often is an indicator of a missing addon, due to how OF projects are assembled. A misspelled addon name (which, on a case-sensitive file system, includes wrong capitalization) will provoke the equivalent behavior of a missing addon.

2 Likes

Hi Burton,

Many thanks for your reply. You’ve solved the problem :smiley:

As you guessed, I was typing ofxOSC rather than ofxOsc so it was a case sensitivity issue. Which is great as it’s an easy fix but a bit frustrating that I didn’t spot it! I was bamboozled by all that output :frowning:

Hopefully someone else will save themselves a few hours frustration by reading this chain though!

1 Like