LinuxQuestions.org
Review your favorite Linux distribution.
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 05-19-2009, 09:54 AM   #1
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Compiling WXWidgets so Audacity .configure will work - how?


Hi Guys

I'm on FC6 on a custom compiled 2.6.18.1 kernel on an old AMD "Barton" CPU with 1GB of RAM.

I have compiled wxWidgets-2.8.10 with the following ./configure line:

Code:
./configure --enable-compat24 --with-sdl --with-x --with-gtk=2
while following the GTK compilation guide in the wxWidgets package source directory.

I. e. 2.4 compatibility IS specified...

I have configured, compiled, and installed it without any errors.

However, when trying to compile Audacity (checked out of CVS at 16:00 GMT+2 on 2009-05-19), its configure aborts with this message:

Code:
[rylan@development audacity]$ ./configure
.
.
.
checking for zip... /usr/bin/zip
checking for wx-config... /usr/local/bin/wx-config
configure: Checking that the installed version of wxWidgets is 2.4.x
configure: error: Unable to locate a suitable configuration of wxWidgets v2.4.x.
The currently available configurations are listed below.  If necessary, either
install the package for your distribution or download the 2.4.x version of
wxWidgets from http://wxwidgets.org.
To help configure find the right version set WX_CONFIG to point to it.
wxWidgets 2.5.x and 2.6.x are NOT supported!

[rylan@development audacity]$
How can I get Audacity to compile with a newer wxWidgets than 2.4.x ?

If that's not possible, where can I get hold of such an old wxWidgets source version?

Or is the audacity ./configure for recent checked-out versions just broken for newer wxWidgets versions? I could not get an official distribution of the Audacity source, due to SF being down at 16:00 GMT+2 on 2009-05-19...

Any ideas anyone?

Last edited by rylan76; 05-19-2009 at 09:57 AM.
 
Old 05-19-2009, 12:31 PM   #2
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
Ive been there.You need the newer version of audacity which will compile with the wxwidgets you have installed.Version 1.3 is still a beta but I havent had any problems running it.
 
Old 05-20-2009, 08:23 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
Fanx!

I got it fixed by downloading the beta 1.3.7 code (audacity-minsrc-1.3.7.tar.bz2)

I then recompiled wxWidgets with

Code:
configure --enable-compat24 --with-gtk=2 --enable-unicode
and after that audacity's configure worked and it compiled fine...
 
Old 05-20-2009, 09:36 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think you don't even need 2.4 compatibility for the newer audacity ... it'll just work.
 
Old 05-21-2009, 01:18 AM   #5
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
Crap...

It compiles on FC 6 just fine at work, but on my FC 10 system at home no version of FLAC will compile - damn damn damn!

Seems like the GCC version that ships with FC 10 is incompatible with some of the C++ syntax in FLAC... so no Audacity on FC10 for me. I did try several versions of FLAC, all fail to compile, and thusly Audacity won't compile.
 
Old 05-21-2009, 05:22 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
maybe you can fix the errors in compilation, you wanna post them ?
 
Old 05-25-2009, 03:06 AM   #7
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
Hi

Thanks for the reply! I'll need to get them from home as I'm using FC6 at work (yup... I like old, obsolete stuff). What is interesting is that FLAC compiles just fine here (at work, on FC6) but FC10 (which of course has a newer GCC) it doesn't.

I'll go and get the errors and post them.

Thanks again,
 
Old 05-25-2009, 04:08 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Hi Stefan,
This is very strange. I just compiled version 1.3.7(beta) of Audacity and here is the relevant part of the config.log file:
Code:
configure:5155: checking for wx-config
configure:5174: found /usr/local/bin/wx-config
configure:5187: result: /usr/local/bin/wx-config
configure:5210: Checking that the chosen version of wxWidgets is 2.8.x
As you see there is no problem with wx version 2.8. I would guess that a snapshot is even more recent than a beta version. I don't understand why only an older version of wx is supported in a snapshot. Have I misunderstood something?
cheers,
jdk
 
Old 05-25-2009, 04:41 AM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The configure script is fairly generic. All programs that use a configure script are similarly configured. Configure is generated by another program, autoconf. It continuously checks in different places for dependencies, and when it finds them all, it quits. But configure lists a lot of things the software package it is configuring may or may not understand. So, because the configure output lists wxwidgets 2.8.x, does not mean the software package being configured can use wxwidgets 2.8.x. It just means your system is telling the configure script to use that version.

