LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2005, 03:40 PM   #1
pujolasdf
Member
 
Registered: Feb 2005
Posts: 70

Rep: Reputation: 15
Why do I get compile errors while compiling audacity?


Let's see... I use SUSE 9.2 Pro, configure worked perfectly but when I execute the 'make' command I get:

rd*, wxCoord*)':
/usr/include/wx/dc.h:341: error: `DoGetClippingBox' undeclared (first use this
function)
/usr/include/wx/dc.h:342: error: `wxRect' undeclared (first use this function)
/usr/include/wx/dc.h:343: error: variable or field `GetClippingBox' declared
void
/usr/include/wx/dc.h:343: error: `int GetClippingBox' redeclared as different
kind of symbol
/usr/include/wx/dc.h:341: error: previous declaration of `void
GetClippingBox(wxCoord*, wxCoord*, wxCoord*, wxCoord*)'
/usr/include/wx/dc.h:343: confused by earlier errors, bailing out

... blah, blah, blah.

My question is: why do I get these kind of errors? Do they distribute source code with so many bugs that when trying to compile it produces compilation errors? I don't understand this, can anyone explain why I get these errors when configure worked nice and this program is supposed to compile under a Linux system?
 
Old 06-25-2005, 04:41 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Re: Why do I get compile errors while compiling audacity?

Quote:
Originally posted by pujolasdf
Let's see... I use SUSE 9.2 Pro, configure worked perfectly but when I execute the 'make' command I get:

rd*, wxCoord*)':
/usr/include/wx/dc.h:341: error: `DoGetClippingBox' undeclared (first use this
function)
/usr/include/wx/dc.h:342: error: `wxRect' undeclared (first use this function)
/usr/include/wx/dc.h:343: error: variable or field `GetClippingBox' declared
void
/usr/include/wx/dc.h:343: error: `int GetClippingBox' redeclared as different
kind of symbol
/usr/include/wx/dc.h:341: error: previous declaration of `void
GetClippingBox(wxCoord*, wxCoord*, wxCoord*, wxCoord*)'
/usr/include/wx/dc.h:343: confused by earlier errors, bailing out

... blah, blah, blah.

My question is: why do I get these kind of errors? Do they distribute source code with so many bugs that when trying to compile it produces compilation errors? I don't understand this, can anyone explain why I get these errors when configure worked nice and this program is supposed to compile under a Linux system?
Did you get the latest and greatest of all versions? Because they are most likely unstable. It's not quite a matter of releasing buggy code, but since it's open-sourced, the hole point is for other peoples to modify and fix the bugs, isn't it? .

Still, try installing the rpm package, since you are using SuSE, you are better off with binaries in my honest opinion. You can get the rpm right here:

ftp://ftp.sunet.se/pub/Linux/distrib...2-3.1.i586.rpm

Regards!
 
Old 06-25-2005, 04:47 PM   #3
pujolasdf
Member
 
Registered: Feb 2005
Posts: 70

Original Poster
Rep: Reputation: 15
I didn't mean exactly that. Actually I absolutely love the philosophy behind 'Free Software' but I simply can't understand why (the hell) a source code produces errors of that kind... as I can't believe that code has SO big bugs (so big that it just can't compile). By the way, I don't have the __most__ recent release of those packages.

Thanks
 
Old 06-25-2005, 11:57 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
there is most likely something wrong with your setup
we can't help unless you give us the very start of the error output
if above is the start of errors there is something wrong with your wxWidgets installation

error between chair and keyboard not with software but with that said gcc is not reverse compatable so often software needs to be ported to the version of compiler you are using
developers can't make the software compile on all versions of the compiler it's not possible.
This is necessary so the gcc guys can keep us moving forward to a more standards compiant environment but it is inconvenient

compiling systems from source code requires a fairly high level of skill
 
Old 06-26-2005, 01:08 AM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Oops, I did not mean to sound like a bully or anything either, even though, sometimes I know that I do . But as foo_bar_foo said, compiling is no easy task, even though most peoples thing that a ./configure && make && make install should be all =). I very seldom compile anything from source today. I found way better to stick with packages/package managers to my own distribution, like apt-get for Debian-based or Portage with Gentoo. That's what they are made for .

I only compile things if:

