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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-25-2005, 03:40 PM
|
#1
|
Member
Registered: Feb 2005
Posts: 70
Rep:
|
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?
|
|
|
06-25-2005, 04:41 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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!
|
|
|
06-25-2005, 04:47 PM
|
#3
|
Member
Registered: Feb 2005
Posts: 70
Original Poster
Rep:
|
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
|
|
|
06-25-2005, 11:57 PM
|
#4
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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
|
|
|
06-26-2005, 01:08 AM
|
#5
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
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!
|
|
|
06-26-2005, 12:46 PM
|
#6
|
Member
Registered: Feb 2005
Posts: 70
Original Poster
Rep:
|
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...
|
|
|
06-26-2005, 01:01 PM
|
#7
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
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
|
|
|
06-26-2005, 01:04 PM
|
#8
|
Member
Registered: Feb 2005
Posts: 70
Original Poster
Rep:
|
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?
|
|
|
06-26-2005, 01:10 PM
|
#9
|
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 current
Posts: 1,649
Rep:
|
If you have created a slocate database you could do a 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.
|
|
|
06-27-2005, 02:02 PM
|
#10
|
Member
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161
Rep:
|
It might be wrong wx version. You should use 2.4, not 2.6 or else.
|
|
|
All times are GMT -5. The time now is 06:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|