Audacity does not use the expat library in lib-src in the Audacity source code tree, but can use the wxwidgets expat library:
http://audacity.238276.n2.nabble.com/Is ... l#a7560301 .
If you look in the source code tree for wxGTK, the "expat" folder should be there in /src. This may require you to configure --with-expat=local and to have built your own copy of wxGTK, or it may also work with default ./configure using system wxGTX if there isn't a system expat. You can experiment if you are curious.
However the default on Linux is to use the system expat library, I agree.
pirithous wrote:Here is the output when trying to compile Audacity 2.0.5:
Code: Select all
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
[...]
checking for XML_ParserCreate in -lexpat... no
checking expat.h usability... no
checking expat.h presence... yes
configure: WARNING: expat.h: present but cannot be compiled
configure: WARNING: expat.h: check for missing prerequisite headers?
configure: WARNING: expat.h: see the Autoconf documentation
configure: WARNING: expat.h: section "Present But Cannot Be Compiled"
configure: WARNING: expat.h: proceeding with the compiler's result
checking for expat.h... no
configure: Expat libraries are NOT available as system libraries
checking for ./lib-src/expat/xmlparse/xmlparse.h... no
configure: Expat libraries are NOT available in the local tree
[...]
configure: Figuring out what libraries to enable
configure: disabling LIBVORBIS
configure: disabling LIBMAD
configure: Using SYSTEM libraries for LIBSNDFILE
configure: disabling LIBFLAC
configure: disabling LIBID3TAG
configure: Using LOCAL libraries for LIBSOXR
configure: Using LOCAL libraries for LIBRESAMPLE
configure: disabling LIBSAMPLERATE
configure: Using LOCAL libraries for LIBSBSMS
configure: disabling LIBSOUNDTOUCH
configure: Using LOCAL libraries for LIBNYQUIST
configure: Using LOCAL libraries for LIBVAMP
configure: disabling LIBEXPAT
configure: disabling LIBTWOLAME
configure: Using LOCAL libraries for FFMPEG
configure: Using LOCAL libraries for PORTSMF
configure: Using LOCAL libraries for PORTAUDIO
configure: Using LOCAL libraries for LAME
configure: error: Audacity requires expat to be enabled[...]
Use default ./configure. It looks like you are using some configure script of your own.
Default ./configure will not disable LIBEXPAT.
Have you installed devel packages for ALL the Audacity dependencies? Clearly expat.h won't build.
Alternatively build your own wxGTK (make sure you build expat) then try
See
http://wiki.audacityteam.org/wiki/Developing_On_Linux .
pirithous wrote:Output from version downloaded from the SVN repository:
Code: Select all
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
[...]
checking for EXPAT... yes
configure: Expat libraries are available as system libraries
checking for ./lib-src/expat/lib/expat.h... yes
configure: Expat libraries are available in the local tree
So you don't have a problem with expat here.
pirithous wrote:
Code: Select all
[...]
configure: Figuring out what libraries to enable
configure: Using SYSTEM libraries for EXPAT
configure: Using LOCAL libraries for FFMPEG
configure: Using LOCAL libraries for LAME
configure: Using LOCAL libraries for LIBFLAC
configure: Using LOCAL libraries for LIBID3TAG
configure: Using LOCAL libraries for LIBMAD
configure: Using LOCAL libraries for LIBNYQUIST
configure: Using LOCAL libraries for LIBRESAMPLE
configure: Using LOCAL libraries for LIBSAMPLERATE
configure: Using LOCAL libraries for LIBSBSMS
configure: Using SYSTEM libraries for LIBSNDFILE
configure: Using LOCAL libraries for LIBSOUNDTOUCH
configure: Using LOCAL libraries for LIBSOXR
configure: Using LOCAL libraries for LIBTWOLAME
configure: Using LOCAL libraries for LIBVAMP
configure: Using LOCAL libraries for LIBVORBIS
configure: Using LOCAL libraries for LV2
configure: Using LOCAL libraries for PORTAUDIO
configure: Using LOCAL libraries for PORTSMF
configure: Using LOCAL libraries for WIDGETEXTRA
checking for library containing dlopen... no
configure: error: dlopen not found, required by Audacity
So you can see the error to fix there.
Try:
Code: Select all
sudo apt-get install autoreconf
autoreconf -i
or after installing autoreconf, try:
or
Gale