View Issue Details

IDProjectCategoryView StatusLast Update
0005019ardourbugspublic2020-04-19 20:16
Reporterd13b Assigned Topaul  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSVN/2.0-ongoing 
Summary0005019: compile fails - missing includes ?
Descriptionhello!

trying to compile ardour 2 from svn (Revision 13043) with vst support, compile fails at:

--------------------------------------------------------------------------
g++ -o libs/pbd/command.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"libpbd\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -DHAVE_EXECINFO -DHAVE_LV2 -DHAVE_NEW_LILV -DHAVE_SUIL -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DUSE_XMMINTRIN -march=i686 -m32 -DBUILD_SSE_OPTIMIZATIONS -Wall -DHAVE_LIBLO -DPROGRAM_NAME=\"Ardour\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -Ilibs -DENABLE_NLS -DHAVE_GETMNTENT -pthread -DWINE_THREAD_SUPPORT -fPIC -I/usr/include/glib-2.0 -Ilibs/sigc++2 -Ilibs/glibmm2 -Ilibs/pbd -I/usr/include/libxml2 -I/usr/lib/i386-linux-gnu/glib-2.0/include -Ilibs/fst libs/pbd/command.cc
g++ -o libs/pbd/base_ui.os -c -Woverloaded-virtual -DGTK_NEW_TOOLTIP_API -DPACKAGE=\"libpbd\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -DHAVE_EXECINFO -DHAVE_LV2 -DHAVE_NEW_LILV -DHAVE_SUIL -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -pipe -DARCH_X86 -mmmx -march=i686 -msse -mfpmath=sse -DUSE_XMMINTRIN -march=i686 -m32 -DBUILD_SSE_OPTIMIZATIONS -Wall -DHAVE_LIBLO -DPROGRAM_NAME=\"Ardour\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -Ilibs -DENABLE_NLS -DHAVE_GETMNTENT -pthread -DWINE_THREAD_SUPPORT -fPIC -I/usr/include/glib-2.0 -Ilibs/sigc++2 -Ilibs/glibmm2 -Ilibs/pbd -I/usr/include/libxml2 -I/usr/lib/i386-linux-gnu/glib-2.0/include -Ilibs/fst libs/pbd/base_ui.cc
In file included from libs/pbd/pbd/id.h:26:0,
                 from libs/pbd/pbd/stateful.h:24,
                 from libs/pbd/pbd/statefuldestructible.h:23,
                 from libs/pbd/pbd/command.h:23,
                 from libs/pbd/command.cc:20:
