Help with installing external, Gem addon: pix_motion_sector
@cfry 2010....... guaranteed 32-bit originally....... is the makefile trying to include 32-bit mac binaries?
So Pd 0.48 or earlier...... or extended are maybe solutions but not if you are running 64-bit only osx.
Unless you can find replacement 64-bit binaries for osx?
Just a guess of course....... the makefile should give some clues.
I am no expert..... I run windows almost exclusively on my mac........ but msse3 looks like one culprit........ https://stackoverflow.com/questions/10686638/whats-the-difference-among-cflgs-sse-options-of-msse-msse2-mssse3-msse4
VPT can send and receive osx and midi....... so it can be a solution alongside Pd if you fail.
HOWEVER......@cfry you can use a standard object.....[pix_movement]
Chapter 5 here........ https://forum.pdpatchrepo.info/topic/12033/multimedia-programming-with-pure-data should explain (toward the end) how to do what you are looking for.
David.
External Loading Problem – "Image not found"
Yeap, that would explain it. It's amazing what you overlook.
I compiled the externals it all seems to work well using the Makefile. 
(for other people who want to compile this for their OS, all you need to do is cd into the directory where all the compilation files are and type "make -f Makefile" in Terminal)
Purr Data 2.10.0 released
Purr Data 2.10.0 is now available:
https://github.com/jonwwilkes/purr-data/releases/tag/2.10.0
Changes:
- iem_spec2/spec2_tabreceive_enable~: fix array error handler and set sane default array name value
- fix partconv crashers in bsaylor lib and add perfroutine for array errors
- adaptive/nlms3~: fix typo that caused a double free
- fix lyonpotpourri crashers in dsp, perform and constructor routines
- at least keep the inoperable streamout13~ and streamin13~ from crashing when instantiating
- use some sane default values in ekext/lpreson~ to prevent segfault
- quick fixes to keep cxc/mean~ from crashing when dsp is turned on
- greatly reduce undefined behavior in all dsp objects
- fix hex2dec so that it actually does something useful
- fix #523: crash with manual width adjustment on subpatch
- add ability to change makefile flags for Gem from toplevel makefile
- fix stray bugs detected by obs
- unauthorized/cooled~: increase string buffer size to accommodate the terminating nul character
- unauthorized/cooled~: fix memory access bug trying to concatenate into a string constant
- iemmatrix/mtx_dispersive_dline: add missing void return type
- allow make options like -j8 to be passed to the Gem compilation, which takes awfully long on a single cpu.
- cxc/cxc_split: fix use of un-initialized pointer
- ggee/serial_bird: fix undefined behavior with the ++ operator
- ext13/scramble~: fix header for scramble~
- jasch_lib/detox/detox: reformat for sanity's sake, fix array overflow, undefined behavior
- linux desktop: remove the -rt -audiobuf options from the desktop files.
- linux desktop: change DEFAULTADVANCE to 20 ms for Linux.
- linux desktop: remove leftover TargetEnvironment=Unity lines in menu entries for Purr Data
- linux desktop: add some comments and a few more useful desktop action examples to the main desktop file, so that the user understands how to adjust these if needed.
- linux desktop: replace pd-gui -> nw in the ForceQuit actions, which is the proper name of the GUI program on Linux
- linux desktop: remove useless %U arguments from desktop actions.
- linux desktop: invoke desktop actions via /bin/sh.
- linux desktop: migrate the desktop actions from the ancient Unity syntax to the current freedesktop.org standard
- linux desktop: remove sticky options from the desktop files. For now, keep -rt -audiobuf 20.
- Gem: sync with https://github.com/umlaeute/Gem, QT4L and startup issues have been fixed
- linux: fix the Debian control files once again, since the dependency auto-detection needs a Depends line in there.
- debuild: Support for ARM (e.g., Raspbian)
- update nw-update to nw.js 0.24.4 to fix font issues under Linux
- backport 'add-to-path' from vanilla rev. c917dd19, to make Gem happy.
- usability improvements in the documentation browser.
- switch Gem to the latest from upstream.
- add missing dlls for fluid~ on Windows. Fixes #540.
- Debian packaging: Demote python and fluid-soundfont dependencies, as suggested in #540.
- polish the externals/Makefile clean targets, and delete redundant files in repo
- fix compile options for Xcode 10 - fftease and lyonpotpourri externals.
- update pd-lua to latest upstream.
- fix compile options for Xcode 10 - externals and abstractions.
- fix compile options for Xcode 10.
- ios header needs to be included before base64.h, to avoid compile errors on macOS 10.14.
- fix improper string access in pd_getdirname on Mac.
- fix list cat crasher, update help patch, add missing test abstractions
- get rid of obsolete and unneeded unicap and sndobj dependencies on Linux.
- mark some globals as extern to fix compilation if g_canvas.h is included more than once
Please report bugs here:
Getting chaos-0.2 to run in Purr Data
Okay, I managed to get the library compiled and working! It required some makefile hackery. This applies to MacOS 10.14.4, and using gcc-9 installed via brew (clang threw errors left and right...)
Here is the output of diff comparing my edited version of the makefile to a freshly unzipped one:
➜ chaos-0.2 diff Makefile ~/Downloads/chaos-0.2/Makefile
99d98
< CC=/usr/local/bin/gcc-9
104,105c103,104
< PD_PATH = /Applications/Pd-l2ork.app/Contents/Resources/app.nw
< OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 #-fast
---
> PD_PATH = /Applications/Pd-extended.app/Contents/Resources
> OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
110c109
< FAT_FLAGS = -arch x86_64
---
> FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4
Also, this is how my startup panel now looks like

