<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} P{margin-top:0;margin-bottom:0;}--></style>
</head>
<body dir="ltr" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:'Courier New',monospace;">
<p>:-) Hey Paul</p>
<p><br>
</p>
<p>thanks for the quick response.<br>
</p>
<p><br>
</p>
<p>ok cool.. Yes, vers 3.5.403 is what's "current" in Gentoo (fyi).</p>
<p>When a user runs "emerge ardour" that's what installs.<br>
</p>
<p>vers 4.7 is the reason i'm looking to fork from github & compile instead.</p>
<p><br>
</p>
<p>For what it's worth, I could not successfully compile on linux.</p>
<p>As per my previous post, it dies at:</p>
<p><br>
</p>
<p>[ 47/811] cxx: libs/lua/luastate.cc -> build/libs/lua/luastate.cc.1.o</p>
<p><br>
</p>
<p><br>
</p>
<p>However! this following hack got it Ardour to compile:</p>
<p><br>
</p>
<p> $ git diff wscript<br>
diff --git a/wscript b/wscript<br>
index 926e6fe..fef8b18 100644<br>
--- a/wscript<br>
+++ b/wscript<br>
@@ -438,6 +438,13 @@ int main() { return 0; }''',<br>
             # determine processor flags via /proc/cpuinfo<br>
             #<br>
<br>
+            #<br>
+            # HACK<br>
+            # add cxx_flags.append('-std=c++11') anyway<br>
+            # [ben 20Apr16]<br>
+            ## cxx_flags.append('-std=c++11')<br>
+            compiler_flags.append('-std=c++11')<br>
+<br>
             if conf.env['build_target'] != 'i386':<br>
<br>
                 flag_line = os.popen ("cat /proc/cpuinfo | grep '^flags'").read()[:-1]<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>I won't be checking this in. It's just a HACK. I just wanted to see if it would</p>
<p>produce a successful compile. It did. It simply added the compile flag '-std=c++11'.</p>
<p><br>
</p>
<p>hope that's useful info?</p>
<p><br>
</p>
<p>cheers,</p>
<p>ben.<br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Paul Davis <paul@linuxaudiosystems.com><br>
<b>Sent:</b> 20 April 2016 14:28<br>
<b>To:</b> Ben Simons<br>
<b>Cc:</b> ardour-dev@lists.ardour.org<br>
<b>Subject:</b> Re: [Ardour-Dev] g++ version and -std=c++11 ?</font>
<div> </div>
</div>
<div>
<div dir="ltr">Oh, and please don't ever use the 3.5.403 version. We're at 4.7 for a reason (or many, many reasons to be more precise).<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Apr 20, 2016 at 12:24 AM, Paul Davis <span dir="ltr">
<<a href="mailto:paul@linuxaudiosystems.com" target="_blank">paul@linuxaudiosystems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div>You're using a version of libsigc++ which is different from the one we use. You can find the full list of dependencies used for nightly builds and for releases at
<a href="http://nightly.ardour.org/" target="_blank">http://nightly.ardour.org/</a><br>
<br>
</div>
Ardour is *not* written in C++11. We use a variety of compilers (gcc4, gcc5, clang, apple gcc).
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Wed, Apr 20, 2016 at 12:13 AM, Ben Simons <span dir="ltr"><<a href="mailto:Ben.Simons@uts.edu.au" target="_blank">Ben.Simons@uts.edu.au</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr" style="font-size:10pt; color:#000000; background-color:#ffffff; font-family:'Courier New',monospace">
<div dir="ltr" style="font-size:10pt; color:#000000; background-color:#ffffff; font-family:'Courier New',monospace">
<div>
<p>Hi,</p>
<p><br>
</p>
<p><em>first timer here. I looked around for about an hour before asking this.</em></p>
<p><em>Can't see it discussed anywhere.</em></p>
<p><br>
<em></em></p>
<p><br>
</p>
<p>What version of gcc is used to build Ardour on linux?</p>
<p><br>
</p>
<p>I've just tried compiling a version forked on github today.</p>
<p>This system is: 4.1.12-gentoo</p>
<p># gcc-config -l</p>
<p> [1] x86_64-pc-linux-gnu-4.9.3 *<br>
</p>
<p><br>
</p>
<p>It seems the latest source uses C++11, but there's missing "-std=c++11" in</p>
<p>the Makefiles. I believe I have done an "emerge" of media-sound/ardour-3.5.403</p>
<p>on gentoo in the past on another machine, and it built ok with gcc 4.8.4</p>
<p><br>
</p>
<p>I just ssh to my old machine and tested ardour3 and see this in the shell.</p>
<blockquote> $ ardour3<br>
bnd txt domain [gtk2_ardour3] to /usr/share/locale<br>
Ardour3.5.403 (built using 3.5-403-gentoo and GCC version 4.8.4)<br>
ardour: [INFO]: Your system is configured to limit Ardour to only 4096 open files<br>
ardour: [INFO]: Loading system configuration file /etc/ardour3/ardour_system.rc<br>
Loading user configuration file /home/ben/.config/ardour3/ardour.rc<br>
No H/W specific optimizations in use<br>
ardour: [INFO]: Loading default ui configuration file /etc/ardour3/ardour3_ui_default.conf<br>
Loading ui configuration file /etc/ardour3/ardour3_ui_dark.rc<br>
Found nothing along /home/ben/.config/ardour3/templates:/usr/share/ardour3/templates<br>
run dialog<br>
Announcement is: Version 4.7 has been released. Update at <a href="http://ardour.org/download" target="_blank">
http://ardour.org/download</a><br>
<br>
</blockquote>
So that works. But that was a gentoo emerge.<br>
<br>
When i clone my fork on github and run ./waf to build i get this error:<br>
<br>
<blockquote>:<br>
:<br>
[ 39/811] cxx: libs/vamp-plugins/TruePeak.cpp -> build/libs/vamp-plugins/TruePeak.cpp.1.o<br>
[ 40/811] cxx: libs/vamp-plugins/ZeroCrossing.cpp -> build/libs/vamp-plugins/ZeroCrossing.cpp.1.o<br>
[ 41/811] cxx: libs/vamp-plugins/Onset.cpp -> build/libs/vamp-plugins/Onset.cpp.1.o<br>
[ 42/811] c: libs/libltc/ltc.c -> build/libs/libltc/ltc.c.2.o<br>
[ 43/811] c: libs/libltc/timecode.c -> build/libs/libltc/timecode.c.2.o<br>
[ 44/811] c: libs/libltc/encoder.c -> build/libs/libltc/encoder.c.2.o<br>
[ 45/811] c: libs/libltc/decoder.c -> build/libs/libltc/decoder.c.2.o<br>
[ 46/811] cxx: libs/lua/lua.cc -> build/libs/lua/lua.cc.1.o<br>
[ 47/811] cxx: libs/lua/luastate.cc -> build/libs/lua/luastate.cc.1.o<br>
In file included from /usr/include/sigc++-2.0/sigc++/signal_base.h:26:0,<br>
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,<br>
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,<br>
                 from ../libs/lua/lua/luastate.h:23,<br>
                 from ../libs/lua/luastate.cc:20:<br>
/usr/include/sigc++-2.0/sigc++/trackable.h:40:3: warning: identifier 'noexcept' is a keyword in C++11 [-Wc++0x-compat]<br>
   trackable_callback(void* data, func_destroy_notify func) noexcept<br>
   ^<br>
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/type_traits:35:0,<br>
                 from /usr/include/sigc++-2.0/sigc++/visit_each.h:22,<br>
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:6,<br>
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,<br>
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,<br>
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:86,<br>
                 from ../libs/lua/lua/luastate.h:23,<br>
                 from ../libs/lua/luastate.cc:20:<br>
<strong>/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11
 or -std=gnu++11 compiler options.</strong><br>
 #error This file requires compiler and library support for the \<br>
  ^<br>
</blockquote>
<p><br>
</p>
<p>Note the error (marked in <strong>bold</strong>) at the end regarding -std=c++11</p>
<p><br>
</p>
<p>It's tempting to just export CXXFLAGS="-std=c++11", but no doubt that's a bad idea(tm)!</p>
<p>i have a feeling there's something more fundamentally wrong? There's many many warnings</p>
<p>and errors. That was just the first one.</p>
<p><br>
</p>
<p>Sorry to ask about gcc version. I see someone on the list did ask it a while ago</p>
<p>and no one answered. (ie. Valerio Orlandini on Fri Jun 4 08:08:10 PDT 2010)</p>
<p><br>
</p>
<p>thanks,</p>
<p>ben.</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>PS. If it helps, here's the output from ./waf configure</p>
<p><br>
</p>
<p><strong>/da/dev/ben/ardour $</strong> ./waf configure<br>
Setting top to                           : /mnt/da/dev/ben/ardour <br>
Setting out to                           : /mnt/da/dev/ben/ardour/build <br>
Checking for 'gcc' (c compiler)          : /usr/bin/gcc <br>
Checking for 'g++' (c++ compiler)        : /usr/bin/g++ <br>
<br>
Global Configuration <br>
 * Install prefix                                    : /usr/local <br>
 * Debuggable build                                  : True <br>
 * Build documentation                               : False <br>
<br>
Ardour Configuration <br>
 * Will build against private GTK dependency stack   : no <br>
 * Will rely on libintl built into libc              : yes <br>
 * Will build against private Ardour dependency stack : no <br>
Checking for function dlopen                         : yes <br>
Checking for boost library >= 1.39                   : ok <br>
Checking for program pkg-config                      : /usr/bin/pkg-config <br>
Checking for 'alsa'                                  : yes <br>
Checking for 'glib-2.0' >= 2.28                      : yes <br>
Checking for 'gthread-2.0' >= 2.2                    : yes <br>
Checking for 'glibmm-2.4' >= 2.32.0                  : yes <br>
Checking for 'sndfile' >= 1.0.18                     : yes <br>
Checking for 'giomm-2.4' >= 2.2                      : yes <br>
Checking for 'libcurl' >= 7.0.0                      : yes <br>
Checking for 'liblo' >= 0.26                         : yes <br>
Checking for 'taglib' >= 1.6                         : yes <br>
Checking for 'vamp-sdk' >= 2.1                       : yes <br>
Checking for 'vamp-hostsdk' >= 2.1                   : yes <br>
Checking for 'rubberband'                            : yes <br>
Checking for  sndfile RF64=>RIFF support             : Found <br>
Checking for clang                                   : no <br>
Checking for 'fftw3f'                                : yes <br>
Checking for 'aubio' >= 0.3.2                        : yes <br>
Checking for 'aubio' >= 0.4.0                        : yes <br>
Checking for 'libxml-2.0'                            : yes <br>
Checking for 'sigc++-2.0' >= 2.0                     : yes <br>
Checking for function getmntent                      : yes <br>
Checking for header execinfo.h                       : yes <br>
Checking for header unistd.h                         : yes <br>
Checking for function posix_memalign                 : yes <br>
Checking for function localtime_r                    : yes <br>
Checking for header boost/shared_ptr.hpp             : yes <br>
Checking for header boost/weak_ptr.hpp               : yes <br>
Checking for 'cppunit' >= 1.12.0                     : yes <br>
Checking for header boost/shared_ptr.hpp             : yes <br>
Checking for header boost/weak_ptr.hpp               : yes <br>
Checking for header boost/shared_ptr.hpp             : yes <br>
Checking for header boost/weak_ptr.hpp               : yes <br>
Checking for header cwiid.h                          : not found <br>
You are missing the cwiid headers needed to compile wiimote support<br>
Checking for 'jack' >= 0.121.0                       : yes <br>
Checking for JACK metadata API                       : not found (or broken). JACK metadata API will not be used
<br>
Checking for program gas,as,gcc                      : /usr/bin/as <br>
Checking for 'lrdf' >= 0.4.0                         : yes <br>
Checking for 'samplerate' >= 0.1.0                   : yes <br>
Checking for 'lv2' >= 1.0.0                          : yes <br>
Checking for 'lv2' >= 1.2.0                          : yes <br>
Checking for 'lv2' >= 1.10.0                         : yes <br>
Checking for 'serd-0' >= 0.14.0                      : yes <br>
Checking for 'sord-0' >= 0.8.0                       : yes <br>
Checking for 'sratom-0' >= 0.2.0                     : yes <br>
Checking for 'lilv-0' >= 0.14.0                      : yes <br>
Checking for 'lilv-0' >= 0.16.0                      : yes <br>
Checking for 'lilv-0' >= 0.19.2                      : yes <br>
Checking for 'lilv-0' >= 0.21.3                      : not found <br>
Checking for 'suil-0' >= 0.6.0                       : not found <br>
Checking for 'ogg' >= 1.1.2                          : yes <br>
Checking for 'flac' >= 1.2.1                         : yes <br>
Checking for header sys/vfs.h                        : yes <br>
Checking for header sys/statvfs.h                    : yes <br>
Checking for header unistd.h                         : yes <br>
Checking for header boost/shared_ptr.hpp             : yes <br>
Checking for header boost/weak_ptr.hpp               : yes <br>
Checking for header boost/scoped_ptr.hpp             : yes <br>
Checking for header boost/ptr_container/ptr_list.hpp : yes <br>
Checking for 'gtkmm-2.4' >= 2.8                      : yes <br>
Checking for 'gtk+-2.0' >= 2.12.1                    : yes <br>
Checking for 'samplerate' >= 0.1.7                   : yes <br>
Checking for 'fftw3f' >= 3.3.5                       : not found <br>
Checking for header boost/shared_ptr.hpp             : yes <br>
Checking for header boost/format.hpp                 : yes <br>
Checking for 'cairomm-1.0' >= 1.8.4                  : yes <br>
Checking for 'lv2' >= 1.0.0                          : yes <br>
Checking for 'gthread-2.0' >= 2.10.1                 : yes <br>
Checking for 'gtk+-2.0' >= 2.18                      : yes <br>
Checking for 'x11' >= 1.1                            : yes <br>
Checking for 'fontconfig'                            : yes <br>
Checking for header boost/shared_ptr.hpp             : yes <br>
Checking for header boost/weak_ptr.hpp               : yes <br>
session-utils depend on the dummy backend.<br>
 * build session-utils                               : no <br>
Checking for 'dbus-1'                                : yes <br>
Checking for function readline                       : yes <br>
 * Build documentation                               : False <br>
 * Debuggable build                                  : True <br>
 * Export all symbols (backtrace)                    : False <br>
 * Install prefix                                    : /usr/local <br>
 * Strict compiler flags                             : []<br>
 * Internal Shared Libraries                         : True<br>
 * Use External Libraries                            : False<br>
 * Library exports hidden                            : True<br>
 * ALSA DBus Reservation                             : True<br>
 * Architecture flags                                : None<br>
 * Aubio                                             : True<br>
 * AudioUnits                                        : False<br>
 * Free/Demo copy                                    : False<br>
 * Build target                                      : x86_64<br>
 * CoreAudio                                         : False<br>
 * CoreAudio 10.5 compat                             : False<br>
 * Debug RT allocations                              : False<br>
 * Debug Symbols                                     : True<br>
 * Process thread timing                             : False<br>
 * Denormal exceptions                               : False<br>
 * FLAC                                              : True<br>
 * FPU optimization                                  : True<br>
 * Freedesktop files                                 : False<br>
 * Libjack linking                                   : link<br>
 * Libjack metadata                                  : False<br>
 * Lua Binding Doc                                   : False<br>
 * LV2 UI embedding                                  : False<br>
 * LV2 support                                       : True<br>
 * LV2 extensions                                    : True<br>
 * LXVST support                                     : True<br>
 * OGG                                               : True<br>
 * Phone home                                        : True<br>
 * Program name                                      : Ardour<br>
 * Samplerate                                        : True<br>
 * PT format                                         : False<br>
 * PTW32 Semaphore                                   : False<br>
 * Translation                                       : True<br>
 * Unit tests                                        : False<br>
 * Mac i386 Architecture                             : False<br>
 * Mac ppc Architecture                              : False<br>
 * Windows VST support                               : False<br>
 * Wiimote support                                   : False<br>
 * Windows key                                       : Mod4><Super<br>
<br>
Backends:<br>
 * PortAudio Backend                                 : False<br>
 * CoreAudio/Midi Backend                            : False<br>
 * ALSA Backend                                      : False<br>
 * Dummy backend                                     : False<br>
 * JACK Backend                                      : True<br>
<br>
<br>
 * C compiler flags                                  : ['-I/mnt/da/dev/ben/ardour', '-DHAVE_RF64_RIFF', '-DWAF_BUILD', '-g', '-fshow-column', '-DARCH_X86', '-mmmx', '-msse', '-mfpmath=sse', '-DUSE_XMMINTRIN', '-DBUILD_SSE_OPTIMIZATIONS', '-DLXVST_64BIT', '-Wall',
 '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '</p>
<p>-Wno-unused-parameter', '-DBOOST_SYSTEM_NO_DEPRECATED', '-D_ISOC9X_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-DENABLE_NLS', '-DPROGRAM_NAME="Ardour"', u'-DPROGRAM_VERSION="4"', '-Wstrict-prototypes', '-Wmissing-prototypes']<br>
 * C++ compiler flags                                : ['-I/mnt/da/dev/ben/ardour', '-DHAVE_RF64_RIFF', '-DWAF_BUILD', '-g', '-fshow-column', '-DARCH_X86', '-mmmx', '-msse', '-mfpmath=sse', '-DUSE_XMMINTRIN', '-DBUILD_SSE_OPTIMIZATIONS', '-DLXVST_64BIT', '-Wall',
 '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-Wno-unused-parameter', '-DBOOST_SYSTEM_NO_DEPRECATED', '-D_ISOC9X_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-DENABLE_NLS', '-DPROGRAM_NAME="Ardour"', u'-DPROGRAM_VERSION="4"', '-Woverloaded-virtual',
 '-Wno-unused-local-typedefs', '-D__STDC_LIMIT_MACROS', '-D__STDC_FORMAT_MACROS', '-DCANVAS_COMPATIBILITY', '-DCANVAS_DEBUG']<br>
 * Linker flags                                      : ['']<br>
<br>
'configure' finished successfully (3.996s)<br>
<strong>/da/dev/ben/ardour $</strong><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
<div>
<p></p>
<hr>
<font face="arial"><font size="1">UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy
 this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority,
 states them to be the views of the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. Think. Green. Do. Please consider the environment before printing this email.
</font></font>
<p></p>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
ardour-dev mailing list<br>
<a href="mailto:ardour-dev@lists.ardour.org" target="_blank">ardour-dev@lists.ardour.org</a><br>
<a href="http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org" rel="noreferrer" target="_blank">http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

<DIV><P><HR>
<font face="arial"><font size="1">UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain confidential information.
If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or
attachments. If you have received this message in error, please notify the sender immediately and delete
this message. Any views expressed in this message are those of the individual sender, except where the
sender expressly, and with authority, states them to be the views of the University of Technology Sydney.
Before opening any attachments, please check them for viruses and defects.

Think. Green. Do.

Please consider the environment before printing this email.
</font></font>
</P></DIV>
</body>
</html>