Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110809 - wxgtk 2.6 support for audacity 1.2.3
Summary: wxgtk 2.6 support for audacity 1.2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 122372 123434 130182 143540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-29 12:50 UTC by Francisco José Cañizares Santofimia
Modified: 2006-08-11 01:53 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
audacity-wx.patch (audacity-wx.patch,407 bytes, patch)
2005-10-29 12:51 UTC, Francisco José Cañizares Santofimia
Details | Diff
audacity-1.2.3-r2.ebuild (audacity-1.2.3-r2.ebuild,1.85 KB, text/plain)
2005-11-23 16:11 UTC, Alexey Maximov
Details
Correct ebuild for audacity. (audacity-1.2.3-r2.ebuild,1.85 KB, text/plain)
2005-12-09 10:54 UTC, Francisco José Cañizares Santofimia
Details
Ebuild for audacity 1.3.0b with wxGTK 2.6. support (audacity-1.3.0b.ebuild,1.89 KB, patch)
2006-01-01 14:22 UTC, Richard Ash
Details | Diff
Corrected depedancies ebuild 1.3.0b (audacity-1.3.0b.ebuild,1.91 KB, text/plain)
2006-01-02 12:12 UTC, Richard Ash
Details
audacity 1.3.0 beta ebuild (audacity-1.3.0_beta.ebuild,1.23 KB, text/plain)
2006-02-28 15:34 UTC, Marcin Lewandowski
Details
ebuild with dependacy problem fixed (audacity-1.3.0_beta.ebuild,1.20 KB, text/plain)
2006-03-18 14:25 UTC, Richard Ash
Details
audacity-1.2.4b-compilefix.patch (audacity-1.2.4b-compilefix.patch,672 bytes, patch)
2006-03-19 07:49 UTC, Thomas Weidner
Details | Diff
Allows compile with GCC 4.1 (audacity-1.3.0b-gcc4.1.patch,759 bytes, patch)
2006-04-26 14:54 UTC, luthree
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco José Cañizares Santofimia 2005-10-29 12:50:03 UTC
Hi, I've found a PLD linux patch that makes audacity 1.2.3-r1 compile with wxgtk
2.6. I just tested this in x86, so I don't know if it works in other plattforms.
URL: http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/audacity-wx.patch

I'll attach it as this gives problems sometimes downloading patches.

Reproducible: Always
Steps to Reproduce:
Comment 1 Francisco José Cañizares Santofimia 2005-10-29 12:51:54 UTC
Created attachment 71685 [details, diff]
audacity-wx.patch
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-10-29 12:58:53 UTC
Honestly, I don't think this is a matter of a single include... 
Comment 3 Francisco José Cañizares Santofimia 2005-10-29 13:18:06 UTC
Well, it worked for me :)
Comment 4 Stefan de Konink 2005-10-30 08:04:24 UTC
It does work for me, but ofcourse you should edit your ebuild too ;)

This does solve the pango problem :)
Comment 5 Stefan de Konink 2005-10-30 12:38:00 UTC
Ok, it does compile, install, etc.

But the second time I tryed:
skinkie@livesupport ~ $ audacity 

(audacity:27895): Gtk-CRITICAL **: gtk_accel_label_new: assertion `string !=
NULL' failed

(audacity:27895): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion
`GTK_IS_MISC (misc)' failed

(audacity:27895): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET
(widget)' failed

