Compilation error trying to compile Drumgizmo Git code

Moderators: MattKingUSA, khz, muldjord, deva

Post Reply
corrados
Established Member
Posts: 39
Joined: Sat Jan 02, 2021 4:01 pm

Compilation error trying to compile Drumgizmo Git code

Post by corrados »

I tried to compile the current Git code of Drumgizmo but the compilation fails when entering the plugingui with the error "/bin/bash: --package-name: Befehl nicht gefunden". It seems that the call to the actual tool is missing. Does anybody have an idea what could be the cause of the issue?

Here are the details:

Ubuntu 20.04.1 LTS
build-essential: 12.8ubuntu1.1
autoconf: 2.69-11.1
automake: 1:1.16.1-4ubuntu6
libtool: 2.4.6-14
lv2-dev: 1.16.0-1
xorg-dev: 1:7.7+19ubuntu14
libsndfile1-dev: 1.0.28-7
libjack-dev: 1:0.125.0-3build2
libsmf-dev: 1.3-2ubuntu4
libasound2-dev: 1.2.2-2.1ubuntu2.3


These are the commands I used:

git clone http://git.drumgizmo.org/drumgizmo.git
git submodule init
git submodule update
./autogen.sh
./configure --prefix=$PWD/install --with-lv2dir=$HOME/.lv2 --enable-lv2 --disable-cli
make