Strangly I don't need to [include chaos], that simply does not work...
Best
Timo
Cant Build from source Please help
windows: I am in the PD directory where all the main files are. I use
make app
error:
$ make app
makefile:4: ../makefile.subdir: No such file or directory
make: *** No rule to make target '../makefile.subdir'. Stop.
Camomile v1.0.1 - An audio plugin with Pure Data embedded
@alfonso.santimone said:
So i guess i have to remove directly from the external code all the static variable, so basically remove the "static" keyword from the variable declarations.
No, if there are static variables (except the static variable for the class that is managed by Pd) you must find a way to avoid them. For example you can use variables in your object structure.
How can i compile libpd as a .lib/.so/.a and not .dll?
The libpd version in the Camomile repository generates the static library. You only need to follow the instructions.
Should i use those flags in the various makefiles or just as a fleg in the command line? (assuming working with msys2 on Win64)
If you include the external sources to libpd, you should not have to use the makefiles and the right flags will already be defined.
So it's enough to use a x64 compiler and a x64 target?
For the 64 bit target yes.
How to include the static pthread lib for Win compilation? You mention it the Camomile build process readme.
You have to compile it. There are several way to do it so I don't want to impose one way to do it but you can have a look at the Appveyor file https://github.com/pierreguillot/Camomile/blob/dev/v1.0.6-lv2/appveyor.yml or in the Camomile directory do
git clone -q https://github.com/GerHobbelt/pthread-win32.git Dependencies\PthreadWin32
cd Dependencies\PthreadWin32
sed -i 's/4820;4668;4255;/4820;4668;4255;4711;4100;4312;4127;4296;4456;4619;4310;4311;/' pthread_lib.2015.vcxproj
sed -i 's/MultiThreadedDLL/MultiThreaded/' pthread_lib.2015.vcxproj
sed -i 's/MultiThreadedDebugDLL/MultiThreadedDebug/' pthread_lib.2015.vcxproj
msbuild pthread.2015.sln /t:pthread_lib /nologo /verbosity:quiet /p:Configuration=Release /p:Platform=%PLATFORM% /p:OutDir=lib
About to install a new distro. But which one?
@jancsika nothing really, it installed ok, I went through the entire process of trying to install purr-data, from scratch and by the book, and it still failed. @youaresound even vanilla pd install fails. Errors as follows, and bear in mind this isn't an old and confused version of of Mint, I literally installed it yesterday: Makefile:768: recipe for target 'pd' failed
make[2]: *** [pd] Error 127
make[2]: Leaving directory '/home/bmccloskey/myStuff/pd-0.48-1/src'
Makefile:496: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/bmccloskey/myStuff/pd-0.48-1'
Makefile:793: recipe for target 'install' failed
make: *** [install] Error 2
About to install a new distro. But which one?
. . . there was a bit of activity, then this:
/bin/sh: 2: aclocal: not found
Makefile:147: recipe for target '/home/bmccloskey/purr-data/pd/src/configure' failed
make[2]: *** [/home/bmccloskey/purr-data/pd/src/configure] Error 127
make[2]: Leaving directory '/home/bmccloskey/purr-data/packages'
Makefile:61: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/bmccloskey/purr-data/packages/linux_make'
./tar_em_up.sh: 331: command failed with exit code 2, exiting now.
./tar_em_up.sh: 331: make install prefix=$inst_dir
Makefile:97: recipe for target 'light' failed
make: *** [light] Error 2
Purr Data 2.5.0
@jancsika Yeah. I did a clean git repo cloning so i missed to comment out everything in lines 144-167 in purr-data/externals/Makefile, then now i commentig out lines 134-138 in purr-data/packages/win32_inno/Makefile and adding always in purr-data/packages/win32_inno/Makefile at line 147
install -p $(bin_src)/libgcc_s_seh-1.dll $(DESTDIR)$(bindir)
...report as soon as building process will end.
Purr Data 2.5.0
@jancsika failed buid...here's attached the super long log in .txt and .sh formatspurr-data-w64-build-log.txt purr-data-w64-build-log.sh
but basically the last lines are critical (i guess other stuff is related to external libraries troubles with win64 platform...is GEN ready for win64 i.e.?)
make[2]: *** [Makefile:106: /c/purr-data/purr-data/externals/creb/modules/dynwav~.o] Error 1
make[2]: Leaving directory '/c/purr-data/purr-data/externals'
make[1]: *** [Makefile:209: externals_install] Error 2
make[1]: Leaving directory '/c/purr-data/purr-data/packages'
make: *** [Makefile:69: prebuilt_install] Error 2
copying pd-l2ork-specific externals...
done with l2ork addons.
mv: cannot stat 'packages/win32_inno/Output/Purr*.exe': No such file or directory
./tar_em_up.sh: 397: command failed with exit code 1, exiting now.
./tar_em_up.sh: 397: mv packages/win32_inno/Output/Purr*.exe .