(audacity:27895): Gtk-CRITICAL **: gtk_accel_label_set_accel_widget: assertion
`GTK_IS_ACCEL_LABEL (accel_label)' failed
Segmentation fault
Comment 6 Francisco José Cañizares Santofimia 2005-10-30 16:34:21 UTC
Weird, I have no problems with it. Perhaps you remember what do you did before
it crashed?
Comment 7 MATSUU Takuto (RETIRED) gentoo-dev 2005-11-02 15:44:21 UTC
See Bug 100741.
Comment 8 Alexey Maximov 2005-11-23 16:11:06 UTC
Created attachment 73462 [details]
audacity-1.2.3-r2.ebuild

use it with patch for wx
Comment 9 Richard Ash 2005-11-29 14:37:37 UTC
This is explicitly discouraged by audacity developers, because it only works if
2.4 compatiability is turned on in wxGTK 2.6
Use 1.3 branch (now released) if you really need wxGTK 2.6 support
Comment 10 Tyler Montbriand 2005-12-09 09:17:18 UTC
This bugfix would be great if it worked, but it doesn't -- I still get

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libwx_gtk2-2.4.so:
undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libwx_gtk2-2.4.so:
undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libwx_gtk2-2.4.so:
undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory
`/var/tmp/portage/audacity-1.2.3-r2/work/audacity-src-1.2.3/src'
make: *** [audacity] Error 2