You can force configure to use a certain package, like this:

./configure --with-PACKAGE=yes, where package is something like: wxwidgets2.8. So, configure only knows what it gleans from the system.
 
Old 05-25-2009, 11:18 PM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
The configure script is fairly generic. All programs that use a configure script are similarly configured. Configure is generated by another program, autoconf. It continuously checks in different places for dependencies, and when it finds them all, it quits. But configure lists a lot of things the software package it is configuring may or may not understand. So, because the configure output lists wxwidgets 2.8.x, does not mean the software package being configured can use wxwidgets 2.8.x. It just means your system is telling the configure script to use that version.

You can force configure to use a certain package, like this:

./configure --with-PACKAGE=yes, where package is something like: wxwidgets2.8. So, configure only knows what it gleans from the system.
Be that as it may, there was no problem compiling audacity version 1.3.7 using wxwidgets 2.8.x.
jdk
 
Old 05-26-2009, 11:40 AM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I don't see why they keep the old audacity around, it just confuses people. Just mark it as "old" and go with the new one. In fact, the new version has been out for many years, why haven't they moved along ...
 
Old 05-27-2009, 10:28 AM   #12
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by H_TeXMeX_H View Post
maybe you can fix the errors in compilation, you wanna post them ?
Hi

Here's what FLAC reports on FC10 when trying to compile it, in order for Audacity to link to it:

Code:
Making all in encode
make[4]: Entering directory `/home/rylan/flac-1.2.1/examples/cpp/encode'
Making all in file
make[5]: Entering directory `/home/rylan/flac-1.2.1/examples/cpp/encode/file'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..   -DFLaC__INLINE=__inline__ -DNDEBUG -I../../../.. -I./include -I../../../../include   -O3 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -funroll-loops -funroll-all-loops -fforce-addr -finline-functions -frerun-loop-opt -falign-loops=4 -falign-jumps=4 -falign-functions=4 -march=i686 -mmmx -msse2 -mtune=i686 -march=pentium4 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
          -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
        else rm -f ".deps/main.Tpo"; exit 1; \
        fi
main.cpp: In function ‘int main(int, char**)’:
main.cpp:75: error: ‘memcmp’ was not declared in this scope
make[5]: *** [main.o] Error 1
make[5]: Leaving directory `/home/rylan/flac-1.2.1/examples/cpp/encode/file'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/rylan/flac-1.2.1/examples/cpp/encode'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/rylan/flac-1.2.1/examples/cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rylan/flac-1.2.1/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rylan/flac-1.2.1'
make: *** [all] Error 2
[rylan@StefanLinux flac-1.2.1]$
Any ideas?
 
Old 05-27-2009, 11:13 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
After running './configure' edit the 'makefile' and change:

Code:
SUBDIRS = doc include m4 man src examples test build obj
to

Code:
SUBDIRS = doc include m4 man src test build obj
save and run 'make'. You shouldn't need the examples anyway.
 
Old 05-28-2009, 01:07 AM   #14
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
Hi H_TeXMeX_H

THANKS! I've learned something new once again.

I'll go an try it 2 nite.

Thanks again,

Regards
 
Old 05-28-2009, 10:47 AM   #15
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Original Poster
Rep: Reputation: 103Reputation: 103
FIXED!

Thanks all

H_Tex_Mex_H's fix worked, I just removed the demo and test folders from the SUBDIRS line in the FLAC makefile, and FLAC compiled fine on my FC10 setup.

Thank you
 
  


Reply

Tags
audacity, fc10, fedora, flac, wxwidgets


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
Audacity vs. Wxwidgets brodo Slackware 3 04-15-2007 08:07 AM
problem in configuring wxwidgets for cross compiling ra2000 Programming 5 12-13-2006 09:35 AM
Compiling Programs with wxWidgets Mezzanine Programming 18 01-20-2006 03:56 PM
wxwidgets and audacity slinky2004 Linux - Newbie 9 10-19-2004 02:03 PM
Cant work my wxWidgets prog. on windows sduffy89 Programming 1 08-30-2004 05:33 PM

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

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