Building 1.3.7 beta from CVS - wxWidgets version mismatch?

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
peterkirn
Posts: 1
Joined: Fri Jan 30, 2009 6:07 pm
Operating System: Please select

Building 1.3.7 beta from CVS - wxWidgets version mismatch?

Post by peterkirn » Fri Jan 30, 2009 6:13 pm

Wanted to give a go building the 1.3.7 beta build. I already have 1.3.5 beta running successfully on ubuntu studio 8.10 (nice one, by the way, getting the beta in there)! I'm getting stuck on FileDialog errors when I get to make, which I think folks have seen before.

Basic process:
Installed the wx dev libraries via apt-get, for version 2.8.9.

./configure - no errors

Code: Select all

Finished configure:
LIBVORBIS: using LOCAL libraries
LIBMAD: using LOCAL libraries
LIBSNDFILE: using LOCAL libraries
LIBFLAC: using LOCAL libraries
LIBID3TAG: using LOCAL libraries
LIBSAMPLERATE: disabled
LIBRESAMPLE: using LOCAL libraries
LIBSBSMS: using LOCAL libraries
LIBSOUNDTOUCH: using LOCAL libraries
LIBNYQUIST: using LOCAL libraries
LIBVAMP: using LOCAL libraries
LIBEXPAT: using LOCAL libraries
LIBTWOLAME: using LOCAL libraries
FFMPEG: using LOCAL libraries
PORTSMF: using LOCAL libraries
ladspa: enabled
audiounits: disabled
prefix=/usr/local/
portaudio: v19
It's when I get to make that I run into trouble; namely:

Code: Select all

make -C FileDialog
make[2]: Entering directory `/home/peter/audacity/lib-src/FileDialog'
g++ -c -g -O2 -I.  -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  generic/FileDialogPrivate.cpp -o generic/FileDialogPrivate.o
generic/FileDialogPrivate.cpp: In function ‘int FileDataNameCompare(long int, long int, long int)’:
generic/FileDialogPrivate.cpp:88: error: ‘FileData’ was not declared in this scope
and so on. Are we having an issue with conflicting versions of wxWidgets-dev?

Also, dumb question: is there a reason it's disabling ALSA when you build?

jabouillei
Posts: 1
Joined: Fri May 15, 2009 11:28 pm
Operating System: Please select

Re: Building 1.3.7 beta from CVS - wxWidgets version mismatc

Post by jabouillei » Fri May 15, 2009 11:39 pm

I had the same problem. Here is how I got it working. (This is bad and I wouldn't
be surprised if audacity crashes eventually.)

./configure --without-libmad
make
./configure
make

The build worked without libmad, but then I couldn't load mp3s.
When I included libmad, I received the exact same error that you mentioned.
Well, I received the error if I did a "make clean" between builds (and that
is the proper thing to do because header file changes related to the fresh
"configure" might have invalidated some of my built objects).
Luckily, I forgot to do a "make clean" after a couple of hours of
beating my head against the wall and... it worked! Hope this helps someone.

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

Re: Building 1.3.7 beta from CVS - wxWidgets version mismatc

Post by steve » Sat May 16, 2009 12:08 am

I think that you need a more recent version of wxWidgets than the one available through the Intrepid repository. You should use the wxwidgets repository: http://wiki.wxpython.org/InstallingOnUbuntuOrDebian

Ubuntu 9.04 (Jaunty) has Audacity 1.3.7. I would suggest trying that version.

If you wish to build Audacity 1.3.7 from source, you may need to apply this patch: http://cvs.fedoraproject.org/viewvc/rpm ... iew=markup
(the Jaunty build already has that patch)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked