LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 02-16-2005, 01:42 AM   #1
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 30
Finally got audacity to compile


I was trying to compile "audacity", the cool sound editing software and I was getting this error on running "make":

Code:
 	MeterToolBar.cpp o obj/MeterToolBar.o
 	MeterToolBar.cpp: In more member function ` virtual void
 	MeterToolBar::OnPaint(wxPaintEvent&) ':
 	MeterToolBar.cpp:104: error: variable ` wxPaintDC DC ' has more initializer but
 	incomplete type
 	make[1 ]: *** [ obj/MeterToolBar.o ] error 1
 	make[1 ]: Leaving directory `/home/akudewan/downloads/install/audacity-src-1.2.3/src '
 	make: *** [ audacity ] error 2
So I did a google, and it gave me a single hit on a german forum site. Google was kind enough to translate it for me. And the solution is: Edit the file MeterToolBar.cpp in the ./src directory of audacity change the function MeterToolBar::OnPaint as follows:

Code:
void MeterToolBar::OnPaint(wxPaintEvent & evt)
 	{
 	// wxPaintDC dc(this);
 	
 	int width, height;
 	GetSize(&width, &height);
 	
 	// DrawBackground(dc, width, height);
 	}
After doing this, the "make" runs fine.
I hope this info comes in handy to people who are getting the same error message. Now you wont have to break your head over a translated page. All the best!
 
Old 02-27-2005, 04:08 PM   #2
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 193

Rep: Reputation: 45
Thanks for the fix.
 
Old 03-25-2005, 08:19 PM   #3
SaxyWeed
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Rep: Reputation: 0
Thanks. Helped me out.
 
Old 04-22-2005, 09:36 PM   #4
K48
LQ Newbie
 
Registered: Apr 2005
Location: Chelyabinsk, Russia
Distribution: Slackware 9.1
Posts: 1

Rep: Reputation: 0
Lightbulb

Haha no need to comment out the lines

Had the same problem, just add

#include <wx/dcbuffer.h>

somewhere in the beginning of the MeterToolBar.cpp

worked for me
 
Old 04-26-2005, 06:30 AM   #5
lshbm
LQ Newbie
 
Registered: Apr 2005
Location: israel
Distribution: slackware
Posts: 1

Rep: Reputation: 0
thank you

thank you. worked like a charm
 
Old 05-09-2005, 02:41 PM   #6
jackassjim
Member
 
Registered: Jul 2004
Location: Montréal
Distribution: Yoper
Posts: 40

Rep: Reputation: 15
Months after you're still helping people!! thanx i really needed to record that new resonator guitar i just bought!!
 
Old 05-15-2005, 02:12 PM   #7
leptonbill
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
THANK YOU SOOOOOOOOOOO MUCH
 
Old 05-19-2005, 05:06 PM   #8
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
Thank you so much, K48's suggestion worked for me too!
 
Old 07-06-2005, 04:25 PM   #9
Slum
Member
 
Registered: May 2005
Location: Rhode Island, USA
Distribution: Slackware w/ bleeding edge kernel.
Posts: 37

Rep: Reputation: 15
Just wanted to bump this thread back to life because it helped me a great deal. I was pulling my hair out to figure out why Audacity wouldn't compile. Great job guys.

On a side note, the german forum that akudewan is referring to also said audacity likes wxWidgets 2.4.xx better, so if you can't compile audacity with these suggestions then try downgrading to wxWidgets 2.4.x.

Thanks again.
 
Old 07-22-2005, 09:26 PM   #10
mathedpotatoes
LQ Newbie
 
Registered: May 2005
Distribution: RHEL 3
Posts: 1

Rep: Reputation: 0
Smile thank you so much

That did the trick. This problem was bugging me for hours. Thanks!
 
Old 10-03-2005, 02:11 PM   #11
didi86
Member
 
Registered: Jun 2004
Distribution: OpenSuSE, CentOS, Linux From Scratch
Posts: 40

Rep: Reputation: 15
That solved the Problem, but now I recieve another error-Message:

effects/ToneGen.cpp:283: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/local/include/wx-2.6/wx/gtk/choice.h:34: note: candidate 1: wxChoice::wxChoice(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, int, const wxString*, long int, const wxValidator&, const wxString&)
/usr/local/include/wx-2.6/wx/gtk/choice.h:46: note: candidate 2: wxChoice::wxChoice(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, const wxArrayString&, long int, const wxValidator&, const wxString&)
make[1]: *** [obj/effects/ToneGen.o] Error 1
make[1]: Leaving directory `/sources/Audio/audacity-src-1.2.3/src'
make: *** [audacity] Error 2

Does anybody have an idea what that is about or how it can be solved? I'm using wxWidgets 2.6 and can't downgrade to 2.4 because I have other applications running that require 2.6....
 
Old 11-02-2005, 03:12 PM   #12
emrecio
LQ Newbie
 
Registered: Nov 2005
Location: Seattle, WA, US
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
Thanks!!

Thanks a lot this helped immensely!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot run Audacity : "Audacity is already running" tuanito Linux - Software 8 03-17-2016 02:05 PM
Can't get Audacity to compile didi86 Linux - Software 11 01-21-2006 05:59 PM
Why do I get compile errors while compiling audacity? pujolasdf Linux - Software 9 06-27-2005 01:02 PM
audacity compile error spoto Linux - Software 0 12-21-2003 09:39 AM
audacity compile error vance Linux - Software 0 10-26-2003 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration