make error

Help for Audacity 2.x.x on GNU/Linux.

ImageThis forum is for Audacity 2.x.x on GNU/Linux and Unix-like operating systems.
Please state which version of Linux you are using, the exact three-section version number of Audacity from Help > About Audacity... and whether you installed your distribution's release or daily version of Audacity or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

make error

Permanent link to this post Posted by vince66 » Wed Jul 19, 2017 10:38 pm

Hello eveybody,

I have just compiled Audacity from source without errors on my PC.

Now i'm trying to compile it on my laptop (UBNUTU 16.04). When i launch the make, I receive this error:

audacity-AudioIO.o: In function `AudioIO::MidiTime()':
/usr/local/audacity/src/AudioIO.cpp:4001: undefined reference to `PaUtil_GetTime'
collect2: error: ld returned 1 exit status
Makefile:2350: recipe for target 'audacity' failed
make[2]: *** [audacity] Error 1
make[2]: Leaving directory '/usr/local/audacity/src'
Makefile:1588: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/audacity/src'
Makefile:799: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

BUILD FAILED (exit value 2, total time: 34m 51s)

Can you help me please ?

This the installation steps i adopted to compile from source:

System Settings -> Software and Updates -> Enable Source Code -> Close -> Reload.

Open a terminal (press Ctrl + Alt + T)
sudo apt build-dep audacity

sudo apt install git
git clone https://github.com/audacity/audacity

cd audacity
./configure
make
sudo make install

audacity


Thanks in advance.

Vincenzo.
vince66
 
Posts: 15
Joined: Thu Jun 22, 2017 9:50 am
Operating System: Linux *buntu

Re: make error

Permanent link to this post Posted by steve » Wed Jul 19, 2017 11:10 pm

Code: Select all
make distclean

to clean everything including "configure"
Then run configure again, adding
Code: Select all
--with-portaudio=local

to the configure options.

For example, for a debug build that will work with ffmpeg
Code: Select all
../configure CXXFLAGS="-std=gnu++11" --disable-dynamic-loading --with-portaudio=local --enable-debug

The two dots at the start are because create a "build" directory, change to that directory and build from there. If you build directly into the source tree, just one dot.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45328
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu


Return to GNU/Linux and Unix-like



Who is online

Users browsing this forum: No registered users and 1 guest