From: Peter <sw...@ho...> - 2005-09-21 00:28:23
|
mars flac # make swig -python sw_metadata.i cc -g -I/usr/include/python2.3 sw_metadata_wrap.c -shared -lFLAC -o _sw_metadata.so sw_metadata_wrap.c: In function `FLAC__StreamMetadata_VorbisComment_Entry_matches': sw_metadata_wrap.c:849: error: incompatible type for argument 1 of `FLAC__metadata_object_vorbiscomment_entry_matches' make: *** [_sw_metadata.so] Error 1 All libraries up to spec. flac = 1.1.2, swig=1.3.21 Any other info needed? hth |
From: Ken H. <ke...@ha...> - 2005-09-21 02:07:33
|
On Sep 20, 2005, at 5:26 PM, Peter wrote: > mars flac # make > swig -python sw_metadata.i > cc -g -I/usr/include/python2.3 sw_metadata_wrap.c -shared -lFLAC -o > _sw_metadata.so > sw_metadata_wrap.c: In function > `FLAC__StreamMetadata_VorbisComment_Entry_matches': > sw_metadata_wrap.c:849: error: incompatible type for argument 1 of > `FLAC__metadata_object_vorbiscomment_entry_matches' > make: *** [_sw_metadata.so] Error 1 > > All libraries up to spec. flac = 1.1.2, swig=1.3.21 > > Any other info needed? hth > The FLAC-python stuff isn't mine. I'll try checking where I got it from to see if there are any updates. |
From: Ken H. <ke...@ha...> - 2005-09-21 02:13:43
|
On Sep 20, 2005, at 5:26 PM, Peter wrote: > mars flac # make > swig -python sw_metadata.i > cc -g -I/usr/include/python2.3 sw_metadata_wrap.c -shared -lFLAC -o > _sw_metadata.so > sw_metadata_wrap.c: In function > `FLAC__StreamMetadata_VorbisComment_Entry_matches': > sw_metadata_wrap.c:849: error: incompatible type for argument 1 of > `FLAC__metadata_object_vorbiscomment_entry_matches' > make: *** [_sw_metadata.so] Error 1 > > All libraries up to spec. flac = 1.1.2, swig=1.3.21 > > Any other info needed? hth > It looks like the original author is MIA. Debian has picked it up and seems to be maintaining it. http://packages.debian.org/testing/source/pyflac I haven't tried it yet here. Let me know if it works for you. |
From: Peter <sw...@ho...> - 2005-09-21 09:11:21
|
On Tue, 20 Sep 2005 19:13:37 -0700, Ken Hayber wrote: snip... > > http://packages.debian.org/testing/source/pyflac > > I haven't tried it yet here. Let me know if it works for you. > flac/sw_metadata_wrap.c:1397: error: incompatible type for argument 1 of `FLAC__metadata_object_vorbiscomment_entry_matches' error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 make: *** [build] Error 1 Interesting that if I type make again, it _does_ say "nothing to do for all" the encoder and decoder libraries were built in the build directory. I patched version 0.0.3 to -1. I consider this non working. For grins, I tried copying over the source to your directory (just the base py files. Needed to make one small edit to sw_metadata.i so it could find format.i. It did not compile with the error above. This is a noble pursuit! I hope it will work. Let me know if I can help. pete4abw "at" comcast dot net |
From: Ken H. <ke...@ha...> - 2005-09-24 18:53:33
|
Peter wrote: > mars flac # make > swig -python sw_metadata.i > cc -g -I/usr/include/python2.3 sw_metadata_wrap.c -shared -lFLAC -o _sw_metadata.so > sw_metadata_wrap.c: In function `FLAC__StreamMetadata_VorbisComment_Entry_matches': > sw_metadata_wrap.c:849: error: incompatible type for argument 1 of `FLAC__metadata_object_vorbiscomment_entry_matches' > make: *** [_sw_metadata.so] Error 1 > > All libraries up to spec. flac = 1.1.2, swig=1.3.21 > > Any other info needed? hth FYI - here is the patch for flac version 1.1.2 (1.1.1 is OK) --- /home/khayber/Projects/MusicBox/MusicBox/flac/sw_metadata.i (revision 37) +++ /home/khayber/Projects/MusicBox/MusicBox/flac/sw_metadata.i (working copy) @@ -203,7 +203,7 @@ // which makes the output into a python string of the correct length :) %extend FLAC__StreamMetadata_VorbisComment_Entry { FLAC__bool matches(const char *field_name, unsigned field_name_length) { - return FLAC__metadata_object_vorbiscomment_entry_matches(self, field_name, field_name_length); + return FLAC__metadata_object_vorbiscomment_entry_matches(*self, field_name, field_name_length); } FLAC__StreamMetadata_VorbisComment_Entry *__getitem__(int index) { return self+index; |
From: Peter <sw...@ho...> - 2005-09-25 15:58:42
|
On Sat, 24 Sep 2005 11:53:16 -0700, Ken Hayber wrote: snip... > FYI - here is the patch for flac version 1.1.2 (1.1.1 is OK) > > --- /home/khayber/Projects/MusicBox/MusicBox/flac/sw_metadata.i > (revision 37) > +++ /home/khayber/Projects/MusicBox/MusicBox/flac/sw_metadata.i (working > copy) > @@ -203,7 +203,7 @@ > // which makes the output into a python string of the correct length :) > %extend FLAC__StreamMetadata_VorbisComment_Entry { > FLAC__bool matches(const char *field_name, unsigned > field_name_length) { > - return FLAC__metadata_object_vorbiscomment_entry_matches(self, > field_name, field_name_length); > + return FLAC__metadata_object_vorbiscomment_entry_matches(*self, > field_name, field_name_length); > } > FLAC__StreamMetadata_VorbisComment_Entry *__getitem__(int index) { > return self+index; > Good, patch is fine! Thx! |