From kde-multimedia Sun Mar 24 12:46:30 2002 From: fenix Date: Sun, 24 Mar 2002 12:46:30 +0000 To: kde-multimedia Subject: [Fwd: kdemultimedia/kmidi compile failed + fix] X-MARC-Message: https://marc.info/?l=kde-multimedia&m=101697427032160 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--=-1GjPqaPTrxKJg3KAjJ7G" --=-1GjPqaPTrxKJg3KAjJ7G Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-1GjPqaPTrxKJg3KAjJ7G Content-Disposition: inline Content-Description: Message suivi - kdemultimedia/kmidi compile failed + fix Content-Type: message/rfc822 Subject: kdemultimedia/kmidi compile failed + fix From: fenix To: kde-devel@kde.org Content-Type: multipart/mixed; boundary="=-T1sd62b6IqI+JaOtxlJk" X-Mailer: Evolution/1.0.2-4mdk Date: 23 Mar 2002 12:50:12 +0100 Message-Id: <1016884213.2810.12.camel@DarKBlue> Mime-Version: 1.0 --=-T1sd62b6IqI+JaOtxlJk Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable with gcc-3.04 and alsa support (alsa-driver-0.5.12a alsa-lib-0.5.10b installed) [kde3@DarKBlue kmidi]$ make Making all in config make[1]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/config' Making all in patch make[2]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/config/patch' make[2]: Rien =E0 faire pour `all'. make[2]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/config/patch' make[2]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/config' make[2]: Rien =E0 faire pour `all-am'. make[2]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/config' make[1]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/config' Making all in bitmaps make[1]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/bitmaps' make[1]: Rien =E0 faire pour `all'. make[1]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/bitmaps' Making all in midis make[1]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/midis' make[1]: Rien =E0 faire pour `all'. make[1]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/midis' Making all in TIMIDITY make[1]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/TIMIDITY' make[1]: Rien =E0 faire pour `all'. make[1]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/TIMIDITY' Making all in BITMAPS make[1]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/BITMAPS' make[1]: Rien =E0 faire pour `all'. make[1]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi/BITMAPS' make[1]: Entre dans le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi' g++ -DHAVE_CONFIG_H -I. -I. -I.. `/home/kde3/kde3/bin/artsc-config --cflags` -I/home/kde3/kde3/include -I/home/kde3/CVS/qt-copy/include -I/usr/X11R6/include=20 -DDEFAULT_PATH=3D\"/home/kde3/kde3/share/apps/kmidi/config\" -DKMIDI -DAU_ALSA -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/src/alsa-lib-0.5.10b/include/ -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/src/alsa-lib-0.5.10b/include/ -DNDEBUG -DNO_DEBUG -O2 -O3 -march=3Dathlon -mcpu=3Dathlon -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -O3 -fomit-frame-pointer -ffast-math -c alsa_a.cpp alsa_a.cpp: In function `int set_playback_info(void*, uint32*, uint32*, const long int*)': alsa_a.cpp:287: cannot convert `void*' to `snd_pcm_t*' for argument `1' to `int snd_pcm_plugin_info(snd_pcm_t*, snd_pcm_channel_info_t*)' alsa_a.cpp:429: cannot convert `void*' to `snd_pcm_t*' for argument `1' to `int snd_pcm_plugin_flush(snd_pcm_t*, int)' alsa_a.cpp:435: cannot convert `void*' to `snd_pcm_t*' for argument `1' to `int snd_pcm_channel_params(snd_pcm_t*, snd_pcm_channel_params_t*)' alsa_a.cpp:451: cannot convert `void*' to `snd_pcm_t*' for argument `1' to `int snd_pcm_plugin_prepare(snd_pcm_t*, int)' alsa_a.cpp:459: cannot convert `void*' to `snd_pcm_t*' for argument `1' to `int snd_pcm_plugin_setup(snd_pcm_t*, snd_pcm_channel_setup_t*)' alsa_a.cpp:469: cannot convert `void*' to `snd_pcm_t*' for argument `1' to `int snd_pcm_plugin_status(snd_pcm_t*, snd_pcm_channel_status_t*)' make[1]: *** [alsa_a.o] Erreur 1 make[1]: Quitte le r=E9pertoire `/home/kde3/CVS/kde/kdemultimedia/kmidi' make: *** [all-recursive] Erreur 1 the problem was parameter handle__ is send as void* instead of snd_pcm_t* old: static int set_playback_info (void* handle__, uint32* encoding__, uint32* rate__, const int32 extra_param[5]) new: static int set_playback_info (snd_pcm_t* handle__, uint32* encoding__, uint32* rate__, const int32 extra_param[5]) and why handle is send in parameter while accessible as a global static var ?? (set_playback_info is called once whith global var handle in first param line 512) FeniX --=-T1sd62b6IqI+JaOtxlJk Content-Disposition: attachment; filename=alsa_a.cpp.diff Content-Transfer-Encoding: quoted-printable Content-Type: text/x-diff; charset=ISO-8859-15 ? alsa_a.cpp.diff Index: alsa_a.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/kde/kdemultimedia/kmidi/alsa_a.cpp,v retrieving revision 1.8 diff -u -r1.8 alsa_a.cpp --- alsa_a.cpp 2000/08/24 18:49:04 1.8 +++ alsa_a.cpp 2002/03/23 12:51:32 @@ -254,7 +254,7 @@ =3D=3D 1 warning =3D=3D -1 fails */ -static int set_playback_info (void* handle__, +static int set_playback_info (snd_pcm_t* handle__, uint32* encoding__, uint32* rate__, const int32 extra_param[5]) { --=-T1sd62b6IqI+JaOtxlJk-- --=-1GjPqaPTrxKJg3KAjJ7G-- _______________________________________________ kde-multimedia mailing list kde-multimedia@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-multimedia