Build Audacity with mod-script-pipe on Raspberry Pi [SOLVED]

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
adaptiman
Posts: 30
Joined: Fri Mar 16, 2018 8:28 pm
Operating System: Linux Debian

Re: mod-script-pipe.so won't load

Post by adaptiman » Wed Mar 21, 2018 11:58 pm

/tmp is writable by the non-privileged user.

While there, I saw that there were two files in there owned by root:

audacity_script_pipe.from.0
audacity_script_pipe.to.0

I changed the ownership of these files to the non-privileged user, but it didn't work.

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Thu Mar 22, 2018 12:16 am

adaptiman wrote:While there, I saw that there were two files in there owned by root:

audacity_script_pipe.from.0
audacity_script_pipe.to.0
They would be created when you ran Audacity (with mod-script-pipe) as root. (user id for root is 0)
These are not normal files, they are named fifo pipes.

When you launched Audacity as root, did you not see an error / warning:

Code: Select all

Audacity could not find a place to store temporary files.
Please enter an appropriate directory in the preferences dialog.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

adaptiman
Posts: 30
Joined: Fri Mar 16, 2018 8:28 pm
Operating System: Linux Debian

Re: mod-script-pipe.so won't load

Post by adaptiman » Thu Mar 22, 2018 4:08 am

steve wrote:When you launched Audacity as root, did you not see an error / warning:

Code: Select all

Audacity could not find a place to store temporary files.
Please enter an appropriate directory in the preferences dialog.
No, I didn't see this warning even though the files were not owned by root. After launching as roo, when I checked the owner in /tmp, it was changed BACK to root (I assume by the program).

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Thu Mar 22, 2018 8:25 am

Did you "make" mod-script-pipe as root?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

adaptiman
Posts: 30
Joined: Fri Mar 16, 2018 8:28 pm
Operating System: Linux Debian

Re: mod-script-pipe.so won't load

Post by adaptiman » Thu Mar 22, 2018 1:58 pm

steve wrote:Did you "make" mod-script-pipe as root?
No, but I did sudo make install to install.

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Thu Mar 22, 2018 2:36 pm

adaptiman wrote:No, but I did sudo make install to install.
Clear as mud :D

Is this what you did:
From the Audacity source root

Code: Select all

./configure <options>
make
from /lib-src/mod-script-pipe

Code: Select all

make
all of the above on the same day.

Then to install Audacity, from Audacity source root:

Code: Select all

sudo make install
then copy (as normal user), mod-script-pipe.so to:

Code: Select all

~/.audacity-files/modules/
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

adaptiman
Posts: 30
Joined: Fri Mar 16, 2018 8:28 pm
Operating System: Linux Debian

Re: mod-script-pipe.so won't load

Post by adaptiman » Thu Mar 22, 2018 4:06 pm

From /home/pi, I have cloned the latest repos of wxWidgets and Audacity. Then:

Code: Select all

cp -r wxWidgets wxWidgets-dev
cd wxWidgets-dev
git reset --hard 721d62a //this is the tag for the latest wxWidgets 3.0.4 release
./configure --with-gtk
./make -j3 //the -j3 tag uses three cores (don't want to get too hot ;-))
cd ..
cp -r audacity audacity-dev
cd audacity-dev
git reset --hard 2fef7f3 //this is the tag for the latest Audacity 2.1.3 release
./configure <options> //including specifying WX_CONFIG=/home/pi/wxwidgets-dev/wx-config
cd ./lib-src/mod-script-pipe/
make -j3
cd ..
make -j3
sudo make install
cd ..
mkdir .audacity-files
cd .audacity-files
mkdir modules
cd modules
cp ../../audacity-dev/modules/mod-script-pip.so ./
After executing Audacity as the nonprivileged user, the modules dialog can't find mod-script-pipe.

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Thu Mar 22, 2018 7:47 pm

OK, so I've tried building and installing 2fef7f3, but with wxWidgets 3.0.2 and on a laptop rather than a Pi, and mod-script-pipe works fine for me.
I'm running out of ideas, short of scrubbing the system and starting again from scratch.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Thu Mar 22, 2018 8:00 pm

Grasping at straws...

From ~/.audacity-files/
What's your output from

Code: Select all

ls -la
and then again from ~/.audacity-files/modules
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 47250
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu
Contact:

Re: mod-script-pipe.so won't load

Post by steve » Thu Mar 22, 2018 8:03 pm

and is ~/.audacity-data/audacity.cfg writable?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked