Greetings!
I am trying to compile the current version of Audacity on a “fairly clean” Debian 8.9 (Jessie) system. I have followed all the guides I can find (including the forum post Building Audacity 2.2.0 on Ubuntu 17.04 (Zesty). I have installed build-essential, and performed
sudo apt-get build-dep audacity
I am pretty sure I have all the dependencies and prerequisite packages installed.
The problem I am encountering is this:
/bin/bash ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"FileDialog\" -DPACKAGE_TARNAME=\"FileDialog\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"FileDialog\ 1.0\" -DPACKAGE_BUGREPORT=\"feedback@audacityteam.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"FileDialog\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_GTK=1 -I. -I../../../lib-src/FileDialog -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Wno-deprecated-declarations -I/usr/include/gtk-3.0 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/include/gtk-3.0 -g -O2 -DwxDEBUG_LEVEL=0 -MT gtk/libFileDialog_la-FileDialogPrivate.lo -MD -MP -MF gtk/.deps/libFileDialog_la-FileDialogPrivate.Tpo -c -o gtk/libFileDialog_la-FileDialogPrivate.lo `test -f 'gtk/FileDialogPrivate.cpp' || echo '../../../lib-src/FileDialog/'`gtk/FileDialogPrivate.cpp
libtool: compile: g++ -DPACKAGE_NAME=\"FileDialog\" -DPACKAGE_TARNAME=\"FileDialog\" -DPACKAGE_VERSION=\"1.0\" "-DPACKAGE_STRING=\"FileDialog 1.0\"" -DPACKAGE_BUGREPORT=\"feedback@audacityteam.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"FileDialog\" -DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_GTK=1 -I. -I../../../lib-src/FileDialog -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Wno-deprecated-declarations -I/usr/include/gtk-3.0 -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/include/gtk-3.0 -g -O2 -DwxDEBUG_LEVEL=0 -MT gtk/libFileDialog_la-FileDialogPrivate.lo -MD -MP -MF gtk/.deps/libFileDialog_la-FileDialogPrivate.Tpo -c ../../../lib-src/FileDialog/gtk/FileDialogPrivate.cpp -o gtk/libFileDialog_la-FileDialogPrivate.o
In file included from /usr/include/gtk-3.0/gdk/gdk.h:30:0,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../../../lib-src/FileDialog/gtk/FileDialogPrivate.cpp:12:
/usr/include/gtk-3.0/gdk/gdkconfig.h:13:18: fatal error: glib.h: No such file or directory
#include <glib.h>
^
compilation terminated.
Makefile:585: recipe for target 'gtk/libFileDialog_la-FileDialogPrivate.lo' failed
make[2]: *** [gtk/libFileDialog_la-FileDialogPrivate.lo] Error 1
make[2]: Leaving directory '/home/dklann/src/audacity-minsrc-2.2.0/build/lib-src/FileDialog'
Makefile:1013: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dklann/src/audacity-minsrc-2.2.0/build/lib-src'
Makefile:808: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
I have successfully compiled and run the same code on a (fairly “messy”, but current) Arch Linux system.
I have also attached config.log for reference. I would very much appreciate your thoughts on why FileDialogPrivate.cpp will not compile on the Debian system.
Thanks in much advance!
~David Klann
config.log (90.2 KB)