Giter Site home page Giter Site logo

pd-stream's Introduction

pd-stream

streaming objects for puredata (Forked from various places) right now mp3cast~ works but mp3amp~ wont create and the oog externals crash on me... go figure

OSX Build

$ brew install lame && brew install mpg123

$ make

$ chmod 755 pd-osx-deps.sh

$ ./pd-osx-deps.sh

NOTES

mp3amp~ complaining of "Symbol not found: _ExitMP3", "Symbol not found: _freqs", etc. I am assuming here that mpglib must be installed but with homebrew it is not available... hmmmm

after running pd-osx-deps.sh you may have errors depending on how the .dynlib was compiled. Run otool to get some info on .dynlib like so:

macOS $ otool -hV libmp3lame.0.dylib

Also to figure out what .dylib is link to a binary:

Linux $ ldd

macOS $ otool -L

pd-stream's People

Contributors

danomatika avatar katjav avatar megrimm avatar umlaeute avatar

Watchers

 avatar  avatar

pd-stream's Issues

Error compiling on OSX 10.11.6

AIRs-Mac-Pro:pd-stream GHAIR$ make
++++ info: using Makefile.pdlibbuilder version 0.5.0
++++ info: using Pd API /Applications/Pd-0.49-1.app/Contents/Resources/src/m_pd.h
++++ info: making target all in lib stream
++++ info: making oggamp~.o in lib stream
cc -DPD -I "/Applications/Pd-0.49-1.app/Contents/Resources/src" -DUNIX -DMACOSX -I /sw/include -Iinclude -mmacosx-version-min=10.14 -arch x86_64 -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -O3 -ffast-math -funroll-loops -fomit-frame-pointer -arch i386 -arch x86_64 -o oggamp~.o -c oggamp~.c
++++ info: linking objects in oggamp~.pd_darwin for lib stream
cc -undefined suppress -flat_namespace -bundle -arch i386 -arch x86_64 -o oggamp~.pd_darwin oggamp~.o -lc -lmp3lame -lvorbis -lmpg123
ld: library not found for -lmpg123
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [oggamp~.pd_darwin] Error 1

mp3amp~ Symbol not found errors

not finding the *.dynlib maybe?

/Users/megrimm/Development/puredata/pd-stream-wip/pd-stream/mp3amp~.pd_darwin: dlopen(/Users/megrimm/Development/puredata/pd-stream-wip/pd-stream/mp3amp~.pd_darwin, 10): Symbol not found: _freqs
Referenced from: /Users/megrimm/Development/puredata/pd-stream-wip/pd-stream/mp3amp~.pd_darwin
Expected in: flat namespace
in /Users/megrimm/Development/puredata/pd-stream-wip/pd-stream/mp3amp~.pd_darwin
mp3amp~
... couldn't create

Warnings from build on Raspberry Pi

++++ info: using Makefile.pdlibbuilder version 0.5.1
++++ info: using Pd API /usr/include/pd/m_pd.h
++++ info: making target all in lib stream
++++ info: making mp3cast~.o in lib stream
cc -DPD -I "/usr/include/pd" -DUNIX -Iinclude -fPIC -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -O3 -ffast-math -funroll-loops -fomit-frame-pointer -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -o mp3cast~.o -c mp3cast~.c
mp3cast~.c: In function ‘mp3cast_disconnect’:
mp3cast~.c:770:77: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
if ( x->x_mp3size == lame_encode_flush( x->lgfp, x->x_mp3outbuf, 0) < 0 )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
++++ info: linking objects in mp3cast~.pd_linux for lib stream
cc -rdynamic -shared -fPIC -Wl,-rpath,"$ORIGIN",--enable-new-dtags -o mp3cast~.pd_linux mp3cast~.o -lc -lm -lmp3lame
++++info: target all in lib stream completed

warnings on rpi