Same as I always get, always, ever.
Comment 11 Francisco José Cañizares Santofimia 2005-12-09 10:50:07 UTC
I only tried it on x86, not x86-64, so that explains why it doesn't work on your
PC. Anyway 1.2.4b and 1.3.0b (this is the release with 2.6, as comment #9 says)
has been released, though they are not in portage (yet).
Comment 12 Francisco José Cañizares Santofimia 2005-12-09 10:52:04 UTC
(In reply to comment #10)
Anyway, appears you (and my ebuild which I'm going to modify) are using WX 2.4
not 2.6
Comment 13 Francisco José Cañizares Santofimia 2005-12-09 10:54:38 UTC
Created attachment 74391 [details]
Correct ebuild for audacity.

Ebuild from comment #8 does not work correctly. Please obsolete it.
Comment 14 Richard Ash 2006-01-01 14:22:03 UTC
Created attachment 75951 [details, diff]
Ebuild for audacity 1.3.0b with wxGTK 2.6. support

Here is the correct solution - a unicode-aware, wx2.6 compatible ebuild for audacity 1.3.0b. Note this is not just a renamed 1.2.4b ebuild, but has a number of (upstream) dependency changes. Also the 1.2.4b in portage has borked dependancies, so this is essentially a rewrite based on the upstream dependencies.

I've included the patch for compiling with GCC 4.1 (which is in upstram CVS) in this ebuild.
Comment 15 Richard Ash 2006-01-01 14:23:53 UTC
The reason that compiling audacity 1.2.x against wxGTK 2.6 is not recomended by the developers is that it only works if your wxGTK 2.6 build has 2.4 compatibility turned on. The moment that stops being default, everything goes to pieces.
Comment 16 MATSUU Takuto (RETIRED) gentoo-dev 2006-01-02 07:19:24 UTC
(In reply to comment #14)
> Created an attachment (id=75951) [edit]

The ebuild fails to emerge without vorbis use flag (libogg and libvorbis are not installed). To emerge audacity, I had to emerge not only libogg but also libvorbis. Should I remove vorbis use flag and add libvorbis in DEPEND?


x86_64-pc-linux-gnu-g++ -o ../audacity AColor.o AboutDialog.o AudacityApp.o AudioIO.o BatchCommandDialog.o BatchCommands.o BatchProcessDialog.o Benchmark.o ControlToolBar.o Envelope.o EditToolBar.o FFT.o FreqWindow.o Help.o HistoryWindow.o ImageManipulation.o LabelTrack.o Languages.o LangChoice.o Legacy.o Menus.o MeterToolBar.o Mix.o MixerToolBar.o NoteTrack.o PitchName.o PlatformCompatibility.o Printing.o Project.o Resample.o RingBuffer.o SelectionBar.o Shuttle.o Spectrum.o Tags.o TimeTrack.o Track.o TrackArtist.o TrackPanel.o TranscriptionToolBar.o ToolBar.o UndoManager.o UploadDialog.o VoiceKey.o WaveClip.o WaveTrack.o commands/CommandManager.o commands/Keyboard.o effects/Effect.o effects/SimpleMono.o effects/SimplePairedTwoTrack.o effects/SoundTouchEffect.o effects/LoadEffects.o effects/Amplify.o effects/BassBoost.o effects/ChangeLength.o effects/ChangePitch.o effects/ChangeSpeed.o effects/ChangeTempo.o effects/ClickRemoval.o effects/Compressor.o effects/Echo.o effects/Equalization.o effects/Fade.o effects/Filter.o effects/Invert.o effects/Leveller.o effects/Noise.o effects/NoiseRemoval.o effects/Normalize.o effects/Phaser.o effects/Repeat.o effects/Reverse.o effects/Silence.o effects/SpikeCleaner.o effects/StereoToMono.o effects/ToneGen.o effects/TruncSilence.o effects/TwoPassSimpleMono.o effects/Wahwah.o export/Export.o export/ExportMultiple.o export/ExportMP3.o export/ExportOGG.o export/ExportPCM.o export/ExportCL.o import/Import.o import/ImportFLAC.o import/ImportLOF.o import/ImportMIDI.o import/ImportMP3.o import/ImportOGG.o import/ImportPCM.o import/ImportRaw.o import/RawAudioGuess.o prefs/AudioIOPrefs.o prefs/BatchPrefs.o prefs/DirectoriesPrefs.o prefs/FileFormatPrefs.o prefs/GUIPrefs.o prefs/KeyConfigPrefs.o prefs/MousePrefs.o prefs/PrefsDialog.o prefs/QualityPrefs.o prefs/SpectrumPrefs.o widgets/AButton.o widgets/ASlider.o widgets/Meter.o widgets/MultiDialog.o widgets/Ruler.o widgets/TimeTextCtrl.o widgets/Warning.o xml/XMLFileReader.o effects/nyquist/Nyquist.o effects/nyquist/LoadNyquist.o effects/ladspa/LoadLadspa.o effects/ladspa/LadspaEffect.o ..//lib-src/libresample.a ..//lib-src/libSoundTouch.a ..//lib-src/libnyquist.a ..//lib-src/expat.a ..//lib-src/allegro.a ../lib-src/portaudio/pa_unix_oss/portaudio.a ../lib-src/portmixer/px_unix_oss/portmixer.a libaudacity.a -lmad -lFLAC++ -lFLAC -lsndfile -lid3tag -L/usr/lib64 -pthread   -L/usr/X11R6/lib64  -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
BatchCommands.o: In function `BatchCommands::ApplySpecialCommand(int, wxString, wxString)':
BatchCommands.cpp:(.text+0x2cd8): undefined reference to `ExportOGG(AudacityProject*, bool, wxString, bool, double, double)'
export/ExportMultiple.o: In function `DoExport(AudacityProject*, int, wxString, bool, wxString, bool, double, double, bool, int)':
ExportMultiple.cpp:(.text+0x1209): undefined reference to `ExportOGG(AudacityProject*, bool, wxString, bool, double, double)'
collect2: ld returned 1 exit status
make[1]: *** [../audacity] Error 1
make[1]: Leaving directory `/var/tmp/portage/audacity-1.3.0/work/audacity-src-1.3.0-beta/src'
make: *** [audacity] Error 2

!!! ERROR: media-sound/audacity-1.3.0 failed.
!!! Function src_compile, Line 67, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Portage 2.0.53 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig cvs distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 canna crypt cups eds emboss encode esd exif expat fam ffmpeg firefox flac foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 idn imlib ipv6 jack jpeg kde lcms lzw lzw-tiff mad mng mp3 mpeg ncurses nls opengl pam pcre pdflib perl png python qt quicktime readline real ruby sdl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales wxwindows xine xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 17 Richard Ash 2006-01-02 12:11:10 UTC
Absoutely right - someone put an uncoditional call to libogg in the new batch processing code. libogg / libvorbis will have to be hard dependancies for this release. Bug filed upstream:
  http://limpet.net/audacity/bugzilla/show_bug.cgi?id=229
Comment 18 Richard Ash 2006-01-02 12:12:28 UTC
Created attachment 76016 [details]
Corrected depedancies ebuild 1.3.0b
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-02-10 07:03:03 UTC
*** Bug 122372 has been marked as a duplicate of this bug. ***
Comment 20 Patrick McLean gentoo-dev 2006-02-24 09:09:57 UTC
*** Bug 123434 has been marked as a duplicate of this bug. ***
Comment 21 Curtis Farnham 2006-02-26 08:08:51 UTC
(In reply to comment #18)
> Created an attachment (id=76016) [edit]
> Corrected depedancies ebuild 1.3.0b
> 

This ebuild fails on my system with:

----------------------------------------------------------------------
>>> Unpacking source...
>>> Unpacking audacity-src-1.3.0b.tar.gz to /var/tmp/portage/audacity-1.3.0b/work
 * Applying audacity-1.2.3-gcc41.patch ...                      [ ok ]
>>> Source unpacked.
!!! set-wxconfig: Error:  Can't find normal or debug version:
----------------------------------------------------------------------

It's not finding wxGTK?  I'm not sure what to do about it.  wxGTK is installed and worked fine with the current stable and testing audacity ebuilds.

I submitted an ebuild for 1.3.0b before this one was pointed out to me, and it worked fine.  See bug #124120.

I can provide more details in my system if desired, but I'm not sure what would be useful.  I'm running mostly x86 but some ~x86 too.  Using wxGTK-2.6.2-r1 compiled with the following flags:

USE="gnome opengl sdl X -joystick -odbc"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
Comment 22 Marcin Lewandowski 2006-02-28 15:34:51 UTC
Created attachment 80994 [details]
audacity 1.3.0 beta ebuild

This is my proposal for audacity-1.3.0_beta ebuild. It works on my PC.
Comment 23 Patrick McLean gentoo-dev 2006-03-01 09:17:47 UTC
MY_P="${PN}-src-1.3.0b"

please use versionator.eclass to manipulate ${PV} rather than putting a static version in the ebuild like this.
Comment 24 Anonymous bin ich 2006-03-07 19:55:35 UTC
x86 confirmed here too.
Comment 25 Drew Winstel 2006-03-12 08:47:39 UTC
~amd64 appears to work with Marcin's ebuild (tacking on the keyword, of course).  I've only done rudimentary testing, of course, but it's a start.
Comment 26 kavol 2006-03-13 14:09:03 UTC
(In reply to comment #25)
> ~amd64 appears to work with Marcin's ebuild (tacking on the keyword, of
> course).  I've only done rudimentary testing, of course, but it's a start.

it works for me too - on AMD64

tried recording one side of LP (27 m 36 s), noise removal, amplifying, spliting, exporting ...
Comment 27 Tyler Montbriand 2006-03-18 13:12:06 UTC
The 1.3.0 ebuild is terrific.  Works so far without a glitch under AMD64.  I think this should be put in portage ASAP :)
Comment 28 Richard Ash 2006-03-18 14:23:00 UTC
Vorbis conditional dependancy doesn't work as discussed above, so it's a hard dependacy. Changes as below:
Surely 3 months is a long time to wait for an ebuild to go into portage?

--- audacity-1.3.0_beta.ebuild-old      2006-03-18 22:18:54.000000000 +0000
+++ audacity-1.3.0_beta.ebuild  2006-03-18 22:19:45.000000000 +0000
@@ -4,7 +4,7 @@
 
 inherit wxwidgets eutils flag-o-matic
 
-IUSE="encode mad vorbis"
+IUSE="encode mad"
 
 MY_P="${PN}-src-1.3.0b"
 DESCRIPTION="Free crossplatform audio editor"
@@ -19,7 +19,7 @@
        >=app-arch/zip-2.3
        media-libs/libid3tag
        >=media-libs/libsndfile-1.0.0
-       vorbis? ( >=media-libs/libvorbis-1.0 )
+       >=media-libs/libvorbis-1.0 
@@ -38,7 +38,7 @@
 
        econf \
                $(use_with mad libmad system) \
-               $(use_with vorbis vorbis system) \
+               --with-vorbis=system \
                --with-id3tag=system \
                --with-libsndfile=system || die

        encode? ( >=media-sound/lame-3.92 )
        mad? ( >=media-libs/libmad-0.14.2b )"
Comment 29 Richard Ash 2006-03-18 14:25:40 UTC
Created attachment 82496 [details]
ebuild with dependacy problem fixed

Changed subject to reflect the content of the thread, and added new ebuild to fix the upstream problem with vorbis dependacy (as discussed by me before).
Comment 30 Thomas Weidner 2006-03-19 07:48:42 UTC
I changed the 1.2.4b-r1 ebuild to work with wxGTK 2.6 for me. (before i found this bug). i only changed the dep to || ( =x11-libs/wxGTK-2.4* =x11-libs/wxGTK-2.6* ) and applied a extra patch to make it compile (don't know if this is a wxGTK 2.6 or  GCC 4.1 issue) (will be attached). audacity runs without any problems or errors/warnings to the console here. HTH
Comment 31 Thomas Weidner 2006-03-19 07:49:25 UTC
Created attachment 82562 [details, diff]
audacity-1.2.4b-compilefix.patch
Comment 32 Richard Ash 2006-03-19 12:53:41 UTC
The 1.2.4 batch is very suspect, because it only works as long as wsGTK 2.6 is built with the 2.4 compatability extensions on. As soon as these default off upstream the build will come to pieces in many places, and there is no way to reliably check whether the installed wx has the necessay options.

Also, as soon as you go to wxGTK unicode, a load more issues come up, hence why the upstream project decieded that 1.2.4 with wx 2.6 was too unreliable to ever release to users, and put 2.6 support into the new 1.3 branch.
Comment 33 Phillip Berndt 2006-03-24 10:42:09 UTC
x86, wxgtk 2.6 with unicode enabled. Audacity fails to initialize ALSA, but I don't think that this is related with the ebuild ;) Anyway, ebuild works for me.
Comment 34 Jakub Moc (RETIRED) gentoo-dev 2006-04-16 12:41:53 UTC
*** Bug 130182 has been marked as a duplicate of this bug. ***
Comment 35 Zeksers 2006-04-16 12:46:29 UTC
(In reply to comment #30)
> I changed the 1.2.4b-r1 ebuild to work with wxGTK 2.6 for me. (before i found
> this bug). i only changed the dep to || ( =x11-libs/wxGTK-2.4*
> =x11-libs/wxGTK-2.6* ) and applied a extra patch to make it compile (don't know
> if this is a wxGTK 2.6 or  GCC 4.1 issue) (will be attached). audacity runs
> without any problems or errors/warnings to the console here. HTH
> 

I did it like you said not knowing it and everythings ok to me too. (bug #130182)
Comment 36 luthree 2006-04-26 14:54:47 UTC
Created attachment 85571 [details, diff]
Allows compile with GCC 4.1

I'm not really sure if this is necessary, but I needed it for my computer. Thought I'ld submit it, just in case.
Comment 37 Greg Watson (linuxkrn) 2006-05-03 21:29:23 UTC
The ebuild for 1.3.0_beta works great on my system.  Please, let get this into portage!
Comment 38 Daniel Black (RETIRED) gentoo-dev 2006-07-11 00:04:58 UTC
wxgtk-2.6 is included with 1.3.0b

close?
Comment 39 Francisco José Cañizares Santofimia 2006-07-11 01:10:32 UTC
(In reply to comment #38)
> wxgtk-2.6 is included with 1.3.0b
> 
> close?
> 

Agree.
Comment 40 MATSUU Takuto (RETIRED) gentoo-dev 2006-08-05 18:57:09 UTC
Close (1.3.0b in cvs)
Comment 41 Jakub Moc (RETIRED) gentoo-dev 2006-08-11 01:53:46 UTC
*** Bug 143540 has been marked as a duplicate of this bug. ***