Purr Data Linux-64 and GEM?
Ok, here in Puppy-Linux apt-get is not installed.
Now I installed libftgl2_2.1.3 successfully with the package manager.
Doing the same as before
[Gem] creates! Yes!
In the commandline (linux-console) [shortened]:
pd-l2ork -noprefs -nostdpath -nrt -verbose
Pd-L2Ork version 2.4.6 (20171213-rev.46ffba3)
compiled 22:30:53 Dec 13 2017
port 5401
guidir is /usr/lib/pd-l2ork/bin
"/usr/lib/pd-l2ork/bin"/nw/nw --user-data-dir="/root/.config/purr-data" "/usr/lib/pd-l2ork/bin" 5401 localhost pd-l2ork "/usr/lib/pd-l2ork/bin" xf3c100Waiting for connection request...
[0426/002010.733670:WARNING:chrome_main_delegate.cc(565)] final extension:
... connected
/etc/pd/gem.conf: No such file or directory
/root/.config/pure-data/gem.conf: No such file or directory
./gem.conf: No such file or directory
load plugins 'film' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_film*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmAVIPLAY.so'!
library loading returned: dlerror 'libaviplay-0.7.so.0: cannot open shared object file: No such file or directory'
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmGMERLIN.so'!
library loading returned: dlerror 'libgmerlin_avdec.so.1: cannot open shared object file: No such file or directory'
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmMPEG3.so'!
library loading returned: dlerror 'libmpeg3.so.2: cannot open shared object file: No such file or directory'
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmQT4L.so'!
library loading returned: dlerror 'libquicktime.so.2: cannot open shared object file: No such file or directory'
[...]
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageMAGICK.so'!
library loading returned: dlerror 'libMagick++-6.Q16.so.5: cannot open shared object file: No such file or directory'
[...]
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageMAGICK.so'!
library loading returned: dlerror 'libMagick++-6.Q16.so.5: cannot open shared object file: No such file or directory'
[...]
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so'!
library loading returned: dlerror 'libquicktime.so.2: cannot open shared object file: No such file or directory'
[...]
There are some more libs missing, maybe I should install them too?
All the examples of Gem seem to work now!
Even the teapod and openGL stuff.
And my final patches, also work. So nice!
Now I will review what those flags actually do:
https://puredata.info/docs/faq/commandline
But I am wondering, if I was lucky, that Gem is programmed for printing messages in the commandline and other non-working libraries probably won't do so?
Thank you so much
Purr Data Linux-64 and GEM?
Welcome to Purr Data
warning: your system's font stack is not optimal
Pd has started the GUI
canvasinfo: v0.1
stable canvasinfo methods: args dir dirty editmode vis
pdinfo: v.0.1
stable pdinfo methods: dir dsp version
classinfo: v.0.1
stable classinfo methods: size
objectinfo: v.0.1
stable objectinfo methods: class
[import] $Revision: 1.2 $
[import] is still in development, the interface could change!
compiled against Pd-l2ork version 2.4.6 (20171213-rev.46ffba3)
input channels = 2, output channels = 2
working directory is /usr/lib/pd-l2ork/extra/Gem
input channels = 2, output channels = 2
audio buffer set to 50
opened input device name hw:0
configuring sound input...
Sample width set to 4 bytes
configuring sound output...
Sample width set to 4 bytes
error: audio I/O dropout
tried but couldn't sync A/D/A
tried /usr/lib/pd-l2ork/extra/Gem/Gem.l_ia64 and failed
tried /usr/lib/pd-l2ork/extra/Gem/Gem.pd_linux and succeeded
verbose( 1):/usr/lib/pd-l2ork/extra/Gem/Gem.pd_linux: libftgl.so.2: cannot open shared object file: No such file or directory
tried /usr/lib/pd-l2ork/extra/Gem/Gem.pd and failed
tried /usr/lib/pd-l2ork/extra/Gem/Gem.pat and failed
tried /usr/lib/pd-l2ork/extra/Gem/Gem/Gem.pd and failed
Gem
... couldn't create
libftgl is missing?
Purr Data Linux-64 and GEM?
@jancsika said:
ls /usr/lib/pd-l2ork/extra/Gem/Gem*
ls /usr/lib/pd-l2ork/extra/Gem/Gem*
/usr/lib/pd-l2ork/extra/Gem/Gem.la
/usr/lib/pd-l2ork/extra/Gem/Gem-meta.pd
/usr/lib/pd-l2ork/extra/Gem/Gem.pd_linux
/usr/lib/pd-l2ork/extra/Gem/GemPrimer.pdf
du -h /usr/lib/pd-l2ork/extra/Gem/Gem*
du -h /usr/lib/pd-l2ork/extra/Gem/Gem*
4.0K /usr/lib/pd-l2ork/extra/Gem/Gem.la
4.0K /usr/lib/pd-l2ork/extra/Gem/Gem-meta.pd
5.6M /usr/lib/pd-l2ork/extra/Gem/Gem.pd_linux
568K /usr/lib/pd-l2ork/extra/Gem/GemPrimer.pdf
PD-Vanilla will not load PD-Externals--Mint Linux
Hello, I am able to load a couple of PD externals. I am using Pd 0.46.7 on Linux Mint 18.2 Cinnamon 64-bit. I am using the find externals command under the help menu. I see the directories in my ~pd-externals folder. But when I try and use objects like [counter] that are supposed to be in these externals I get a can"t create error?
I get this message when I start PD
sys_midiapi 1
input channels = 2, output channels = 2
priority 6 scheduling failed; running at normal priority
tried /home/lulujoe13/pd-externals/zexy.l_ia64 and failed
tried /home/lulujoe13/pd-externals/zexy.pd_linux and failed
tried /home/lulujoe13/pd-externals/zexy/zexy.l_ia64 and failed
tried /home/lulujoe13/pd-externals/zexy/zexy.pd_linux and failed
/home/lulujoe13/pd-externals/zexy: can't load library
tried /home/lulujoe13/pd-externals/cyclone.l_ia64 and failed
tried /home/lulujoe13/pd-externals/cyclone.pd_linux and failed
tried /home/lulujoe13/pd-externals/cyclone/cyclone.l_ia64 and failed
tried /home/lulujoe13/pd-externals/cyclone/cyclone.pd_linux and succeeded
Cyclone 0.3 beta 2; Released: June 19th, 2017
This is a sub library containing the objects:
[!-], [!-~], [!/], [!/~], [!=~], [%~], [+=~], [<=~], [<~], [==~], [>=~] and [>~]
tried /home/lulujoe13/pd-externals/upp.l_ia64 and failed
tried /home/lulujoe13/pd-externals/upp.pd_linux and failed
tried /home/lulujoe13/pd-externals/upp/upp.l_ia64 and failed
tried /home/lulujoe13/pd-externals/upp/upp.pd_linux and failed
/home/lulujoe13/pd-externals/upp: can't load library
tried /home/lulujoe13/pd-externals/Gem.l_ia64 and failed
tried /home/lulujoe13/pd-externals/Gem.pd_linux and failed
tried /home/lulujoe13/pd-externals/Gem/Gem.l_ia64 and failed
tried /home/lulujoe13/pd-externals/Gem/Gem.pd_linux and succeeded
/home/lulujoe13/pd-externals/Gem/Gem.pd_linux: libftgl.so.2: cannot open shared object file: No such file or directory
/home/lulujoe13/pd-externals/Gem: can't load library
deken-plugin.tcl (Pd externals search) in /home/lulujoe13/pd-externals/deken-plugin loaded.
Platform detected: Linux-x86_64-64bit
'deken-plugin.tcl' already loaded, ignoring: '/home/lulujoe13/pd-externals/deken-plugin/deken-plugin.tcl'
Opened Alsa Client 128 in:0 out:2
counter 1
... couldn't create
Can anyone offer suggestions and help? Thanks. JoeF.
Is GEM still included in Purr-data and or Pd-l2Ork for Mac OS 64bit?
@casper Basically because I couldn't get a 64-bit build of GEM working on OSX.
Also, GEM takes a long time to build, and it requires a lot of dependencies. This makes it difficult to test and iteratively develop.
Additionally, I have the aim with Purr Data to make it as straightforward as possible to build Purr Data on each platform. For OSX this means depending only on the packages available in Homebrew. It also means that I don't want to force the user to make any manual tweaks or manual compile other dependencies to get it to work.
Finally-- I'm currently using an old version of GEM on Linux and Windows because it's known to work. If someone sends me a patch to make GEM work with 64-bit Purr Data on OSX, I'd also need to test to make sure it also works under Linux and Windows. However, that shouldn't be too difficult as I now have some infrastructure to automate such tests.
Gem for 64-bit OSX
@jancsika yes I did everything from homebrew, other than gmerlin which ultimately failed.. I did
./configure --with-libvlc-CFLAGS=-I/Applications/VLC.app/Contents/MacOS/include --with-libvlc-LIBS="-L/Applications/VLC.app/Contents/MacOS/lib -lvlc" --with-pd=/Applications/Pd.app/Contents/Resources --without-QuickTime-framework --without-Carbon-framework --with-defaultwindow=gemcocoawindow
and make install DEST=~/Library/Pd libdir=~/Library/Pd prefix=~/Library/Pd/stuff/lib
then I install_name_tool'ed the .so files in the main directory for the following libs from Homebrew, and put them in stuff/lib (and install_name_tooled them also where necessary):
libltdl.7.dylib
libMagickCore-7.Q16HDRI.4.dylib
liblzma.5.dylib
libfreetype.6.dylib
libpng16.16.dylib
libftgl.2.dylib
libtiff.5.dylib
libjpeg.9.dylib:
I also changed all the help files & examples to include [declare -stdlib Gem]
I used these 2 pages:
https://github.com/umlaeute/Gem/wiki/Getting-Started:-Working-on-native-64-bit-OSX-Plugins
https://github.com/umlaeute/Gem/wiki/How-to-build-Gem-on-MacOSX-Mavericks
@beep.beep I think I got the VLC lib compiled on my first try (though I had some trouble afterwards for some reason). However, I'm not sure how to test it because the help file is just some send objects??
Anyway, the Gem I posted has the .so file correctly linked (I believe) with the assumption that VLC is in Applications
Gem for 64-bit OSX
Coincidentally, I've been working on the same thing myself for the past several days. I succeeded in compiling Gem on OSX 10.12 with Pd 0.47.1 (64 bit), using an amalgam of these instructions:
As seb noted, no quicktime film/video support, and I also get the extra dock icon & Pd crashing sometimes when I close my patch.
Having noticed this conversation the other day, I tried compiling Gem against Purr Data 2.3.1 using the same general method, but didn't get far at all. I didn't save the errors, but got a sense that it'd be much more involved than just adjusting paths to Pd-l2ork/Contents/Resources...
I haven't tried to compile the gmerlin plugin, but I have the imageJPEG plugin working, and I've spent many hours trying to get videoVLC working. There are several mailing list discussions which suggest that the problem might be with gem_videoVLC.so (perhaps not pointing to libvlc.5.dylib correctly, either needing editing or symlinking?).
I'm reaching the limits of my meager hacking abilities, but nonetheless it's pretty exciting to have Gem back up & running on 64 bit! I'm happy to join the cause if others are also interested in trying to work out the kinks in enabling the rest of the workaround plugins (gmerlin, videoVLC), and hopefully also find a way to get Gem working on Purr Data.
Purr Data on OS X with GEM external, is it possible?
@Doug_Meatloaf I maintain Purr Data.
I tried compiling Gem using these instructions:
https://github.com/umlaeute/Gem/wiki/Getting-Started:-Working-on-native-64-bit-OSX-Plugins
I took a shot at compiling using those instructions but couldn't get Gem to work. You can see the error I got in this thread:
https://forum.pdpatchrepo.info/topic/10803/a-few-questions-about-pd-l2ork-purr-data-on-osx/12
If someone can get those instructions to produce a working version of Gem, and then test to make sure the same version of Gem compiles and runs successfully on Windows and Linux (where I'm currently using an old bug-fixed version of Gem as a stop-gap), I'll happily accept a merge request at
A few questions about Pd-L2ork/Purr Data on osX
I don't know if it helps but there are a lot of useful instructions on how to built gem in umläute's ghithub wiki page:
https://github.com/umlaeute/Gem/wiki/Getting-Started:-Working-on-native-64-bit-OSX-Plugins#
I took a shot at this on OSX VM. It compiled ok. It installed in /Gem for some reason but I could at least get Purr Data to load the Gem lib.
Unfortunately I couldn't create a gem window in any of the help patches:
error: [gemcocoawindow]: failed to init GLEW: your system only supports openGL-1.0
I don't have time to debug or develop Gem. But if someone can successfully get it to compile, install, successfully create a Gem window, and write clear unambiguous instructions on how to achieve all of that then I'll take it from there. (And again, the discipline is only to use brew install
and the build instructions at the link above.)
A few questions about Pd-L2ork/Purr Data on osX
@whale-av said:
@jancsika I would not know how, and maybe the readme is an old one copied over?
There are other files in the download that are specific osx though........
Those are most likely for building Gem as a 32-bit library.
The constraints for including Gem in the OSX version of Purr Data are the following:
- all Gem dependencies must be met with Homebrew's
brew install
command. - must be built as a 64-bit library
- no special Purr Data-specific hot-patching, just simple build instructions (possibly including configure flags)
If anybody gives me instructions on how to build Gem within those constraints under OSX, I'll make the necessary changes to include Gem on OSX for the next Purr Data release.