audacity 2.1.2 fails to compile on open suse 13.2

Building and customizing Audacity from the source code.

If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by thomasf » Tue Feb 09, 2016 8:41 pm

Exactly the same problem here on opensuse tumbleweed.

Code: Select all
wx-config --version
gives
Code: Select all
3.0.2
thomasf
 
Posts: 6
Joined: Tue Feb 09, 2016 8:36 pm
Operating System: GNU/Linux other

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by steve » Tue Feb 09, 2016 10:07 pm

Nothing wrong there.
I'm not sure that I will be able to help as I don't have Suse, but if you try these steps, I'll have a look to see if I can spot anything.

First, clean the build::
Code: Select all
make distclean


then, if you've not already done so, create a build directory within the source tree, for example, if the Audacity source code is in ~/audacity create a folder ~/audacity/build

Then, from within the build folder, configure with:
Code: Select all
../configure --prefix=/home/user/usr 2>&1 | tee configure-log.txt

(The benefit of building within a separate "build" folder is that it keeps the source code clean. When doing this, the configure command begins with two dots rather than one).

When it completes, check that the file configure-log.txt does not include "error" messages. If configure aborted with an error there's no point continuing so just post that configure-log.txt file as an attachment to your reply.

Assuming that it appeared to complete correctly, run:
Code: Select all
make 2>&1 | tee make-log.txt

then post both the configure-log.txt and the make-log.txt files as attachments. (to add an attachment, use the "Upload attachment feature below the message composing box).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45394
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by thomasf » Wed Feb 10, 2016 8:16 pm

here are the logs on opensuse tumbleweed

Looking at the wxWidgets-devel package I found the configuration as follows:
Code: Select all
   --enable-vendor=suse \
   --with-gtk=%gtk_version\
   --disable-static\
   --enable-unicode\
   --with-opengl\
   --with-libmspack\
   --with-sdl\
   --enable-ipv6\
   --enable-mediactrl\
   --enable-optimise\
%if 0%{?WX_DEBUG}
   --enable-debug\
%else
   --disable-debug\
%endif
   --enable-stl\
   --enable-plugins
Attachments
configure-log.txt
(133.03 KiB) Downloaded 48 times
make-log.txt
(694.14 KiB) Downloaded 47 times
thomasf
 
Posts: 6
Joined: Tue Feb 09, 2016 8:36 pm
Operating System: GNU/Linux other

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by lineinthesand » Fri Feb 12, 2016 8:07 pm

Out of source building did not work (some problem with nyquist, see make-log1.txt).
Attachments
make-log1.txt
(1.15 KiB) Downloaded 46 times
lineinthesand
 
Posts: 9
Joined: Sat Feb 06, 2016 8:07 pm
Operating System: GNU/Linux other

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by lineinthesand » Fri Feb 12, 2016 8:10 pm

Here are the configure and make logs (in-source build).
Attachments
configure-log.txt
(82.55 KiB) Downloaded 46 times
lineinthesand
 
Posts: 9
Joined: Sat Feb 06, 2016 8:07 pm
Operating System: GNU/Linux other

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by lineinthesand » Fri Feb 12, 2016 8:11 pm

Forgot the make log, sorry.
Attachments
make-log.txt
(465.12 KiB) Downloaded 45 times
lineinthesand
 
Posts: 9
Joined: Sat Feb 06, 2016 8:07 pm
Operating System: GNU/Linux other

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by steve » Fri Feb 12, 2016 8:56 pm

I've been puzzling over these "cannot convert from 'const char' to 'const wxChar *'" errors.
I can't see any reason for them in what you are doing, but I did find that there was a bug in April 2015 which produced errors like this. The bug was fixed a couple of days later.
Just wondering, where exactly did you get the source code from and when?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45394
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by lineinthesand » Sat Feb 13, 2016 3:20 pm

I got the tarball from here http://www.fosshub.com/Audacity.html/audacity-minsrc-2.1.2.tar.xz.

Now I tried to compile from git repo. Both, master and 2.1.2 tag give this error on compilation:

Code: Select all
  CC       test_float.o
autogen --writable test_endswap.def
FSM Error:  in state 10 (have_value), event 3 (var_name) is invalid
invalid transition:  in test_endswap.def on line 5
        token in error:  var_name:  ''x3210 ;
        format          = FMT_SHORT ;
        } ;

int_type = {
        name            = int ;''

        [[...<error-text>]]  ;
        format          = FMT_SHORT ;
        } ;

int_type = {
        name            = int ;

Likely causes:  a mismatched quote, a value that needs quoting,
                or a missing semi-colon
Makefile:1051: recipe for target 'test_endswap.c' failed
make[5]: *** [test_endswap.c] Error 2
make[5]: Leaving directory '/home/user/Downloads/audacity/lib-src/libsndfile/src'
Makefile:771: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/user/Downloads/audacity/lib-src/libsndfile/src'
Makefile:504: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/user/Downloads/audacity/lib-src/libsndfile/src'
Makefile:503: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/user/Downloads/audacity/lib-src/libsndfile'
Makefile:1008: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/Downloads/audacity/lib-src'
Makefile:726: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
lineinthesand
 
Posts: 9
Joined: Sat Feb 06, 2016 8:07 pm
Operating System: GNU/Linux other

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by Gale Andrews » Sat Feb 13, 2016 3:56 pm

lineinthesand wrote:I got the tarball from here http://www.fosshub.com/Audacity.html/audacity-minsrc-2.1.2.tar.xz.

Now I tried to compile from git repo. Both, master and 2.1.2 tag give this error on compilation

What is your exact configure command? What is the site script "/usr/share/site/x86_64-unknown-linux-gnu" that configure loads as the first step according to the configure log?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26089
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this post Posted by thomasf » Sun Feb 14, 2016 3:51 pm

The script just configures some openSuse-specific paths

I guess I found the issue:
I compiled Audacity successfully with a self-compiled version of wxWidgets. Then I compared the call which fails: It's the same except of wxWidgets include paths. So I compared the header files that are included. There is only one file different: /usr/lib64/wx/include/gtk2-unicode-3.0/wx/setup.h. The diff is attached. Then I tested switching those values that are different on my self-compiled version until build fails with the same message: wxUSE_STL. If this is set to one, the same error occurs as when compiling with the system package. So it seems that configuring wxWidgets with `--with-stl` breaks the build of Audacity.
Attachments
setup.h.diff
(5.26 KiB) Downloaded 48 times
thomasf
 
Posts: 6
Joined: Tue Feb 09, 2016 8:36 pm
Operating System: GNU/Linux other

PreviousNext

Return to Compiling Audacity



Who is online

Users browsing this forum: Bing [Bot] and 3 guests