dagargo / overwitch

JACK client for Overbridge devices
GNU General Public License v3.0
127 stars 15 forks source link

error: 'cb_xfr_audio_in' undeclared on mki branch #43

Closed dRAT3 closed 1 year ago

dRAT3 commented 1 year ago

I'm trying to make the mki branch and I get the following errors

make  all-recursive
make[1]: Entering directory '/home/user/dev/overwitch'
Making all in src
make[2]: Entering directory '/home/user/dev/overwitch/src'
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/overwitch"' -DLOCALEDIR='"/
 -MT overwitch-main.o -MD -MP -MF .deps/overwitch-main.Tpo -c -o overwitch-main.o `test -f 'main
mv -f .deps/overwitch-main.Tpo .deps/overwitch-main.Po
gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR='"/usr/local/share/overwitch"' -DLOCALEDIR='"/
 -MT overwitch-jclient.o -MD -MP -MF .deps/overwitch-jclient.Tpo -c -o overwitch-jclient.o `test
mv -f .deps/overwitch-jclient.Tpo .deps/overwitch-jclient.Po
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -Wall -O3 -DDATADIR=
json-glib-1.0` -pthread  -I/usr/include/opus  -g -O2 -MT liboverwitch_la-engine.lo -MD -MP -MF .
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O3 -DDATADIR=\"/usr/local/share/overwitch
glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libmount -I/usr/inc
gine.Tpo -c engine.c  -fPIC -DPIC -o .libs/liboverwitch_la-engine.o
engine.c: In function 'prepare_transfers':
engine.c:77:29: error: 'cb_xfr_audio_in' undeclared (first use in this function)
   77 |                             cb_xfr_audio_in, engine, XFR_TIMEOUT);
      |                             ^~~~~~~~~~~~~~~
engine.c:77:29: note: each undeclared identifier is reported only once for each function it appe
engine.c:90:29: error: 'cb_xfr_audio_out' undeclared (first use in this function)
   90 |                             cb_xfr_audio_out, engine, XFR_TIMEOUT);
      |                             ^~~~~~~~~~~~~~~~
engine.c: At top level:
engine.c:1314:1: warning: 'ow_engine_load_overbridge_name' defined but not used [-Wunused-functi
 1314 | ow_engine_load_overbridge_name (struct ow_engine *engine)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
engine.c:352:1: warning: 'cb_xfr_audio_out' defined but not used [-Wunused-function]
  352 | cb_xfr_audio_out (struct libusb_transfer *xfr)
      | ^~~~~~~~~~~~~~~~
engine.c:325:1: warning: 'cb_xfr_audio_in' defined but not used [-Wunused-function]
  325 | cb_xfr_audio_in (struct libusb_transfer *xfr)
      | ^~~~~~~~~~~~~~~
make[2]: *** [Makefile:629: liboverwitch_la-engine.lo] Error 1
make[2]: Leaving directory '/home/user/dev/overwitch/src'
make[1]: *** [Makefile:433: all-recursive] Error 1
make[1]: Leaving directory '/home/user/dev/overwitch'
make: *** [Makefile:365: all] Error 2
dagargo commented 1 year ago

Oops! Forgot to add the declaration. Sorry.

Fixed. It compiles now.

dRAT3 commented 1 year ago

Yes it works now

dagargo commented 1 year ago

@dRAT3, is Overwitch working with your MKI os is it just compiling? Could you please answer in #4?