++++ info: using Makefile.pdlibbuilder version 0.5.0
++++ info: using Pd API /usr/include/pd/m_pd.h
++++ info: making target all in lib stream
++++ info: making oggamp~.o in lib stream
cc -DPD -I "/usr/include/pd" -DUNIX -Iinclude -fPIC -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -O3 -ffast-math -funroll-loops -fomit-frame-pointer -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -o oggamp~.o -c oggamp~.c
oggamp~.c: In function ‘oggamp_tilde_setup’:
oggamp~.c:1423:49: warning: cast between incompatible function types from ‘void * ()(t_floatarg, t_floatarg, t_floatarg)’ {aka ‘void * ()(float, float, float)’} to ‘void * ()(void)’ [-Wcast-function-type]
oggamp_class = class_new(gensym("oggamp~"), (t_newmethod)oggamp_new,
^
++++ info: linking objects in oggamp~.pd_linux for lib stream
cc -rdynamic -shared -fPIC -Wl,-rpath,"$ORIGIN",--enable-new-dtags -o oggamp~.pd_linux oggamp~.o -lc -lm -lmp3lame -lvorbis -lmpg123
++++ info: making mp3cast~.o in lib stream
cc -DPD -I "/usr/include/pd" -DUNIX -Iinclude -fPIC -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -O3 -ffast-math -funroll-loops -fomit-frame-pointer -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -o mp3cast~.o -c mp3cast~.c
++++ info: linking objects in mp3cast~.pd_linux for lib stream
cc -rdynamic -shared -fPIC -Wl,-rpath,"$ORIGIN",--enable-new-dtags -o mp3cast~.pd_linux mp3cast~.o -lc -lm -lmp3lame -lvorbis -lmpg123
++++ info: making mp3amp~.o in lib stream
cc -DPD -I "/usr/include/pd" -DUNIX -Iinclude -fPIC -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -O3 -ffast-math -funroll-loops -fomit-frame-pointer -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -o mp3amp~.o -c mp3amp~.c
mp3amp~.c: In function ‘mp3amp_tilde_setup’:
mp3amp~.c:1261:30: warning: cast between incompatible function types from ‘void * (
)(t_floatarg)’ {aka ‘void * ()(float)’} to ‘void * ()(void)’ [-Wcast-function-type]
(t_newmethod) mp3amp_new, (t_method) mp3amp_free,
^
++++ info: linking objects in mp3amp~.pd_linux for lib stream
cc -rdynamic -shared -fPIC -Wl,-rpath,"$ORIGIN",--enable-new-dtags -o mp3amp~.pd_linux mp3amp~.o -lc -lm -lmp3lame -lvorbis -lmpg123
++++ info: making oggcast~.o in lib stream
cc -DPD -I "/usr/include/pd" -DUNIX -Iinclude -fPIC -Wall -Wextra -Wshadow -Winline -Wstrict-aliasing -O3 -ffast-math -funroll-loops -fomit-frame-pointer -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -o oggcast~.o -c oggcast~.c
oggcast~.c: In function ‘oggcast_child_main’:
oggcast~.c:859:38: warning: declaration of ‘fifotail’ shadows a previous local [-Wshadow]
int fifosize = x->x_fifosize, fifotail, channels;
^~~~~~~~
oggcast~.c:757:11: note: shadowed declaration is here
int fd, fifotail;
^~~~~~~~
oggcast~.c: In function ‘oggcast_tilde_setup’:
oggcast~.c:1462:51: warning: cast between incompatible function types from ‘void * ()(t_floatarg, t_floatarg)’ {aka ‘void * ()(float, float)’} to ‘void * (*)(void)’ [-Wcast-function-type]
oggcast_class = class_new(gensym("oggcast~"), (t_newmethod)oggcast_new,
^
++++ info: linking objects in oggcast~.pd_linux for lib stream
cc -rdynamic -shared -fPIC -Wl,-rpath,"$ORIGIN",--enable-new-dtags -o oggcast~.pd_linux oggcast~.o -lc -lm -lmp3lame -lvorbis -lmpg123
++++info: target all in lib stream completed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.