Page 1 of 2
Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Thu Sep 26, 2013 7:14 am
by Charise
I followed the instructions at
http://wiki.audacityteam.org/wiki/Compi ... _on_Ubuntu
to install the latest version of Audacity but I am getting an error message after I type
make[1]: Entering directory `/home/jch/audacity-read-only/src'
g++ -c -I../lib-src/portmixer/include -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -I/home/jch/audacity-read-only/lib-src/lib-widget-extra -I../lib-src/libsoxr/src -I../lib-src/sbsms/include -I/usr/include/soundtouch -I../lib-src/libnyquist -I../lib-src/portsmf -I../lib-src/portaudio-v19/include -fno-strict-aliasing -I./include -I. -DLIBDIR="/usr/local//lib" -D__STDC_CONSTANT_MACROS -Wall -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 export/ExportPCM.cpp -o export/ExportPCM.o
export/ExportPCM.cpp: In member function ‘bool ExportPCM::AddStrings(AudacityProject*, SNDFILE*, Tags*, int)’:
export/ExportPCM.cpp:740: error: ‘SF_STR_GENRE’ was not declared in this scope
export/ExportPCM.cpp:764: error: ‘SF_STR_TRACKNUMBER’ was not declared in this scope
make[1]: *** [export/ExportPCM.o] Error 1
make[1]: Leaving directory `/home/jch/audacity-read-only/src'
make: *** [audacity] Error 2
I thought perhaps I didn't have the right version of libwxgtk or python-wxgtk, and indeed the latter was not installed, but even after I installed python-wxgtk2.8 I received the same error. I'm relatively new to compiling, so could someone advise me what to do? I had been using an earlier version of Audacity, which I uninstalled before attempting to install this version.
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Thu Sep 26, 2013 10:48 pm
by Gale Andrews
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Thu Sep 26, 2013 11:16 pm
by Charise
Hi, Gale,
These are the steps I followed:
sudo apt-get install subversion
svn checkout
http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only
sudo apt-get build-dep audacity
#sudo apt-get install cmake [cmake was already installed, so I skipped this step]
cd audacity-read-only
./configure
sudo make install
I also installed python-wxgtk2.8. Everything seemed to work until the last command, sudo make install. Is there another process I should follow on this page? For example, do I need to install and run autogen?
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Fri Sep 27, 2013 12:47 am
by Gale Andrews
Is it 64-bit Ubuntu?
Try:
Code: Select all
sudo make clean
svn up
./configure
make dep
sudo make install
Any reason not to update to a modern version of Ubuntu?
Gale
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Fri Sep 27, 2013 3:12 am
by Charise
I tried your commands and after "sudo make install" it returned what appears to be the same error as before:
Code: Select all
export/ExportFLAC.cpp -o export/ExportFLAC.o
g++ -c -I../lib-src/portmixer/include -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -I/home/jch/audacity-read-only/lib-src/lib-widget-extra -I../lib-src/libsoxr/src -I../lib-src/sbsms/include -I/usr/include/soundtouch -I../lib-src/libnyquist -I../lib-src/portsmf -I../lib-src/portaudio-v19/include -fno-strict-aliasing -I./include -I. -DLIBDIR="/usr/local//lib" -D__STDC_CONSTANT_MACROS -Wall -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 export/ExportPCM.cpp -o export/ExportPCM.o
export/ExportPCM.cpp: In member function ‘bool ExportPCM::AddStrings(AudacityProject*, SNDFILE*, Tags*, int)’:
export/ExportPCM.cpp:740: error: ‘SF_STR_GENRE’ was not declared in this scope
export/ExportPCM.cpp:764: error: ‘SF_STR_TRACKNUMBER’ was not declared in this scope
make[1]: *** [export/ExportPCM.o] Error 1
make[1]: Leaving directory `/home/jch/audacity-read-only/src'
make: *** [audacity] Error 2
I'm using 32-bit Ubuntu. I've been reluctant to upgrade to Ubuntu 12.04 because of the new GUI and the fact that I have a dual boot with Windows XP using an early version of Grub, so my understanding is I'd have to do some manual installation to keep the dual boot working the way it's been set up.
In the meantime, Audacity 2.0.3 appears to install without a hitch; perhaps this is the best solution since I'm using an old version of Ubuntu? The reason I wanted to upgrade from Audacity 1.3.12-2 was to make use of keyboard shortcuts for the Effects menu, and I'm hoping 2.0.3 will offer that. If you have other suggestions for installing 2.0.4, though, I'm happy to try them.
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Fri Sep 27, 2013 3:18 pm
by Gale Andrews
I would guess the compilation problem is due to the additional support for WAV metadata that came in with 2.0.4 - perhaps another include is wanted. I'll see if I can find anything out.
2.0.3 includes the effects shortcuts though import and export of those shortcuts is broken in 2.0.3 (but fixed in 2.0.4).
Gale
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Fri Sep 27, 2013 7:24 pm
by steve
One other thing you could try - clean out remnants of any previous attempt (or actual) Audacity installation and start again:
If you have ever had the repository version of Audacity installed, use Synaptic to reinstall it, then use Synaptic to "completely remove" it.
Then, delete the audacity-read-only directory.
Then open a new terminal window and run the following commands:
Code: Select all
svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only
sudo apt-get build-dep audacity
Check the terminal output at this point - there should be nothing to install because all dependencies should be already present - check that is true, and install any missing dependencies if necessary.
Code: Select all
cd audacity-read-only
./configure |tee configuration.log
You will probably see a lot of "warnings" but there should be no "errors". The "|tee configuration.log" creates a copy of the terminal output so that you can open it in a text editor and easily search for the word "error".
Again the "tee" command allows you to easily search for the first occurrence of the word "error". You may find references such as "ErrorDialog.o" within this file, but there should be no error messages.
Assuming that there are no errors (fingers crossed):
Audacity should launch. If it does, then you are good to install:
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Tue Oct 01, 2013 4:24 am
by Charise
Steve,
Thanks for your suggestions. I have attempted your instructions, including re-installing the repository version of Audacity and then removing it completely (and I also uninstalled Audacity 2.0.3 from the command line). Everything worked fine until
when I encountered an error, which is the same error I've had before:
Code: Select all
export/ExportFLAC.cpp -o export/ExportFLAC.o
g++ -c -I../lib-src/portmixer/include -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -I/home/jch/audacity-read-only/lib-src/lib-widget-extra -I../lib-src/libsoxr/src -I../lib-src/sbsms/include -I/usr/include/soundtouch -I../lib-src/libnyquist -I../lib-src/portsmf -I../lib-src/portaudio-v19/include -fno-strict-aliasing -I./include -I. -DLIBDIR="/usr/local//lib" -D__STDC_CONSTANT_MACROS -Wall -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 export/ExportPCM.cpp -o export/ExportPCM.o
export/ExportPCM.cpp: In member function ‘bool ExportPCM::AddStrings(AudacityProject*, SNDFILE*, Tags*, int)’:
export/ExportPCM.cpp:740: error: ‘SF_STR_GENRE’ was not declared in this scope
export/ExportPCM.cpp:764: error: ‘SF_STR_TRACKNUMBER’ was not declared in this scope
make[1]: *** [export/ExportPCM.o] Error 1
make[1]: Leaving directory `/home/jch/audacity-read-only/src'
make: *** [audacity] Error 2
The build log itself showed no error that I could find, but I'll include it in this post for reference.
I was stopped at this point because when I typed
it said "no such file or directory."
I'm satisfied to use Audacity 2.0.3 as long as I have Ubuntu 10.04; the next time I upgrade Audacity it looks like I'll have to upgrade Ubuntu as well.
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Tue Oct 01, 2013 5:20 am
by steve
What version of libsndfile do you have?
Re: Error installing Audacity 2.0.4 in Ubuntu 10.04
Posted: Tue Oct 01, 2013 5:55 am
by steve
steve wrote:What version of libsndfile do you have?
I think that's the problem.
‘SF_STR_GENRE’ and ‘SF_STR_TRACKNUMBER’ are defined in libsndfile. They were introduced 1n 2010, which looks like it was an update to libsndfile1 version 1.0.23. If you are still on Lucid then you've probably got libsndfile1 version 1.0.21-2 and there are no later versions in the Ubuntu repositories until Ubuntu Precise.
Building libsndfile is not normally required because it is included in virtually all Linux distributions. The source code is included with Audacity but I note that in the README it says:
"Wherever possible, you should use the packages supplied by your Linux distribution."
What I don't know is whether building and installing the current 1.0.25 version of libsndfile will break anything else on your machine - there's a lot of programs that are dependent on libsndfile. Let me know if you want to take the chance.