[PD] readanysf~ on osx 10.14

Nick Burge nburge at virginmedia.com
Wed Aug 7 10:35:18 CEST 2019


Great, it compiles now. Thank you. 

line 227 from readanysf~.cpp now reads: x->rm->openFile((char*)s->s_name, 0, x->num_frames_in_fifo, x->num_samples_per_frame );

Next challenge. having placed the readanysf~ folder into /Library/pd and trying to launch it I get the following in pd console:




/Library/pd/readanysf~/readanysf~.pd_darwin: dlopen(/Library/pd/readanysf~/readanysf~.pd_darwin, 10): Symbol not found: _clock_nanosleep
  Referenced from: /Library/pd/readanysf~/libgavl.1.dylib
  Expected in: flat namespace
 in /Library/pd/readanysf~/libgavl.1.dylib
/Library/Pd/readanysf~/readanysf~.pd_darwin: dlopen(/Library/Pd/readanysf~/readanysf~.pd_darwin, 10): Symbol not found: _clock_nanosleep
  Referenced from: /Library/Pd/readanysf~/libgavl.1.dylib
  Expected in: flat namespace
 in /Library/Pd/readanysf~/libgavl.1.dylib

What could be going on here? best regards, Nick






> On 7 Aug 2019, at 08:52, pd-list-request at lists.iem.at wrote:
> 
> Send Pd-list mailing list submissions to
> 	pd-list at lists.iem.at
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.puredata.info/listinfo/pd-list
> or, via email, send a message with subject or body 'help' to
> 	pd-list-request at lists.iem.at
> 
> You can reach the person managing the list at
> 	pd-list-owner at lists.iem.at
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pd-list digest..."
> Today's Topics:
> 
>   1. Re: readanysf~ on osx 10.14 (Dan Wilcox)
> 
> From: Dan Wilcox <danomatika at gmail.com>
> Subject: Re: [PD] readanysf~ on osx 10.14
> Date: 7 August 2019 at 08:44:07 BST
> To: Nick Burge <nburge at virginmedia.com>
> Cc: pd-list at lists.iem.at
> 
> 
> Whoops, I meant cast to char*: (char *)
> 
> enohp ym morf tnes
> -----------
> Dan Wilcox
> danomatika.com <http://danomatika.com/>
> robotcowboy.com <http://robotcowboy.com/>
> 
> 
> On Aug 6, 2019, at 6:41 PM, Nick Burge <nburge at virginmedia.com <mailto:nburge at virginmedia.com>> wrote:
> 
>> <readanysf~.cpp>
>> 
>> Thanks Dan, I tried editing the file as you suggested, doing a make clean and make. (see attached) but no luck so far. Best regards, Nick
>> 
>> nick$ make
>> mkdir objs
>> c++  -c -o objs/FifoVideoFrames.o src/FifoVideoFrames.cpp -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC  
>> clang: warning: argument unused during compilation: '-fast' [-Wunused-command-line-argument]
>> c++  -c -o objs/FifoAudioFrames.o src/FifoAudioFrames.cpp -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC  
>> clang: warning: argument unused during compilation: '-fast' [-Wunused-command-line-argument]
>> c++  -c -o objs/ReadMedia.o src/ReadMedia.cpp -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC  
>> clang: warning: argument unused during compilation: '-fast' [-Wunused-command-line-argument]
>> c++   -o  readanysf~.pd_darwin  -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC    \
>> 	src/readanysf~.cpp \
>> 	objs/FifoAudioFrames.o \
>> 	objs/FifoVideoFrames.o \
>> 	objs/ReadMedia.o \
>> 	-bundle -undefined dynamic_lookup -L/sw/lib -lgavl -lgmerlin_avdec -L/usr/local/opt/libpng/lib 
>> src/readanysf~.cpp:227:18: error: cannot initialize a parameter of type 'char *' with an rvalue of type
>>       'const char *'
>>         x->rm->openFile((const char*)s->s_name, 0, x->num_frames_in_fifo, x->num_samples_per_frame );
>>                         ^~~~~~~~~~~~~~~~~~~~~~
>> src/ReadMedia.h:59:25: note: passing argument to parameter 'filename' here
>>                 void openFile( char * filename, int vfifosize, int afifosize, int samples_per_frame);
>>                                       ^
>> 1 error generated.
>> make: *** [pd_darwin] Error 1
>> 
>> 
>> 
>> 
>> 
>>> On 6 Aug 2019, at 16:39, Dan Wilcox <danomatika at gmail.com <mailto:danomatika at gmail.com>> wrote:
>>> 
>>> Judging from the error, try casting to const char* at src/readanysf~.cpp:227:
>>> 
>>>     x->rm->openFile((const char*)s->s_name, 0, x->num_frames_in_fifo, x->num_sam...
>>> 
>>>> On Aug 6, 2019, at 12:00 PM, pd-list-request at lists.iem.at <mailto:pd-list-request at lists.iem.at> wrote:
>>>> 
>>>> Message: 1
>>>> Date: Mon, 5 Aug 2019 21:48:32 +0100
>>>> From: Nick Burge <nburge at virginmedia.com <mailto:nburge at virginmedia.com>>
>>>> To: pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>
>>>> Subject: [PD] readanysf~ on osx 10.14
>>>> Message-ID: <C48DADD7-D0E3-473E-9BAF-C2C8F3FAB954 at virginmedia.com <mailto:C48DADD7-D0E3-473E-9BAF-C2C8F3FAB954 at virginmedia.com>>
>>>> Content-Type: text/plain; charset="utf-8"
>>>> 
>>>> The binary for external readanysf~ crashes PD Vanilla on my MacbookPro running mojave. osx 10.14. The crash occurs as soon as I try to load a media file (mp.3 for example)
>>>> 
>>>> I thought it might be worth trying to compile it from source to see if that worked, so I’ve succesfully installed gavl and gmerllin-avdecoder from fink, edited the readanysf~ makefile to correct the path to my m_pd.h file as follows…
>>>> 
>>>> PD_INCLUDES=/Applications/Pd.app/Contents/Resources/src/
>>>> 
>>>> typing make gives the following error:
>>>> 
>>>> readanysf~0.43 nick$ make
>>>> mkdir objs
>>>> c++  -c -o objs/FifoVideoFrames.o src/FifoVideoFrames.cpp -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC  
>>>> clang: warning: argument unused during compilation: '-fast' [-Wunused-command-line-argument]
>>>> c++  -c -o objs/FifoAudioFrames.o src/FifoAudioFrames.cpp -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC  
>>>> clang: warning: argument unused during compilation: '-fast' [-Wunused-command-line-argument]
>>>> c++  -c -o objs/ReadMedia.o src/ReadMedia.cpp -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC  
>>>> clang: warning: argument unused during compilation: '-fast' [-Wunused-command-line-argument]
>>>> c++   -o  readanysf~.pd_darwin  -I./  -I/sw/include -I/sw/include/gavl -I/sw/include/gmerlin -I/Applications/Pd.app/Contents/Resources/src/ -I/sw/include -fast -fPIC    \
>>>> 	src/readanysf~.cpp \
>>>> 	objs/FifoAudioFrames.o \
>>>> 	objs/FifoVideoFrames.o \
>>>> 	objs/ReadMedia.o \
>>>> 	-bundle -undefined dynamic_lookup -L/sw/lib -lgavl -lgmerlin_avdec -L/usr/local/opt/libpng/lib 
>>>> src/readanysf~.cpp:227:19: error: cannot initialize a parameter of type 'char *'
>>>>      with an lvalue of type 'const char *'
>>>>        x->rm->openFile( s->s_name, 0, x->num_frames_in_fifo, x->num_sam...
>>>>                         ^~~~~~~~~
>>>> src/ReadMedia.h:59:25: note: passing argument to parameter 'filename' here
>>>>                void openFile( char * filename, int vfifosize, int afifo...
>>>>                                      ^
>>>> 1 error generated.
>>>> make: *** [pd_darwin] Error 1
>>> 
>>> --------
>>> Dan Wilcox
>>> @danomatika <http://twitter.com/danomatika>
>>> danomatika.com <http://danomatika.com/>
>>> robotcowboy.com <http://robotcowboy.com/>
>>> 
>>> 
>>> 
>> 
> 
> 
> _______________________________________________
> Pd-list mailing list
> Pd-list at lists.iem.at
> to manage your subscription (including un-subscription) see
> https://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190807/3caf7d47/attachment-0001.html>


More information about the Pd-list mailing list