x->rm->openFile((const char*)s->s_name, 0, x->num_frames_in_fifo, x->num_sam...
Message: 1Date: Mon, 5 Aug 2019 21:48:32 +0100From: Nick Burge <nburge@virginmedia.com>To: pd-list@lists.iem.atSubject: [PD] readanysf~ on osx 10.14Message-ID: <C48DADD7-D0E3-473E-9BAF-C2C8F3FAB954@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$ makemkdir objsc++ -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