1 - I wanna see/change the source code, which I almost never want to see, unless it's a game
2 - If I know that I should get more optimizations and options with it. Example: mplayer. It always worked better when compiled from source and does not compile with extra options as the binaries does as joypad support, which I don't use anymore today
3 - There's simply no package available for the app in question. Which is very, very, very rare today. If you found a package in .rpm, for example, it can easily be converted with some script (as Alien) into .tgz (Slackware) or .deb(Debian) without a single problem.

Regards!
 
Old 06-26-2005, 12:46 PM   #6
pujolasdf
Member
 
Registered: Feb 2005
Posts: 70

Original Poster
Rep: Reputation: 15
Hey, thank you very much to you two. By the way, I didn't think of you as a bully, Megaman X, I just thought that you didn't understand fully my question . Now thanks to you two I feel free and happy . In any case, here goes the beginning of the output, although now I'm using the rpm package Megaman X pasted.

make -C lib-src
make[1]: Entering directory `/home/gtubio/audacity-src-1.2.3/lib-src'
make[1]: No se hace nada para `all'.
make[1]: Leaving directory `/home/gtubio/audacity-src-1.2.3/lib-src'
make -C src
make[1]: Entering directory `/home/gtubio/audacity-src-1.2.3/src'
g++ -c -I../lib-src/portaudio/pa_common -I../lib-src/portmixer/px_common -I../lib-src/soundtouch/include -g -O2 -I../lib-src/expat -I../lib-src/allegro -I../lib-src/libnyquist/nyx -I../lib-src/libsndfile/src -I../lib-src/libresample/include -Wall -Iinclude -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES AColor.cpp -o obj/AColor.o
In file included from /usr/include/wx/dc.h:25,
from AColor.cpp:14:
/usr/include/wx/cursor.h: In constructor `
wxBusyCursorSuspender::wxBusyCursorSuspender()':
/usr/include/wx/cursor.h:46: error: `wxIsBusy' undeclared (first use this
function)
/usr/include/wx/cursor.h:46: error: (Each undeclared identifier is reported
only once for each function it appears in.)
/usr/include/wx/cursor.h:48: error: `wxBusyCursor' undeclared (first use this
function)

From where I stand, it seems to be something about what foo_bar_foo said...
 
Old 06-26-2005, 01:01 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649

Rep: Reputation: 148Reputation: 148
Quote:
Originally posted by foo_bar_foo
if above is the start of errors there is something wrong with your wxWidgets installation
Have you checked wether you have installed wxWidgets?

Audacity FAQ
 
Old 06-26-2005, 01:04 PM   #8
pujolasdf
Member
 
Registered: Feb 2005
Posts: 70

Original Poster
Rep: Reputation: 15
That was part of my wonderings, if configure worked well, it should be because wxWidgets are installed (actually I installed them long ago, whether I did it correctly or not I am not that sure ). Anyway, is there any way apart from using Yast2 to check if they are installed? I mean, any command like whereis?
 
Old 06-26-2005, 01:10 PM   #9
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649

Rep: Reputation: 148Reputation: 148
If you have created a slocate database you could do a
Code:
locate libwx
I guess. EDIT: On some systems you need to use "slocate" instead of "locate" if I remember it right.

I have installed the libraries in /usr/lib, so a
Code:
find /usr/lib -name "libwx*"
gives me the libraries. But to compile audacity I think you need the includes, too. Maybe you search for "wx" and look, if there are any other files. And I don't know what the minimum required wxWidgets version for Audacity 1.2.2 or 1.2.3 is.

Last edited by titopoquito; 06-26-2005 at 01:11 PM.
 
Old 06-27-2005, 02:02 PM   #10
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
It might be wrong wx version. You should use 2.4, not 2.6 or else.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Audacity to compile didi86 Linux - Software 11 01-21-2006 06:59 PM
Finally got audacity to compile akudewan LinuxQuestions.org Member Success Stories 11 11-02-2005 04:12 PM
Compiling Audacity 1.2.3 in Linux Mandrake 10.1 nightrider Linux - Newbie 2 08-17-2005 12:50 AM
audacity compile error spoto Linux - Software 0 12-21-2003 10:39 AM
audacity compile error vance Linux - Software 0 10-26-2003 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 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