dagargo / elektroid

Sample and MIDI device manager
https://dagargo.github.io/elektroid/
GNU General Public License v3.0
223 stars 32 forks source link

Compiling errors in Debian #159

Closed pushing-boulders closed 1 month ago

pushing-boulders commented 1 month ago

Hello dagargo and elektroid team,

I just found this project and am very excited to utilize it to manage my Digitakt II (v. 1.02 Firmware). I was having issues compiling (undefined references to various gtk related items like `g_mutex_unlock') the latest code from GitHub so I downloaded the elektroid-3.0.1 source and was able to successfully compile that version.

When I open the GUI, I am only presented with the Program option:

image

I saw a similar issue, https://github.com/dagargo/elektroid/issues/142, but I am using the default .json. I even tried to re-copy JSON from ./res/elektron/devices.json to no avail. I apologize if I am missing something easy. Any help would be appreciated.

Here is the output from elektroid-cli -vv info 1

DEBUG:backend_alsa.c:363:(backend_get_system_subdevices): Adding hw:1 (name 'Elektron Digitakt II', subname 'Elektron Digitakt II MIDI 1')...
DEBUG:backend.c:367:(backend_init): Initializing backend (ALSA) to 'hw:1,0,0'...
DEBUG:backend_alsa.c:85:(backend_init_int): Setting blocking mode...
DEBUG:backend.c:685:(backend_rx_drain): Draining buffers...
DEBUG:backend.c:454:(backend_rx_raw_loop): Timeout (1000)
DEBUG:backend.c:378:(backend_init): Stopping device...
DEBUG:connector.c:132:(connector_init_backend): Connector elektron matches the device
DEBUG:connector.c:183:(connector_init_backend): Testing elektron connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (13): f0 00 20 3c 10 00 00 00 00 00 00 01 f7
DEBUG:connectors/elektron.c:751:(elektron_tx): Message sent (5): 00 00 00 00 01
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (79): f0 00 20 3c 10 00 04 00 0d 00 00 01 2a 2c 00 01 02 03 05 04 06 07 00 09 50 52 51 10 13 11 00 12 20 21 22 23 28 30 00 31 32 36 40 41 42 46 00 17 18 19 29 53 54 55 00 56 57 58 59 5a 5b 5c 00 5d...
DEBUG:connectors/elektron.c:796:(elektron_rx): Message received (63): 00 0d 00 00 81 2a 2c 01 02 03 05 04 06 07 09 50 52 51 10 13 11 12 20 21 22 23 28 30 31 32 36 40 41 42 46 17 18 19 29 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 44 69 67 69 74 61 6b 74 20 49 49 00
DEBUG:connectors/elektron.c:1850:(elektron_configure_device): Failed to open file “/home/user/.config/elektroid/elektron/devices.json”: No such file or directory
DEBUG:connectors/elektron.c:1856:(elektron_configure_device): Falling back to /usr/local/share/elektroid/elektron/devices.json...
DEBUG:connector.c:183:(connector_init_backend): Testing microbrute connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (6): f0 7e 7f 06 01 f7
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (6): f0 7e 00 7c 00 f7
DEBUG:backend.c:158:(backend_midi_handshake): Illegal SUB-ID2
DEBUG:connector.c:183:(connector_init_backend): Testing phatty connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (6): f0 7e 7f 06 01 f7
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (6): f0 7e 00 7c 00 f7
DEBUG:backend.c:158:(backend_midi_handshake): Illegal SUB-ID2
DEBUG:connector.c:183:(connector_init_backend): Testing summit connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (6): f0 7e 7f 06 01 f7
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (6): f0 7e 00 7c 00 f7
DEBUG:backend.c:158:(backend_midi_handshake): Illegal SUB-ID2
DEBUG:connector.c:183:(connector_init_backend): Testing cz connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (10): f0 44 00 00 70 10 60 70 31 f7
DEBUG:backend.c:454:(backend_rx_raw_loop): Timeout (1000)
DEBUG:connector.c:183:(connector_init_backend): Testing sds connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (6): f0 7e 00 7d 00 f7
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (13): f0 00 20 3c 10 00 00 00 00 00 00 01 f7
DEBUG:connectors/elektron.c:751:(elektron_tx): Message sent (5): 00 00 00 00 01
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (6): f0 7e 00 7c 00 f7
DEBUG:connectors/elektron.c:785:(elektron_rx): Message skipped (6): f0 7e 00 7c 00 f7
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (79): f0 00 20 3c 10 00 04 00 0e 00 00 01 2a 2c 00 01 02 03 05 04 06 07 00 09 50 52 51 10 13 11 00 12 20 21 22 23 28 30 00 31 32 36 40 41 42 46 00 17 18 19 29 53 54 55 00 56 57 58 59 5a 5b 5c 00 5d...
DEBUG:connectors/elektron.c:796:(elektron_rx): Message received (63): 00 0e 00 00 81 2a 2c 01 02 03 05 04 06 07 09 50 52 51 10 13 11 12 20 21 22 23 28 30 31 32 36 40 41 42 46 17 18 19 29 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 44 69 67 69 74 61 6b 74 20 49 49 00
DEBUG:connector.c:183:(connector_init_backend): Testing efactor connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (6): f0 7e 7f 06 01 f7
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (6): f0 7e 00 7c 00 f7
DEBUG:connectors/efactor.c:507:(efactor_handshake): Illegal SUB-ID2
DEBUG:connector.c:183:(connector_init_backend): Testing default connector...
DEBUG:backend_alsa.c:205:(backend_tx_sysex_internal): Raw message sent (6): f0 7e 7f 06 01 f7
DEBUG:backend.c:665:(backend_rx_sysex): Raw message received (6): f0 7e 00 7c 00 f7
DEBUG:backend.c:158:(backend_midi_handshake): Illegal SUB-ID2
DEBUG:connector.c:192:(connector_init_backend): Using default connector...
Type: MIDI
Device name: MIDI device
Device version: 
Device description: 
Connector name: default
Filesystems: program

Thank you again.

pushing-boulders commented 1 month ago

I just read your post here: https://github.com/dagargo/elektroid/issues/158

Simple issue: Version 3.0.1 doesn't support Digitakt II since, now that I look at the release date, says it was from January. Ha!

Let me re-group and post some of the compile errors. I have the latest branch: * master 70a6833 [origin/master] Bump rexml from 3.3.3 to 3.3.6 in /docs.

pushing-boulders commented 1 month ago

I have the latest libraries have been installed on my Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux machine:

automake is already the newest version (1:1.16.5-1.3).
libtool is already the newest version (2.4.7-7~deb12u1).
build-essential is already the newest version (12.9).
libasound2-dev is already the newest version (1.2.8-1+b1).
libgtk-3-dev is already the newest version (3.24.38-2~deb12u1).
libpulse-dev is already the newest version (16.1+dfsg1-2+b1).
libsndfile1-dev is already the newest version (1.2.0-1).
libsamplerate0-dev is already the newest version (0.2.2-3).
autopoint is already the newest version (0.21-12).
gettext is already the newest version (0.21-12).
zlib1g-dev is already the newest version (1:1.2.13.dfsg-1).
libjson-glib-dev is already the newest version (1.6.6-1).
libzip-dev is already the newest version (1.7.3-1+b1).

And here are my make errors:

/home/user/Downloads/git/elektroid/src/progress.c:166: undefined reference to `gtk_widget_set_visible'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:169: undefined reference to `g_thread_new'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:174: undefined reference to `g_get_monotonic_time'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:175: undefined reference to `gtk_window_get_type'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:175: undefined reference to `g_type_check_instance_cast'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:175: undefined reference to `gtk_window_set_title'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:176: undefined reference to `gtk_label_get_type'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:176: undefined reference to `g_type_check_instance_cast'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:176: undefined reference to `gtk_label_set_text'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:178: undefined reference to `gtk_dialog_run'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:190: undefined reference to `gtk_main_iteration'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:188: undefined reference to `gtk_events_pending'
/usr/bin/ld: elektroid-progress.o: in function `progress_join_thread':
/home/user/Downloads/git/elektroid/src/progress.c:37: undefined reference to `g_thread_join'
/usr/bin/ld: elektroid-progress.o: in function `progress_run':
/home/user/Downloads/git/elektroid/src/progress.c:193: undefined reference to `gtk_widget_get_type'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:193: undefined reference to `g_type_check_instance_cast'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:193: undefined reference to `gtk_widget_hide'
/usr/bin/ld: elektroid-progress.o: in function `progress_start_thread_gsourcefunc':
/home/user/Downloads/git/elektroid/src/progress.c:149: undefined reference to `g_timeout_add'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:145: undefined reference to `g_timeout_add'
/usr/bin/ld: elektroid-progress.o: in function `progress_usleep_since':
/home/user/Downloads/git/elektroid/src/progress.c:204: undefined reference to `g_get_monotonic_time'
/usr/bin/ld: elektroid-progress.o: in function `progress_response':
/home/user/Downloads/git/elektroid/src/progress.c:215: undefined reference to `gtk_dialog_get_type'
/usr/bin/ld: /home/user/Downloads/git/elektroid/src/progress.c:215: undefined reference to `g_type_check_instance_cast'
/usr/bin/ld: elektroid-progress.o: in function `progress_stop_running_sysex':
/home/user/Downloads/git/elektroid/src/progress.c:58: undefined reference to `g_mutex_unlock'
/usr/bin/ld: elektroid-progress.o: in function `progress_set_fraction':
/home/user/Downloads/git/elektroid/src/progress.c:71: undefined reference to `gtk_progress_bar_set_fraction'
/usr/bin/ld: elektroid-progress.o: in function `progress_init':
/home/user/Downloads/git/elektroid/src/progress.c:136: undefined reference to `g_signal_connect_data'
/usr/bin/ld: elektroid-progress.o: in function `progress_response':
/home/user/Downloads/git/elektroid/src/progress.c:215: undefined reference to `gtk_dialog_response'
dagargo commented 1 month ago

I've checked a few things and I manage to compile and recompile Elektroid on some devices without issues.

What I find pretty weird is that this does not happen with version 3.0.1.

Could you post here the whole output of the make command? Perhaps there is something in there.

dagargo commented 1 month ago

Same Debian dependencies in my stable system as yours.

pushing-boulders commented 1 month ago

Thank you @dagargo. Fascinating. It is now working for me. I just went to rebuild and when I ran autoreconf --install this was the output:

libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4'

So it seems something new ran that time that didn't the first time. I just re-ran it and the output is empty. I then ran ./configure, make clean, and make. Now everything compiles.

I also just cloned the repository again and it worked on the first time. I'm not sure what was going on.

I appreciate your help with this. Sorry for the goose chase.

The elektroid-cli returns what I think are the appropriate options:

DEBUG:connectors/elektron.c:3313:elektron_configure_device: Using /usr/local/share/elektroid/elektron/devices.json...
DEBUG:connectors/elektron.c:3362:elektron_configure_device: Device 42 found
DEBUG:backend_alsa.c:206:backend_tx_sysex_internal: Raw message sent (13): f0 00 20 3c 10 00 00 00 01 00 00 02 f7
DEBUG:connectors/elektron.c:773:elektron_tx: Message sent (5): 00 01 00 00 02
DEBUG:backend.c:614:backend_rx_sysex: Raw message received (25): f0 00 20 3c 10 00 04 00 0b 00 01 02 30 30 00 33 35 00 31 2e 30 32 00 00 f7
DEBUG:connectors/elektron.c:818:elektron_rx: Message received (15): 00 0b 00 01 82 30 30 33 35 00 31 2e 30 32 00
DEBUG:backend_alsa.c:206:backend_tx_sysex_internal: Raw message sent (13): f0 00 20 3c 10 00 00 00 02 00 00 03 f7
DEBUG:connectors/elektron.c:773:elektron_tx: Message sent (5): 00 02 00 00 03
DEBUG:backend.c:614:backend_rx_sysex: Raw message received (18): f0 00 20 3c 10 00 05 00 0c 00 02 03 51 65 40 4e 71 f7
DEBUG:connectors/elektron.c:818:elektron_rx: Message received (9): 00 0c 00 02 83 51 e5 ce 71
DEBUG:connectors/elektron.c:3509:elektron_handshake: UID: 71cee551
DEBUG:backend.c:776:backend_init_connector: Using elektron connector...
Type: MIDI
Device name: Elektron Digitakt II
Device version: 1.02
Device description: Digitakt II
Connector name: elektron
Filesystems: data (CLI only), project, sample, preset

The GUI appears to be working as expected, too:

image

I appreciate the confirmation and I'm not sure what happened with the original attempts to build. This looks like a great project and I'll be sending a contribution your way later this morning.

Below was a previous make -n output I saved when it wasn't working:

test -f config.h || rm -f stamp-h1
test -f config.h || make  stamp-h1
make  all-recursive
make[1]: Entering directory '/home/user/Downloads/git/elektroid'
fail=; \
if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running_with_option: internal error: invalid" "target option '${target_option-}' specified" >&2; exit 1;; esac; has_opt=no; sane_makeflags=$MAKEFLAGS; if { if test -z '1'; then false; elif test -n 'x86_64-pc-linux-gnu'; then true; elif test -n '4.3' && test -n '/home/user/Downloads/git/elektroid'; then true; else false; fi; }; then sane_makeflags=$MFLAGS; else case $MAKEFLAGS in *\\[\ \    ]*) bs=\\; sane_makeflags=`printf '%s\n' "$MAKEFLAGS" | sed "s/$bs$bs[$bs $bs   ]*//g"`;; esac; fi; skip_next=no; strip_trailopt () { flg=`printf '%s\n' "$flg" | sed "s/$1.*$//"`; }; for flg in $sane_makeflags; do test $skip_next = yes && { skip_next=no; continue; }; case $flg in *=*|--*) continue;; -*I) strip_trailopt 'I'; skip_next=yes;; -*I?*) strip_trailopt 'I';; -*O) strip_trailopt 'O'; skip_next=yes;; -*O?*) strip_trailopt 'O';; -*l) strip_trailopt 'l'; skip_next=yes;; -*l?*) strip_trailopt 'l';; -[dEDm]) skip_next=yes;; -[JT]) skip_next=yes;; esac; case $flg in *$target_option*) has_opt=yes; break;; esac; done; test $has_opt = yes); then \
  failcom='fail=yes'; \
else \
  failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
case "all-recursive" in \
  distclean-* | maintainer-clean-*) list='src res test po man' ;; \
  *) list='src res test po man' ;; \
esac; \
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
Making all in src
make[2]: Entering directory '/home/user/Downloads/git/elektroid/src'
rm -f elektroid
gcc -I../src `/usr/bin/pkg-config --cflags libpulse libpulse-mainloop-glib alsa glib-2.0 zlib json-glib-1.0 libzip gtk+-3.0` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 `/usr/bin/pkg-config --libs libpulse libpulse-mainloop-glib alsa glib-2.0 zlib json-glib-1.0 libzip gtk+-3.0` -lsndfile  -lsamplerate    -o elektroid elektroid-local.o elektroid-connector.o elektroid-preferences.o elektroid-regconn.o elektroid-regpref.o elektroid-sample.o elektroid-utils.o elektroid-backend.o elektroid-backend_alsa.o connectors/elektroid-common.o connectors/elektroid-system.o connectors/elektroid-elektron.o connectors/elektroid-package.o connectors/elektroid-microbrute.o connectors/elektroid-microfreak_sample.o connectors/elektroid-microfreak.o connectors/elektroid-cz.o connectors/elektroid-sds.o connectors/elektroid-efactor.o connectors/elektroid-phatty.o connectors/elektroid-summit.o connectors/elektroid-scala.o connectors/elektroid-default.o elektroid-audio.o elektroid-audio_pa.o elektroid-browser.o elektroid-notifier.o elektroid-regma.o elektroid-maction.o mactions/elektroid-autosampler.o mactions/elektroid-backend.o mactions/elektroid-microbrute.o mactions/elektroid-microfreak.o elektroid-editor.o elektroid-tasks.o elektroid-guirecorder.o elektroid-progress.o elektroid-elektroid.o  -lm 
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-local.o -MD -MP -MF .deps/elektroid_cli-local.Tpo -c -o elektroid_cli-local.o `test -f 'local.c' || echo './'`local.c
mv -f .deps/elektroid_cli-local.Tpo .deps/elektroid_cli-local.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-connector.o -MD -MP -MF .deps/elektroid_cli-connector.Tpo -c -o elektroid_cli-connector.o `test -f 'connector.c' || echo './'`connector.c
mv -f .deps/elektroid_cli-connector.Tpo .deps/elektroid_cli-connector.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-preferences.o -MD -MP -MF .deps/elektroid_cli-preferences.Tpo -c -o elektroid_cli-preferences.o `test -f 'preferences.c' || echo './'`preferences.c
mv -f .deps/elektroid_cli-preferences.Tpo .deps/elektroid_cli-preferences.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-regconn.o -MD -MP -MF .deps/elektroid_cli-regconn.Tpo -c -o elektroid_cli-regconn.o `test -f 'regconn.c' || echo './'`regconn.c
mv -f .deps/elektroid_cli-regconn.Tpo .deps/elektroid_cli-regconn.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-regpref.o -MD -MP -MF .deps/elektroid_cli-regpref.Tpo -c -o elektroid_cli-regpref.o `test -f 'regpref.c' || echo './'`regpref.c
mv -f .deps/elektroid_cli-regpref.Tpo .deps/elektroid_cli-regpref.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-sample.o -MD -MP -MF .deps/elektroid_cli-sample.Tpo -c -o elektroid_cli-sample.o `test -f 'sample.c' || echo './'`sample.c
mv -f .deps/elektroid_cli-sample.Tpo .deps/elektroid_cli-sample.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-utils.o -MD -MP -MF .deps/elektroid_cli-utils.Tpo -c -o elektroid_cli-utils.o `test -f 'utils.c' || echo './'`utils.c
mv -f .deps/elektroid_cli-utils.Tpo .deps/elektroid_cli-utils.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-backend.o -MD -MP -MF .deps/elektroid_cli-backend.Tpo -c -o elektroid_cli-backend.o `test -f 'backend.c' || echo './'`backend.c
mv -f .deps/elektroid_cli-backend.Tpo .deps/elektroid_cli-backend.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-backend_alsa.o -MD -MP -MF .deps/elektroid_cli-backend_alsa.Tpo -c -o elektroid_cli-backend_alsa.o `test -f 'backend_alsa.c' || echo './'`backend_alsa.c
mv -f .deps/elektroid_cli-backend_alsa.Tpo .deps/elektroid_cli-backend_alsa.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-common.o -MD -MP -MF connectors/.deps/elektroid_cli-common.Tpo -c -o connectors/elektroid_cli-common.o `test -f 'connectors/common.c' || echo './'`connectors/common.c
mv -f connectors/.deps/elektroid_cli-common.Tpo connectors/.deps/elektroid_cli-common.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-system.o -MD -MP -MF connectors/.deps/elektroid_cli-system.Tpo -c -o connectors/elektroid_cli-system.o `test -f 'connectors/system.c' || echo './'`connectors/system.c
mv -f connectors/.deps/elektroid_cli-system.Tpo connectors/.deps/elektroid_cli-system.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-elektron.o -MD -MP -MF connectors/.deps/elektroid_cli-elektron.Tpo -c -o connectors/elektroid_cli-elektron.o `test -f 'connectors/elektron.c' || echo './'`connectors/elektron.c
mv -f connectors/.deps/elektroid_cli-elektron.Tpo connectors/.deps/elektroid_cli-elektron.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-package.o -MD -MP -MF connectors/.deps/elektroid_cli-package.Tpo -c -o connectors/elektroid_cli-package.o `test -f 'connectors/package.c' || echo './'`connectors/package.c
mv -f connectors/.deps/elektroid_cli-package.Tpo connectors/.deps/elektroid_cli-package.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-microbrute.o -MD -MP -MF connectors/.deps/elektroid_cli-microbrute.Tpo -c -o connectors/elektroid_cli-microbrute.o `test -f 'connectors/microbrute.c' || echo './'`connectors/microbrute.c
mv -f connectors/.deps/elektroid_cli-microbrute.Tpo connectors/.deps/elektroid_cli-microbrute.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-microfreak_sample.o -MD -MP -MF connectors/.deps/elektroid_cli-microfreak_sample.Tpo -c -o connectors/elektroid_cli-microfreak_sample.o `test -f 'connectors/microfreak_sample.c' || echo './'`connectors/microfreak_sample.c
mv -f connectors/.deps/elektroid_cli-microfreak_sample.Tpo connectors/.deps/elektroid_cli-microfreak_sample.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-microfreak.o -MD -MP -MF connectors/.deps/elektroid_cli-microfreak.Tpo -c -o connectors/elektroid_cli-microfreak.o `test -f 'connectors/microfreak.c' || echo './'`connectors/microfreak.c
mv -f connectors/.deps/elektroid_cli-microfreak.Tpo connectors/.deps/elektroid_cli-microfreak.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-cz.o -MD -MP -MF connectors/.deps/elektroid_cli-cz.Tpo -c -o connectors/elektroid_cli-cz.o `test -f 'connectors/cz.c' || echo './'`connectors/cz.c
mv -f connectors/.deps/elektroid_cli-cz.Tpo connectors/.deps/elektroid_cli-cz.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-sds.o -MD -MP -MF connectors/.deps/elektroid_cli-sds.Tpo -c -o connectors/elektroid_cli-sds.o `test -f 'connectors/sds.c' || echo './'`connectors/sds.c
mv -f connectors/.deps/elektroid_cli-sds.Tpo connectors/.deps/elektroid_cli-sds.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-efactor.o -MD -MP -MF connectors/.deps/elektroid_cli-efactor.Tpo -c -o connectors/elektroid_cli-efactor.o `test -f 'connectors/efactor.c' || echo './'`connectors/efactor.c
mv -f connectors/.deps/elektroid_cli-efactor.Tpo connectors/.deps/elektroid_cli-efactor.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-phatty.o -MD -MP -MF connectors/.deps/elektroid_cli-phatty.Tpo -c -o connectors/elektroid_cli-phatty.o `test -f 'connectors/phatty.c' || echo './'`connectors/phatty.c
mv -f connectors/.deps/elektroid_cli-phatty.Tpo connectors/.deps/elektroid_cli-phatty.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-summit.o -MD -MP -MF connectors/.deps/elektroid_cli-summit.Tpo -c -o connectors/elektroid_cli-summit.o `test -f 'connectors/summit.c' || echo './'`connectors/summit.c
mv -f connectors/.deps/elektroid_cli-summit.Tpo connectors/.deps/elektroid_cli-summit.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-scala.o -MD -MP -MF connectors/.deps/elektroid_cli-scala.Tpo -c -o connectors/elektroid_cli-scala.o `test -f 'connectors/scala.c' || echo './'`connectors/scala.c
mv -f connectors/.deps/elektroid_cli-scala.Tpo connectors/.deps/elektroid_cli-scala.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT connectors/elektroid_cli-default.o -MD -MP -MF connectors/.deps/elektroid_cli-default.Tpo -c -o connectors/elektroid_cli-default.o `test -f 'connectors/default.c' || echo './'`connectors/default.c
mv -f connectors/.deps/elektroid_cli-default.Tpo connectors/.deps/elektroid_cli-default.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/elektroid"' -DLOCALEDIR='"/usr/local/share/locale"'  -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 -MT elektroid_cli-elektroid-cli.o -MD -MP -MF .deps/elektroid_cli-elektroid-cli.Tpo -c -o elektroid_cli-elektroid-cli.o `test -f 'elektroid-cli.c' || echo './'`elektroid-cli.c
mv -f .deps/elektroid_cli-elektroid-cli.Tpo .deps/elektroid_cli-elektroid-cli.Po
rm -f elektroid-cli
gcc -I../src `/usr/bin/pkg-config --cflags alsa glib-2.0 zlib json-glib-1.0 libzip` -I/usr/include/opus -I/usr/include/x86_64-linux-gnu   -D_GNU_SOURCE -g -O2 `/usr/bin/pkg-config --libs alsa glib-2.0 zlib json-glib-1.0 libzip` -lsndfile  -lsamplerate    -o elektroid-cli elektroid_cli-local.o elektroid_cli-connector.o elektroid_cli-preferences.o elektroid_cli-regconn.o elektroid_cli-regpref.o elektroid_cli-sample.o elektroid_cli-utils.o elektroid_cli-backend.o elektroid_cli-backend_alsa.o connectors/elektroid_cli-common.o connectors/elektroid_cli-system.o connectors/elektroid_cli-elektron.o connectors/elektroid_cli-package.o connectors/elektroid_cli-microbrute.o connectors/elektroid_cli-microfreak_sample.o connectors/elektroid_cli-microfreak.o connectors/elektroid_cli-cz.o connectors/elektroid_cli-sds.o connectors/elektroid_cli-efactor.o connectors/elektroid_cli-phatty.o connectors/elektroid_cli-summit.o connectors/elektroid_cli-scala.o connectors/elektroid_cli-default.o elektroid_cli-elektroid-cli.o  -lm 
make[2]: Leaving directory '/home/user/Downloads/git/elektroid/src'
Making all in res
make[2]: Entering directory '/home/user/Downloads/git/elektroid/res'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/user/Downloads/git/elektroid/res'
Making all in test
make[2]: Entering directory '/home/user/Downloads/git/elektroid/test'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/user/Downloads/git/elektroid/test'
Making all in po
make[2]: Entering directory '/home/user/Downloads/git/elektroid/po'
test "0.19" = "0.19" || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.19" 1>&2; exit 1; }
test ! -f ./elektroid.pot || \
  test -z "ca.gmo de.gmo en.gmo es.gmo fr.gmo pt_BR.gmo" || make ca.gmo de.gmo en.gmo es.gmo fr.gmo pt_BR.gmo
make[3]: Entering directory '/home/user/Downloads/git/elektroid/po'
lang=`echo ca | sed -e 's,.*/,,'`; \
test "." = . && cdcmd="" || cdcmd="cd . && "; \
echo "${cdcmd}rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ${lang}.gmo ${lang}.po"; \
cd . && rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o t-${lang}.gmo ${lang}.po && mv t-${lang}.gmo ${lang}.gmo
lang=`echo de | sed -e 's,.*/,,'`; \
test "." = . && cdcmd="" || cdcmd="cd . && "; \
echo "${cdcmd}rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ${lang}.gmo ${lang}.po"; \
cd . && rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o t-${lang}.gmo ${lang}.po && mv t-${lang}.gmo ${lang}.gmo
lang=`echo en | sed -e 's,.*/,,'`; \
test "." = . && cdcmd="" || cdcmd="cd . && "; \
echo "${cdcmd}rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ${lang}.gmo ${lang}.po"; \
cd . && rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o t-${lang}.gmo ${lang}.po && mv t-${lang}.gmo ${lang}.gmo
lang=`echo es | sed -e 's,.*/,,'`; \
test "." = . && cdcmd="" || cdcmd="cd . && "; \
echo "${cdcmd}rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ${lang}.gmo ${lang}.po"; \
cd . && rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o t-${lang}.gmo ${lang}.po && mv t-${lang}.gmo ${lang}.gmo
lang=`echo fr | sed -e 's,.*/,,'`; \
test "." = . && cdcmd="" || cdcmd="cd . && "; \
echo "${cdcmd}rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ${lang}.gmo ${lang}.po"; \
cd . && rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o t-${lang}.gmo ${lang}.po && mv t-${lang}.gmo ${lang}.gmo
lang=`echo pt_BR | sed -e 's,.*/,,'`; \
test "." = . && cdcmd="" || cdcmd="cd . && "; \
echo "${cdcmd}rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o ${lang}.gmo ${lang}.po"; \
cd . && rm -f ${lang}.gmo && /usr/bin/msgfmt -c --statistics --verbose -o t-${lang}.gmo ${lang}.po && mv t-${lang}.gmo ${lang}.gmo
make[3]: Leaving directory '/home/user/Downloads/git/elektroid/po'
test ! -f ./elektroid.pot || { \
  echo "touch stamp-po" && \
  echo timestamp > stamp-poT && \
  mv stamp-poT stamp-po; \
}
make[2]: Leaving directory '/home/user/Downloads/git/elektroid/po'
Making all in man
make[2]: Entering directory '/home/user/Downloads/git/elektroid/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/user/Downloads/git/elektroid/man'
make[2]: Entering directory '/home/user/Downloads/git/elektroid'
test -f config.h || rm -f stamp-h1
test -f config.h || make  stamp-h1
make[2]: Leaving directory '/home/user/Downloads/git/elektroid'
make[1]: Leaving directory '/home/user/Downloads/git/elektroid'
pushing-boulders commented 1 month ago

I just sent a contribution. Thank you again for your amazing work and dedication.

dagargo commented 1 month ago

Glad it worked for you! And thank you so much for your contribution!

I'm closing this as the errors were most probably due to make.

pushing-boulders commented 1 month ago

Thank you @dagargo. Yes. So am I. Now I can organize my Digitakt II on Linux! Thank you for your great work on this. It seems like a lovely application and the command line tool appears to be really powerful.

No problem. Anything I can do to help.

Understood. So strange. I cannot recall, but maybe I updated another library or something after my first autoreconf --install which fixed my issue. Again, I appreciate your efforts to confirm.

I'll be watching this project for updates and if I can contribute code wise, I will.

Cheers!