This is the autogen output:

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-unsupported
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --force --warnings=no-unsupported
autoreconf: running: /usr/bin/autoheader --force --warnings=no-unsupported
autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-unsupported
configure.ac:9: installing './compile'
configure.ac:12: installing './config.guess'
configure.ac:12: installing './config.sub'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
Makefile.am: installing './INSTALL'
drumgizmo/Makefile.am: installing './depcomp'
plugin/vst/Makefile.am:6: warning: ':='-style assignments are not portable
plugin/vst/Makefile.am:6: warning: filter-out -Werror -Wall ,$(CXXFLAGS: non-POSIX variable name
plugin/vst/Makefile.am:6: (probably a GNU make extension)
plugin/vst/Makefile.am:6: warning: 'CXXFLAGS' is a user variable, you should not override it;
plugin/vst/Makefile.am:6: use 'AM_CXXFLAGS' instead
parallel-tests: installing './test-driver'
autoreconf: Leaving directory `.'


This is the configure output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU Objective C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether make supports nested variables... (cached) yes
checking whether CXX supports -std=c++11... yes
checking whether 'override' and 'final' keywords are supported... yes
checking whether CXX supports -ffloat-store... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether linker supports '-Wl,-no-undefined'... no
checking whether linker supports '-Wl,-undefined,error'... yes
*** Building with nls support!
checking for xgettext... no
checking for msgmerge... no
checking for msgfmt... no
Auto setting gui based on host: linux-gnu
Setting gui backend to X11
checking for X11... yes
checking for XEXT... yes
checking for LV2... yes
checking for dlfcn.h... (cached) yes
checking for dlopen in -lc... no
checking for dlopen in -ldl... yes
*** VST plugin will not be compiled ***
*** Command line interface disabled per user request ***
checking for SNDFILE... yes
checking for main in -lrt... yes
checking for main in -latomic... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_mutex_init in -lpthread... yes
Auto setting sse level
checking for sse3 instructions... yes
checking for sse2 instructions... yes
checking for sse instructions... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tools/Makefile
config.status: creating src/Makefile
config.status: creating plugin/Makefile
config.status: creating plugin/vst/Makefile
config.status: creating plugingui/Makefile
config.status: creating plugingui/locale/Makefile
config.status: creating man/Makefile
config.status: creating test/Makefile
config.status: creating test/dgreftest/Makefile
config.status: creating test/uitests/Makefile
config.status: creating drumgizmo/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands


And this is the make output:

make all-recursive
make[1]: Verzeichnis „/home/corrados/TMP/drumgizmo“ wird betreten
Making all in tools
make[2]: Verzeichnis „/home/corrados/TMP/drumgizmo/tools“ wird betreten
make[2]: Für das Ziel „all“ ist nichts zu tun.
make[2]: Verzeichnis „/home/corrados/TMP/drumgizmo/tools“ wird verlassen
Making all in src
make[2]: Verzeichnis „/home/corrados/TMP/drumgizmo/src“ wird betreten
CXX libdg_la-audiocachefile.lo
CXX libdg_la-audiocache.lo
CXX libdg_la-audiocacheeventhandler.lo
CXX libdg_la-audiocacheidmanager.lo
CXX libdg_la-audioinputenginemidi.lo
CXX libdg_la-audiofile.lo
CXX libdg_la-bytesizeparser.lo
CXX libdg_la-channel.lo
CXX libdg_la-channelmixer.lo
CXX libdg_la-configfile.lo
CXX libdg_la-configparser.lo
CXX libdg_la-directory.lo
CXX libdg_la-domloader.lo
CXX libdg_la-dgxmlparser.lo
CXX libdg_la-drumgizmo.lo
CXX libdg_la-drumgizmoconf.lo
CXX libdg_la-drumkit.lo
CXX libdg_la-drumkitloader.lo
CXX libdg_la-events.lo
CXX libdg_la-events_ds.lo
CXX libdg_la-inputprocessor.lo
CXX libdg_la-instrument.lo
CXX libdg_la-latencyfilter.lo
CXX libdg_la-midimapparser.lo
CXX libdg_la-midimapper.lo
CXX libdg_la-path.lo
CXX libdg_la-powerlist.lo
CXX libdg_la-powermap.lo
CXX libdg_la-powermapfilter.lo
CXX libdg_la-random.lo
CXX libdg_la-sample.lo
CXX libdg_la-sample_selection.lo
CXX libdg_la-sem.lo
CXX libdg_la-staminafilter.lo
CXX libdg_la-thread.lo
CXX libdg_la-velocityfilter.lo
CXX libdg_la-versionstr.lo
CXX libzr_la-zrwrapper.lo
CXX libzr_la-resampler.lo
CXX libzr_la-resampler-table.lo
CXXLD libzr.la
CXX libpugi_la-pugixml.lo
CXXLD libpugi.la
CXXLD libdg.la
CXX libnls_la-translation.lo
CXXLD libnls.la
make[2]: Verzeichnis „/home/corrados/TMP/drumgizmo/src“ wird verlassen
Making all in plugingui
make[2]: Verzeichnis „/home/corrados/TMP/drumgizmo/plugingui“ wird betreten
CXX rcgen-rcgen.o
CXXLD rcgen
(cd ../plugingui/; --package-name "drumgizmo" --package-version "0.9.19" --copyright-holder="DrumGizmo Team" -k_ -o locale/drumgizmo.pot abouttab.cc bleedcontrolframecontent.cc button.cc button_base.cc checkbox.cc colour.cc combobox.cc dialog.cc diskstreamingframecontent.cc drumkitframecontent.cc drumkittab.cc eventhandler.cc filebrowser.cc font.cc frame.cc helpbutton.cc humanizerframecontent.cc humaniservisualiser.cc image.cc imagecache.cc knob.cc label.cc layout.cc led.cc lineedit.cc listbox.cc listboxbasic.cc listboxthin.cc maintab.cc mainwindow.cc painter.cc pixelbuffer.cc pluginconfig.cc powerbutton.cc powerwidget.cc progressbar.cc resamplingframecontent.cc resource.cc sampleselectionframecontent.cc scrollbar.cc slider.cc stackedwidget.cc statusframecontent.cc tabbutton.cc tabwidget.cc textedit.cc texture.cc texturedbox.cc timingframecontent.cc toggle.cc tooltip.cc uitranslation.cc utf8.cc verticalline.cc visualizerframecontent.cc voicelimitframecontent.cc widget.cc window.cc abouttab.h bleedcontrolframecontent.h button.h button_base.h canvas.h checkbox.h colour.h combobox.h dialog.h diskstreamingframecontent.h drawable.h drumkitframecontent.h drumkittab.h eventhandler.h filebrowser.h font.h frame.h guievent.h helpbutton.h humaniservisualiser.h humanizerframecontent.h image.h imagecache.h knob.h label.h labeledcontrol.h layout.h led.h lineedit.h listbox.h listboxbasic.h listboxthin.h maintab.h mainwindow.h nativewindow.h nativewindow_cocoa.h nativewindow_cocoa.mm nativewindow_pugl.h nativewindow_pugl.cc nativewindow_win32.h nativewindow_win32.cc nativewindow_x11.h nativewindow_x11.cc painter.h pixelbuffer.h pluginconfig.h powerbutton.h powerwidget.h progressbar.h resamplingframecontent.h resource.h resource_data.h sampleselectionframecontent.h scrollbar.h slider.h stackedwidget.h statusframecontent.h tabbutton.h tabwidget.h textedit.h texture.h texturedbox.h timingframecontent.h toggle.h tooltip.h uitranslation.h utf8.h verticalline.h visualizerframecontent.h voicelimitframecontent.h widget.h window.h )
/bin/bash: --package-name: Befehl nicht gefunden
make[2]: *** [Makefile:2043: ../plugingui/locale/drumgizmo.pot] Fehler 127
make[2]: Verzeichnis „/home/corrados/TMP/drumgizmo/plugingui“ wird verlassen
make[1]: *** [Makefile:471: all-recursive] Fehler 1
make[1]: Verzeichnis „/home/corrados/TMP/drumgizmo“ wird verlassen
make: *** [Makefile:403: all] Fehler 2
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

Re: Compilation error trying to compile Drumgizmo Git code

Post by deva »

corrados wrote: Sun Jan 31, 2021 11:22 am *** Building with nls support!
checking for xgettext... no
checking for msgmerge... no
checking for msgfmt... no
I guess this is the problem. Configure should actually fail, so that is a bug in the configure script.
You can fix this locally by either running configure with the --without-nls option (it currently only support French anyway) or by installing the gettext tools.

Thanks for reporting :-)
corrados
Established Member
Posts: 39
Joined: Sat Jan 02, 2021 4:01 pm

Re: Compilation error trying to compile Drumgizmo Git code

Post by corrados »

Thank you for your quick support. I tried the --without-nls option which got me a bit further. Unfortunately, I still get a compilation error:

CXX plugingui-testmain.o
CC plugingui-hugin.o
CXX libdggui_la-abouttab.lo
abouttab.cc: In function ‘std::string {anonymous}::getLocalizedFile(const string&)’:
abouttab.cc:38:18: error: ‘Translation’ has not been declared
38 | auto language = Translation::getISO639LanguageName();
| ^~~~~~~~~~~
make[4]: *** [Makefile:1058: libdggui_la-abouttab.lo] Fehler 1
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

Re: Compilation error trying to compile Drumgizmo Git code

Post by deva »

corrados wrote: Sun Jan 31, 2021 1:10 pm Thank you for your quick support. I tried the --without-nls option which got me a bit further. Unfortunately, I still get a compilation error:

CXX plugingui-testmain.o
CC plugingui-hugin.o
CXX libdggui_la-abouttab.lo
abouttab.cc: In function ‘std::string {anonymous}::getLocalizedFile(const string&)’:
abouttab.cc:38:18: error: ‘Translation’ has not been declared
38 | auto language = Translation::getISO639LanguageName();
| ^~~~~~~~~~~
make[4]: *** [Makefile:1058: libdggui_la-abouttab.lo] Fehler 1
Oups. It looks like I haven't tried compiling with nls diabled in a while... :p

I have just pushed as fix to the develop branch.

EDIT: I just realized that bug that configure did not report an error when not finding gettext has already been fixed on the develop branch as well.
corrados
Established Member
Posts: 39
Joined: Sat Jan 02, 2021 4:01 pm

Re: Compilation error trying to compile Drumgizmo Git code

Post by corrados »

Sorry to bother you again... Here is the next issue:

CXX libdggui_la-image.lo
image.cc:37:10: fatal error: lodepng/lodepng.h: Datei oder Verzeichnis nicht gefunden
37 | #include "lodepng/lodepng.h"
| ^~~~~~~~~~~~~~~~~~~
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

Re: Compilation error trying to compile Drumgizmo Git code

Post by deva »

Looks like the sub-modules are not correctly initialised? Did you run

Code: Select all

git submodule init
git submodule update
again after changing to the develop branch?
corrados
Established Member
Posts: 39
Joined: Sat Jan 02, 2021 4:01 pm

Re: Compilation error trying to compile Drumgizmo Git code

Post by corrados »

My fault. You were right, I did not update the submodules. Now it compiles fine. Thank you! :-)
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

Re: Compilation error trying to compile Drumgizmo Git code

Post by deva »

Great :-)
Post Reply