libs/glibmm2/glibmm/thread.h:149:25: error: variable or field 'thread_init' declared void
libs/glibmm2/glibmm/thread.h:149:25: error: 'GThreadFunctions' was not declared in this scope
libs/glibmm2/glibmm/thread.h:149:43: error: 'vtable' was not declared in this scope
libs/glibmm2/glibmm/thread.h:310:11: error: field 'gobject_' has incomplete type
libs/glibmm2/glibmm/thread.h: In member function 'GThread* Glib::Thread::gobj()':
libs/glibmm2/glibmm/thread.h:306:41: error: 'gobject_' was not declared in this scope
libs/glibmm2/glibmm/thread.h: In member function 'const GThread* Glib::Thread::gobj() const':
libs/glibmm2/glibmm/thread.h:307:41: error: 'gobject_' was not declared in this scope
libs/glibmm2/glibmm/thread.h: At global scope:
libs/glibmm2/glibmm/thread.h:354:3: error: 'GStaticMutex' does not name a type
libs/glibmm2/glibmm/thread.h:358:3: error: 'GStaticMutex' does not name a type
libs/glibmm2/glibmm/thread.h:470:3: error: 'GStaticRecMutex' does not name a type
libs/glibmm2/glibmm/thread.h:474:3: error: 'GStaticRecMutex' does not name a type
libs/glibmm2/glibmm/thread.h:539:3: error: 'GStaticRWLock' does not name a type
libs/glibmm2/glibmm/thread.h:543:3: error: 'GStaticRWLock' does not name a type
libs/glibmm2/glibmm/thread.h:722:3: error: 'GStaticPrivate' does not name a type
libs/glibmm2/glibmm/thread.h:726:3: error: 'GStaticPrivate' does not name a type
libs/glibmm2/glibmm/thread.h:773:18: error: variable or field 'thread_init' declared void
libs/glibmm2/glibmm/thread.h:773:18: error: 'GThreadFunctions' was not declared in this scope
libs/glibmm2/glibmm/thread.h:773:36: error: 'vtable' was not declared in this scope
libs/glibmm2/glibmm/thread.h: In function 'bool Glib::thread_supported()':
libs/glibmm2/glibmm/thread.h:783:30: error: 'g_thread_supported' was not declared in this scope
libs/glibmm2/glibmm/thread.h: In member function 'T* Glib::StaticPrivate<T>::get()':
libs/glibmm2/glibmm/thread.h:1039:48: error: 'gobject_' was not declared in this scope
libs/glibmm2/glibmm/thread.h:1039:56: error: there are no arguments to 'g_static_private_get' that depend on a template parameter, so a declaration of 'g_static_private_get' must be available [-fpermissive]
libs/glibmm2/glibmm/thread.h:1039:56: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
libs/glibmm2/glibmm/thread.h: In member function 'void Glib::StaticPrivate<T>::set(T*, Glib::StaticPrivate<T>::DestroyNotifyFunc)':
libs/glibmm2/glibmm/thread.h:1045:25: error: 'gobject_' was not declared in this scope
libs/glibmm2/glibmm/thread.h: In constructor 'Glib::Private<T>::Private(Glib::Private<T>::DestructorFunc)':
libs/glibmm2/glibmm/thread.h:1061:42: error: there are no arguments to 'g_private_new' that depend on a template parameter, so a declaration of 'g_private_new' must be available [-fpermissive]
scons: *** [libs/pbd/command.os] Error 1
scons: building terminated because of errors.
Command exited with non-zero status 2

--------------------------------------------------------------------------

when i add
#include <glib.h>
to
libs/glibmm2/glibmm/thread.h
and
libs/glibmm2/glibmm/convert.cc
compile is successful and ardour runs without problems.


Additional Informationmy system:
debian unstable

compile switches: LIBLO=1 AUBIO=1 FREESOUND=1 SURFACES=1 FPU_OPTIMIZATION=1 AUBIO=1 WIIMOTE=1 FFT_ANALYSIS=1 TRANZPORT=1 SLV2=1 VST=1

gcc version 4.7.1 (Debian 4.7.1-5)
wine 1.4.1-2
libglib2.0-0:i386 2.32.3-1
TagsNo tags attached.

Activities

paul

2012-07-17 12:26

administrator   ~0013897

this is a known issue with ardour 2.X. it will build if you use SYSLIBS=1. the versions of various GTKmm related libraries included in the source tree are too old to build against current GTK/Glib.

d13b

2012-07-18 09:22

reporter   ~0013903

Yes, thank you.
compiling with "SYSLIBS=1" fixes the problem for me.

paul

2012-07-20 00:31

administrator   ~0013906

see notes

system

2020-04-19 20:16

developer   ~0023121

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2012-07-16 17:21 d13b New Issue
2012-07-17 12:26 paul Note Added: 0013897
2012-07-18 09:22 d13b Note Added: 0013903
2012-07-20 00:31 paul cost => 0.00
2012-07-20 00:31 paul Note Added: 0013906
2012-07-20 00:31 paul Status new => resolved
2012-07-20 00:31 paul Resolution open => fixed
2012-07-20 00:31 paul Assigned To => paul
2020-04-19 20:16 system Note Added: 0023121
2020-04-19 20:16 system Status resolved => closed