--- /dev/null
+diff --git a/configure.ac b/configure.ac
+index cbe91cf..447c7e2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -543,7 +543,7 @@ AC_TYPE_SIZE_T
+ # Checks for library functions.
+ AC_CHECK_FUNCS([gettimeofday memset strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull])
+
+-AC_SUBST(FIRMWARE_DIR, "$datadir/sigrok-firmware")
++AC_SUBST(FIRMWARE_DIR, "firmware")
+ AC_SUBST(MAKEFLAGS, '--no-print-directory')
+ AC_SUBST(AM_LIBTOOLFLAGS, '--silent')
+
--- /dev/null
+diff --git a/main.cpp b/main.cpp
+index 3fa93c4..db589f3 100644
+--- a/main.cpp
++++ b/main.cpp
+@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
+
+ #ifdef ENABLE_DECODE
+ // Initialise libsigrokdecode
+- if (srd_init(NULL) != SRD_OK) {
++ if (srd_init("decoders") != SRD_OK) {
+ qDebug() << "ERROR: libsigrokdecode init failed.";
+ break;
+ }
# libsigrok
git clone git://sigrok.org/libsigrok
cd libsigrok
+patch -p1 < ../../libsigrok_firmwaredir.patch
./autogen.sh
PKG_CONFIG_PATH_i686_pc_mingw32=$P ./configure $C $L && make install
cd ..
# sigrok-cli
git clone git://sigrok.org/sigrok-cli
cd sigrok-cli
+patch -p1 < ../../sigrok_cli_decodersdir.patch
./autogen.sh
PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 ./configure $C && make install
makensis -DHOME=$HOME contrib/sigrok-cli_cross.nsi
git clone git://sigrok.org/pulseview
cd pulseview
patch -p1 < ../../pulseview_linkfix.patch
+patch -p1 < ../../pulseview_decodersdir.patch
PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y . && make install VERBOSE=1
makensis -DHOME=$HOME contrib/pulseview_cross.nsi
cd ..
--- /dev/null
+diff --git a/main.c b/main.c
+index 9ab3f77..9d34034 100644
+--- a/main.c
++++ b/main.c
+@@ -216,7 +216,7 @@ int main(int argc, char **argv)
+ goto done;
+
+ if (opt_pds) {
+- if (srd_init(NULL) != SRD_OK)
++ if (srd_init("decoders") != SRD_OK)
+ goto done;
+ if (srd_session_new(&srd_sess) != SRD_OK) {
+ g_critical("Failed to create new decode session.");
+diff --git a/show.c b/show.c
+index db643d1..55c1bf6 100644
+--- a/show.c
++++ b/show.c
+@@ -65,7 +65,7 @@ void show_version(void)
+ printf("\n");
+
+ #ifdef HAVE_SRD
+- if (srd_init(NULL) == SRD_OK) {
++ if (srd_init("decoders") == SRD_OK) {
+ printf("Supported protocol decoders:\n");
+ srd_decoder_load_all();
+ for (l = srd_decoder_list(); l; l = l->next) {