[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    [Fwd: kdemultimedia/kmidi compile failed + fix]
From:       fenix <fenix () club-internet ! fr>
Date:       2002-03-24 12:46:30
[Download RAW message or body]

[Attachment #3 (+)]



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épertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/config'
Making all in patch
make[2]: Entre dans le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/config/patch'
make[2]: Rien à faire pour `all'.
make[2]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/config/patch'
make[2]: Entre dans le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/config'
make[2]: Rien à faire pour `all-am'.
make[2]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/config'
make[1]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/config'
Making all in bitmaps
make[1]: Entre dans le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/bitmaps'
make[1]: Rien à faire pour `all'.
make[1]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/bitmaps'
Making all in midis
make[1]: Entre dans le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/midis'
make[1]: Rien à faire pour `all'.
make[1]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/midis'
Making all in TIMIDITY
make[1]: Entre dans le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/TIMIDITY'
make[1]: Rien à faire pour `all'.
make[1]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/TIMIDITY'
Making all in BITMAPS
make[1]: Entre dans le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/BITMAPS'
make[1]: Rien à faire pour `all'.
make[1]: Quitte le répertoire
`/home/kde3/CVS/kde/kdemultimedia/kmidi/BITMAPS'
make[1]: Entre dans le répertoire
`/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 
-DDEFAULT_PATH=\"/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=athlon -mcpu=athlon -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épertoire `/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







["alsa_a.cpp.diff" (alsa_a.cpp.diff)]

? alsa_a.cpp.diff
Index: alsa_a.cpp
===================================================================
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 @@
                == 1 warning
                == -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])
 {

_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic