Page 3 of 4

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Tue Feb 09, 2016 8:41 pm
Posted by thomasf
Exactly the same problem here on opensuse tumbleweed.

Code: Select all
wx-config --version
gives
Code: Select all
3.0.2

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Tue Feb 09, 2016 10:07 pm
Posted by steve
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).

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Wed Feb 10, 2016 8:16 pm
Posted by thomasf
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

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Fri Feb 12, 2016 8:07 pm
Posted by lineinthesand
Out of source building did not work (some problem with nyquist, see make-log1.txt).

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Fri Feb 12, 2016 8:10 pm
Posted by lineinthesand
Here are the configure and make logs (in-source build).

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Fri Feb 12, 2016 8:11 pm
Posted by lineinthesand
Forgot the make log, sorry.

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Fri Feb 12, 2016 8:56 pm
Posted by steve
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?

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Sat Feb 13, 2016 3:20 pm
Posted by lineinthesand
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

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Sat Feb 13, 2016 3:56 pm
Posted by Gale Andrews
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

Re: audacity 2.1.2 fails to compile on open suse 13.2

Permanent link to this postPosted: Sun Feb 14, 2016 3:51 pm
Posted by thomasf
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.