hi

didn't really find a similar issue here, but correct me if i'm wrong.

i'm trying to use the [loop_] function, and made three test projects called loop_A, loop_B and loop_C, respectively. very lightweight Pd patches.

set to run on boot, loop_A starts up just fine. pressing the button causes expected behaviour (in a way), in that it shuts down the running program and tries to move to loop_B.

i then get the following:

Apr 19 14:38:35 bela stdbuf[95]: make: Leaving directory '/root/Bela'
Apr 19 14:38:35 bela stdbuf[95]: Running /root/Bela/projects/loop_B
Apr 19 14:38:35 bela stdbuf[95]: make: Entering directory '/root/Bela'
Apr 19 14:38:36 bela stdbuf[95]: Running /root/Bela/projects/loop_B/loop_B
Apr 19 14:38:36 bela stdbuf[95]: /bin/sh: 1: /root/Bela/projects/loop_B/loop_B: not found
Apr 19 14:38:36 bela stdbuf[95]: Makefile:612: recipe for target 'runonly' failed
Apr 19 14:38:36 bela stdbuf[95]: make: *** [runonly] Error 127
Apr 19 14:38:36 bela stdbuf[95]: make: Leaving directory '/root/Bela'
Apr 19 14:38:36 bela stdbuf[95]: Running /root/Bela/projects/loop_C
Apr 19 14:38:36 bela stdbuf[95]: make: Entering directory '/root/Bela'
Apr 19 14:38:36 bela stdbuf[95]: Running /root/Bela/projects/loop_C/loop_C
Apr 19 14:38:36 bela stdbuf[95]: /bin/sh: 1: /root/Bela/projects/loop_C/loop_C: not found
Apr 19 14:38:36 bela stdbuf[95]: Makefile:612: recipe for target 'runonly' failed
Apr 19 14:38:36 bela stdbuf[95]: make: *** [runonly] Error 127
Apr 19 14:38:36 bela stdbuf[95]: make: Leaving directory '/root/Bela'
Apr 19 14:38:36 bela stdbuf[95]: Running /root/Bela/projects/loop_A
Apr 19 14:38:36 bela stdbuf[95]: make: Entering directory '/root/Bela'
Apr 19 14:38:37 bela stdbuf[95]: Running /root/Bela/projects/loop_A/loop_A

so it fails to find the project files, it would seem?
i tried re-copying the _main.pd patches into the projects after setting loop_* to start at boot, without succes.
i tried turning the start at boot on and off (loop > none > loop) as advised elsewhere.

for context, i am (still) trying to add an OLED to pepper.
ideally, i'd run O2O in the background as a service file, and use the [loop_] function to switch between project files.

the problem i'm encountering seems to be unrelated to the background service, as it persists whether that is enabled or not.

thoughts?

just tried to start both projects loop_B and loop_C straight from the IDE.
that seems to work.

oh. now it's working.
duh.

so i need to run every project on its own after changing its name to loop_whatever or it won't run?

quickest SOLVED tag ever.
sorry!

    Remork so i need to run every project on its own after changing its name to loop_whatever or it won't run?

    Yes that's right. In order to make switching projects faster, it doesn't attempt to rebuild the project (which is slow even if there's nothing to build) but it just runs it, so you need to have built it before. As renaming the project deletes the old binary, you have to rebuild it after renaming it. Sorry about that

    that makes sense, once you get how it works 🙂