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 Gale Andrews » Thu Feb 04, 2016 1:44 pm

Laurent14 wrote:
Gale Andrews wrote:
Laurent14 wrote:this is curious since ./lib-src/portsmf/allegro.h has #include <assert.h>

Have you tried configuring with local portsmf ?


Gale


no; I just tried but portmidi failed to compile...
here is the error message if it can be useful:
Code: Select all
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot open output file /Release/libpmjni.so: No such file or directory
collect2: error: ld returned 1 exit status
pm_common/CMakeFiles/pmjni.dir/build.make:236: recipe for target '/Release/libpmjni.so' failed
make[2]: *** [/Release/libpmjni.so] Error 1
CMakeFiles/Makefile2:77: recipe for target 'pm_common/CMakeFiles/pmjni.dir/all' failed
make[1]: *** [pm_common/CMakeFiles/pmjni.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

in portmidi, I only made
mkdir build
cd build
cmake ..
make

Reconfigure and compile in the top level.

Why are you running cmake? You should only need to install cmake (or libsoxr-dev which installs cmake) then run make.

You can also try configuring --without-midi unless you really need MIDI support. Then you should not have issues with portmidi or portsmf.

Similarly to use local portsmf, configure --with-midi=local.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26093
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 lineinthesand » Sat Feb 06, 2016 8:17 pm

I also tried building it on openSUSE 13.2 and I get this error. But I don't get, what the problem is: what about that ANSI vs. Unicode thing?
How do I solve this now? Do I really have to compile wxWidgets to solve this problem?
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 » Sun Feb 07, 2016 11:16 am

lineinthesand wrote:I also tried building it on openSUSE 13.2 and I get this error. But I don't get, what the problem is: what about that ANSI vs. Unicode thing?
How do I solve this now? Do I really have to compile wxWidgets to solve this problem?

As I assume you know, to help someone with a compilation error we need a minimum of the lines leading up to the error, and ideally the commands you used to configure Audacity.

Default Audacity configure is with unicode and you should not change that. So if you are trying to build Audacity 2.1.2, build it with a unicode version of wxWidgets 3.0.x, ideally 3.0.2. wxWidgets 3 defaults to unicode.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 26093
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 lineinthesand » Sun Feb 07, 2016 4:55 pm

OK, I did ./configure --prefix=/home/user/usr and got:
Code: Select all
In file included from /usr/include/wx-3.0/wx/intl.h:17:0,
                 from /usr/include/wx-3.0/wx/filename.h:17,
                 from DirManager.h:16,
                 from DirManager.cpp:65:
blockfile/../ondemand/ODDecodeTask.h: In member function ‘virtual const wxChar* ODDecodeTask::GetTip()’:
/usr/include/wx-3.0/wx/translation.h:38:58: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in return
     #define _(s)                     wxGetTranslation((s))
                                                          ^
blockfile/../ondemand/ODDecodeTask.h:57:42: note: in expansion of macro ‘_’
    virtual const wxChar* GetTip(){return _("Decoding Waveform");}
                                          ^
DirManager.cpp: In static member function ‘static void DirManager::CleanTempDir()’:
DirManager.cpp:397:88: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘5’ to ‘void RecursivelyRemove(wxArrayString&, int, bool, bool, const wxChar*)’
    RecursivelyRemove(filePathArray, count, true, true, _("Cleaning up temporary files"));
                                                                                        ^
DirManager.cpp: In member function ‘bool DirManager::SetProject(wxString&, wxString&, bool)’:
DirManager.cpp:523:91: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘5’ to ‘void RecursivelyRemove(wxArrayString&, int, bool, bool, const wxChar*)’
          RecursivelyRemove(dirlist, count, false, true, _("Cleaning up cache directories"));
                                                                                           ^
DirManager.cpp: In member function ‘wxFileName DirManager::MakeBlockFilePath(wxString)’:
DirManager.cpp:592:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
       if(!dir.DirExists() && !dir.Mkdir(0777,wxPATH_MKDIR_FULL))
         ^
DirManager.cpp: In member function ‘int DirManager::ProjectFSCK(bool, bool)’:
DirManager.cpp:1395:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
             NULL};
                 ^
DirManager.cpp:1395:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1412:40: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘7’ to ‘int RecursivelyEnumerateWithProgress(wxString, wxArrayString&, wxString, bool, bool, int, const wxChar*)’
       _("Inspecting project file data"));
                                        ^
DirManager.cpp:1449:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
                NULL};
                    ^
DirManager.cpp:1449:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1449:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1511:41: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
                                     NULL};
                                         ^
DirManager.cpp:1511:41: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1511:41: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1570:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
                NULL};
                    ^
DirManager.cpp:1570:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1570:20: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1629:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
             NULL};
                 ^
DirManager.cpp:1629:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp:1629:17: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ in initialization
DirManager.cpp: In member function ‘void DirManager::RemoveOrphanBlockfiles()’:
DirManager.cpp:1817:40: error: cannot convert ‘const wxString’ to ‘const wxChar* {aka const wchar_t*}’ for argument ‘7’ to ‘int RecursivelyEnumerateWithProgress(wxString, wxArrayString&, wxString, bool, bool, int, const wxChar*)’
       _("Inspecting project file data"));
                                        ^
Makefile:2407: recipe for target 'audacity-DirManager.o' failed
make[2]: *** [audacity-DirManager.o] Error 1
make[2]: Leaving directory '/home/user/Downloads/audacity-minsrc-2.1.2/src'
Makefile:1346: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/user/Downloads/audacity-minsrc-2.1.2/src'
Makefile:716: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


The wxWidgets version is 3.0.2.
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 » Sun Feb 07, 2016 6:08 pm

What does this command give you?
Code: Select all
wx-config --list
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45101
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 » Sun Feb 07, 2016 9:07 pm

Code: Select all
    Default config is gtk2-unicode-3.0

  Default config will be used for output
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 » Sun Feb 07, 2016 9:23 pm

Sorry I meant to ask for this as well:
Code: Select all
wx-config --version


lineinthesand wrote:./configure --prefix=/home/user/usr

is that the exact configure command that you are using to compile Audacity?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45101
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 » Mon Feb 08, 2016 6:43 pm

Yes, I'm planning to install it in my home directory.
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 » Tue Feb 09, 2016 12:24 pm

What did wx-config --version give you?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45101
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 » Tue Feb 09, 2016 8:22 pm

It gives a straight 3.0.2.
lineinthesand
 
Posts: 9
Joined: Sat Feb 06, 2016 8:07 pm
Operating System: GNU/Linux other

PreviousNext

Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 4 guests