Mi sto pacchettizzando linuxsampler sulla 64bit, la current prima della 15 (kernel 5.10.36, ma non è un problema di kernel...)
È vero, per linuxsampler c'è anche lo slackbuild di Ponce, ma di quello magari parlo in un altro form, dato che ho avuto un problema diverso.
Per cui ho provato a fare io dai sorgenti.
Prima mi sono costruito la libgig 4.3.0 in una apposita directory (pkg_LBGIG)
da cui poi ho creato il .txz con makepkg e l'ho installata.
I files si sono installati in /include e /lib, così:
Codice: Seleziona tutto
bash-5.1# ls -l /lib/libgig/
total 36240
-rw-r--r-- 1 root root 924968 Jun 10 17:17 libakai.a
-rwxr-xr-x 1 root root 946 Jun 10 17:17 libakai.la
lrwxrwxrwx 1 root root 16 Jun 10 18:15 libakai.so -> libakai.so.0.0.0
lrwxrwxrwx 1 root root 16 Jun 10 18:15 libakai.so.0 -> libakai.so.0.0.0
-rwxr-xr-x 1 root root 423336 Jun 10 17:17 libakai.so.0.0.0
-rw-r--r-- 1 root root 25027494 Jun 10 17:17 libgig.a
-rwxr-xr-x 1 root root 943 Jun 10 17:17 libgig.la
lrwxrwxrwx 1 root root 16 Jun 10 18:15 libgig.so -> libgig.so.10.0.0
lrwxrwxrwx 1 root root 16 Jun 10 18:15 libgig.so.10 -> libgig.so.10.0.0
-rwxr-xr-x 1 root root 10715104 Jun 10 17:17 libgig.so.10.0.0
bash-5.1# ls -l /include/libgig/
total 288
-rw-r--r-- 1 root root 24106 Jun 10 17:17 Akai.h
-rw-r--r-- 1 root root 31215 Jun 10 17:17 DLS.h
-rw-r--r-- 1 root root 10580 Jun 10 17:17 Korg.h
-rw-r--r-- 1 root root 18765 Jun 10 17:17 RIFF.h
-rw-r--r-- 1 root root 20507 Jun 10 17:17 SF.h
-rw-r--r-- 1 root root 76021 Jun 10 17:17 Serialization.h
-rwxr-xr-x 1 root root 100332 Jun 10 17:17 gig.h
Nel config mi dice che C++ non è adatto, aggiorno all'ultimo, ma è lo stesso,
per cui faccio quel che mi dice e uso CXX=clang++ CC=clang, aggiungendo la path per la libreria gig che pure non trovava:
Codice: Seleziona tutto
CXX=clang++ CC=clang PKG_CONFIG_PATH=/lib/pkgconfig/ ./configure --prefix=/pkg_LINUXSAMPLER/
Codice: Seleziona tutto
Good. Now type 'make' to compile, followed by 'make install' as root.
Codice: Seleziona tutto
./InstrumentsDb.h:30:11: fatal error:'gig.h' file not found
Codice: Seleziona tutto
bash-5.1# ls -l /include/libgig/
total 288
-rw-r--r-- 1 root root 24106 Jun 10 17:17 Akai.h
-rw-r--r-- 1 root root 31215 Jun 10 17:17 DLS.h
-rw-r--r-- 1 root root 10580 Jun 10 17:17 Korg.h
-rw-r--r-- 1 root root 18765 Jun 10 17:17 RIFF.h
-rw-r--r-- 1 root root 20507 Jun 10 17:17 SF.h
-rw-r--r-- 1 root root 76021 Jun 10 17:17 Serialization.h
-rwxr-xr-x 1 root root 100332 Jun 10 17:17 gig.h
Come faccio a dire a make di cercare gig.h in /include/libgig?
Da ignorante ho provato con la stessa opzione path di .configure:
Codice: Seleziona tutto
make PKG_CONFIG_PATH=/include/libgig
Codice: Seleziona tutto
In file included from InstrumentsDb.cpp:21:
./InstrumentsDb.h:30:11: fatal error: 'gig.h' file not found
# include <gig.h>
^~~~~~~
1 error generated.
make[3]: *** [Makefile:480:
liblinuxsamplerdb_la-InstrumentsDb.lo] Error 1
make[3]: Leaving directory
'/2_linuxsampler-2.2.0/linuxsampler-2.2.0/src/db'
make[2]: *** [Makefile:699: all-recursive] Error 1
make[2]: Leaving directory
'/2_linuxsampler-2.2.0/linuxsampler-2.2.0/src'
make[1]: *** [Makefile:511: all-recursive] Error 1
make[1]: Leaving directory
'/2_linuxsampler-2.2.0/linuxsampler-2.2.0'
make: *** [Makefile:416: all] Error 2
Grazie!