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.
how to install gem library in pd
@maddynakedymaddy A bit hard to work out like this at a distance....
If you have put the "contents" of the 0.94-test3 folder in a folder called Gem inside the extra folder then you will need to put....... exactly....
C:/Program_Files_(x86)/Pd/extra/Gem/Gem
If you have put the 0.94-test3 folder in a folder called Gem inside the extra folder then you will need to put........ exactly.......
C:/Program_Files_(x86)/Pd/extra/Gem/0.94-test3/Gem
In both cases the last "Gem"..... /Gem loads the Gem.dll (the library) in the folder that contains it...... it is a bit confusing... and "abnormal"....
Spaces in names are not tolerated in Pd, and spaces are not tolerated in paths in Windows7 or previous versions....... Windows 10? I don't know?
Backslashes...... \ .... are dropped (ignored) in Pd..... they need to be forwards....... /
David.
how to install gem library in pd
@maddynakedymaddy Do you get these lines in terminal? or others? (obviously not the same paths though)
tried C:/Users/David/Desktop/dot/0.94-test3/Gem.dll and succeeded
GEM: Graphics Environment for Multimedia
GEM: ver: 0.93.CVS
GEM: compiled: Sep 22 2014
GEM: compiled for MMX/SSE2 architecture
GEM: using SSE2 optimization
GEM: detected 8 CPUs
GEM: image loading support: QT SGI
GEM: image saving support: QT SGI
Probably you get others...... as it is not working.
What do you get?
You might simply need to to set startup preferences like this (again...... not "desktop/david"...put whatever your path is.....)
You need the complete path to the "Gem" within 0.94-test3. It is documented somewhere. "Gem" is the library, not the folder that contains Gem.dll ..... It must be Gem with a capital, and without the extension.
You don't need -noautopatch........ it is just one of my preferences.
David.
Included externals are not being loaded by Purr-data
@jancsika the contents of that file (org.puredata.pd-l2ork.default.plist are as follows.... if I had to guess, <string>-helppath ~/Library/Pd -helppath /Library/Pd</string> should be something like Pd-l2ork/Contents/Resources/app.nw/extra instead of ~/Library/Pd ?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>defeatrt</key>
<string>0</string>
<key>flags</key>
<string>-helppath ~/Library/Pd -helppath /Library/Pd</string>
<key>loadlib1</key>
<string>libdir</string>
<key>loadlib2</key>
<string>Gem</string>
<key>loadlib3</key>
<string>cyclone</string>
<key>loadlib4</key>
<string>zexy</string>
<key>loadlib5</key>
<string>creb</string>
<key>loadlib6</key>
<string>cxc</string>
<key>loadlib7</key>
<string>iemlib</string>
<key>loadlib8</key>
<string>list-abs</string>
<key>loadlib9</key>
<string>mapping</string>
<key>loadlib10</key>
<string>markex</string>
<key>loadlib11</key>
<string>maxlib</string>
<key>loadlib12</key>
<string>memento</string>
<key>loadlib13</key>
<string>mjlib</string>
<key>loadlib14</key>
<string>motex</string>
<key>loadlib15</key>
<string>oscx</string>
<key>loadlib16</key>
<string>pddp</string>
<key>loadlib17</key>
<string>pdogg</string>
<key>loadlib18</key>
<string>pixeltango</string>
<key>loadlib19</key>
<string>pmpd</string>
<key>loadlib20</key>
<string>rradical</string>
<key>loadlib21</key>
<string>sigpack</string>
<key>loadlib22</key>
<string>smlib</string>
<key>loadlib23</key>
<string>unauthorized</string>
<key>loadlib24</key>
<string>vbap</string>
<key>loadlib25</key>
<string>pan</string>
<key>loadlib26</key>
<string>hcs</string>
<key>loadlib27</key>
<string>jmmmp</string>
<key>loadlib28</key>
<string>ext13</string>
<key>loadlib29</key>
<string>ggee</string>
<key>loadlib30</key>
<string>iem_anything</string>
<key>loadlib31</key>
<string>ekext</string>
<key>loadlib32</key>
<string>pdp</string>
<key>loadlib33</key>
<string>disis</string>
<key>loadlib34</key>
<string>lyonpotpourri</string>
<key>nloadlib</key>
<string>34</string>
<key>path1</key>
<string>/System/Library/Fonts</string>
<key>path2</key>
<string>/Library/Fonts</string>
<key>path3</key>
<string>~/Library/Fonts</string>
<key>path4</key>
<string>/usr/X11R6/lib/X11/fonts/TTF</string>
<key>path5</key>
<string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts</string>
<key>npath</key>
<string>5</string>
</dict>
</plist>
Load Libraries, plug-ins
@Balwyn I've follow your steps but still nothing this is what i got in the console:
'pd-gui' connecting to 'pd' on localhost 5400 ...
------------------ done with main ----------------------
Default font: DejaVu Sans Mono
tried ./Gem.m_i386 and failed
tried ./Gem.dll and failed
tried ./Gem/Gem.m_i386 and failed
tried ./Gem/Gem.dll and failed
tried ./Gem.pd and failed
tried ./Gem.pat and failed
tried ./Gem/Gem.pd and failed
tried C:/Users/Jose/pd-externals/Gem.m_i386 and failed
tried C:/Users/Jose/pd-externals/Gem.dll and failed
tried C:/Users/Jose/pd-externals/Gem/Gem.m_i386 and failed
tried C:/Users/Jose/pd-externals/Gem/Gem.dll and succeeded
C:\Users\Jose\pd-externals\Gem\Gem.dll: couldn't load
tried C:/Users/Jose/pd-externals/Gem.pd and failed
tried C:/Users/Jose/pd-externals/Gem.pat and failed
tried C:/Users/Jose/pd-externals/Gem/Gem.pd and failed
tried C:/Users/Jose/pd-externals/Gem/Gem.m_i386 and failed
tried C:/Users/Jose/pd-externals/Gem/Gem.dll and succeeded
C:\Users\Jose\pd-externals\Gem\Gem.dll: couldn't load
tried C:/Users/Jose/pd-externals/Gem/Gem.pd and failed
tried C:/Users/Jose/pd-externals/Gem/Gem.pat and failed
tried C:/Users/Jose/pd-externals/Gem/Gem/Gem.pd and failed
Gem: can't load library
Loading plugin: C:/Program Files (x86)/Pd/tcl/pd_deken.tcl
The Pd window filtered 26 lines
The Pd window filtered 27 lines
Gem window crashes / Install struggles on Ubuntu
Please help! Sooooo many hours trying to figure this out, should be simple I think but I'm not a sophisticated user of Linux.
The Gem objects appear properly when I open the windows, but whenever I try to open/create a gemwindow, it immediately crashes (however, it seems to respond when I change the data - for instance, I can see color changes when i make those changes, but again, the gem window crashes immediately...)
A possible solution lies here but haven't been able to get a response when I attempt to implement this
"
Why does Gem crash when creating the Gem-window? !
When I try to create a Gem-window, my X-server crashes (or worse)? btw, I am using Ubuntu/hoary with fglrx drivers.
quick
try setting the environment variable GEM_SINGLE_CONTEXT to 1
explanation
Gem establishes an (invisible) openGL-context at startup, even if no Gem-window is created yet. When you create the Gem-window, a 2nd openGL-context is used (which shares some properties with the invisible context).
For some reasons this seems to be not possible with some gfx-drivers (e.g. ATI's proprietary fglrx drivers) and some window-managers (i suspect compiz/beryll), leading to crashes of the X-server and/or system freezes.
The current workaround is to set the environment variable GEM_SINGLE_CONTEXT=1, which prevents this dual-context magic.
how?
if you are starting Pd from the bash, you can start Pd/Gem with GEM_SINGLE_CONTEXT=1 pd -lib Gem
on bash, you can also set this permanently by adding a the line export GEM_SINGLE_CONTEXT=1 to either ~/.bashrc (the bash-configuration file in your home-directory) or to /etc/bash.bashrc (to set it for all users)
"
- newer linux user but though I followed compiling instructions for installing Gem, it seems never to create a conf file.. when I open pd-extended in terminal, I get this message:
open: ./gem.conf: No such file or directory
any thoughts or input would be VERY APPRECIATED, thanks!
GEM error
I know this has been asked a few hundred thousand times- i know because i've been reading everything i can find. But most of the documentation and posts are apparently outdated, or don't seem to work for me.
I had been learning pure data for a few weeks about a year ago using pd extended, but noticed that the libs haden't been updated for a long time, so when i got back into it yesterday i decided to start with the nonextended version.
At first i didn't realize that Gem isn't a standard library, so downloaded it, installed, eventually found that someone suggested to go to edit/preferences/startup, make a new entry and just type "gem" and add it. I did that, restarted. The log window still shows a lot of error messages, it looks like PD is searching for two files:
gem.dll
Gem.m_i386
There are a lot of lines that indicated tried and failed for both, but eventually i see "succeeded" for gem.dll, but not for Gem.m_i386.
Anyway i 'put' an object called gemwin and two messages, create and destroy and link them both to gemwin after creating a new project, then switch to run mode ctrl-e and click on create. Nothing happens. It should make a black, empty gem window, but it doesn't.
In the log window, there are no entries added after clicking on create/destroy, i don't know what i'm doing wrong, can someone suggest what to do?
I've been reading for hours, a lot of pages suggest where to look, but have dead links, or the suggestion didn't help, any ideas?
I pasted below the full startup log (the full log using the "all" option).
Thanks:)
Rob T
------------------ done with main ----------------------
input channels = 2, output channels = 2
Default font: DejaVu Sans Mono
tried ./Gem.m_i386 and failed
tried C:/Users/me/AppData/Roaming/Pd/Gem.m_i386 and failed
tried C:/Program Files (x86)/Common Files/Pd/Gem.m_i386 and failed
tried C:/Program Files (x86)/pd/extra/Gem.m_i386 and failed
tried ./Gem.dll and failed
tried C:/Users/me/AppData/Roaming/Pd/Gem.dll and failed
tried C:/Program Files (x86)/Common Files/Pd/Gem.dll and failed
tried C:/Program Files (x86)/pd/extra/Gem.dll and failed
tried ./Gem/Gem.m_i386 and failed
tried C:/Users/me/AppData/Roaming/Pd/Gem/Gem.m_i386 and failed
tried C:/Program Files (x86)/Common Files/Pd/Gem/Gem.m_i386 and failed
tried C:/Program Files (x86)/pd/extra/Gem/Gem.m_i386 and failed
tried ./Gem/Gem.dll and failed
tried C:/Users/me/AppData/Roaming/Pd/Gem/Gem.dll and failed
tried C:/Program Files (x86)/Common Files/Pd/Gem/Gem.dll and failed
tried C:/Program Files (x86)/pd/extra/Gem/Gem.dll and succeeded
GEM: Graphics Environment for Multimedia
GEM: ver: 0.93.3
GEM: compiled: Nov 10 2011
GEM: maintained by IOhannes m zmoelnig
GEM: Authors : Mark Danks (original version)
GEM: Chris Clepper
GEM: Cyrille Henry
GEM: IOhannes m zmoelnig
GEM: with help by Guenter Geiger, Daniel Heckenberg, James Tittle, Hans-Christoph Steiner, et al.
GEM: found a bug? miss a feature? please report it:
GEM: homepage http://gem.iem.at/
GEM: bug-tracker http://sourceforge.net/projects/pd-gem/
GEM: mailing-list http://lists.puredata.info/listinfo/gem-dev/
GEM: compiled for SIMD architecture: SSE2 MMX
GEM: using SSE2 optimization
The Pd window filtered 40 lines
The Pd window filtered 41 lines```
Install PD extend on Ubuntustudio
I just installed Ubuntustudio 15.10 Wily Werewolf 32bit on a thinkpad and I am trying to upgrade PD to extend. I am fairly new to linux but it seems like the instructions on https://puredata.info/docs/faq/debian fails.
This is the log from executing the commands. Any suggestions and help will be appreciated
myuser@machine:~$ sudo add-apt-repository "deb http://apt.puredata.info/releases `lsb_release -c | awk '{print $2}'` main"[sudo] password for zoundart:
myuser@machine:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 9f0fe587374bbe81
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.beJyKhm5Lr --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-key 9f0fe587374bbe81
gpg: requesting key 374BBE81 from hkp server keyserver.ubuntu.com
gpg: key 374BBE81: "Hans-Christoph Steiner <hans@guardianproject.info>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
myuser@machine:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key D63D3D09C39F5EEB
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.BDfXAe3l5j --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-key D63D3D09C39F5EEB
gpg: requesting key C39F5EEB from hkp server keyserver.ubuntu.com
gpg: key C39F5EEB: "Launchpad Pure Data" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
myuser@machine:~$ sudo apt-get update
Hit http://no.archive.ubuntu.com wily InRelease
Get:1 http://no.archive.ubuntu.com wily-updates InRelease [64,4 kB]
Get:2 http://no.archive.ubuntu.com wily-backports InRelease [64,5 kB]
Get:3 http://security.ubuntu.com wily-security InRelease [64,4 kB]
Ign http://apt.puredata.info wily InRelease
Ign http://apt.puredata.info wily Release.gpg
Ign http://apt.puredata.info wily Release
Get:4 http://security.ubuntu.com wily-security/main Sources [17,0 kB]
Get:5 http://no.archive.ubuntu.com wily-updates/main Sources [24,1 kB]
Get:6 http://no.archive.ubuntu.com wily-updates/restricted Sources [3 741 B]
Get:7 http://security.ubuntu.com wily-security/restricted Sources [2 854 B]
Get:8 http://no.archive.ubuntu.com wily-updates/universe Sources [6 112 B]
Get:9 http://no.archive.ubuntu.com wily-updates/multiverse Sources [1 922 B]
Get:10 http://security.ubuntu.com wily-security/universe Sources [3 691 B]
Get:11 http://no.archive.ubuntu.com wily-updates/main i386 Packages [59,3 kB]
Get:12 http://no.archive.ubuntu.com wily-updates/restricted i386 Packages [13,4 kB]
Get:13 http://security.ubuntu.com wily-security/multiverse Sources [1 922 B]
Get:14 http://no.archive.ubuntu.com wily-updates/universe i386 Packages [31,0 kB]
Get:15 http://no.archive.ubuntu.com wily-updates/multiverse i386 Packages [6 052 B]
Get:16 http://security.ubuntu.com wily-security/main i386 Packages [43,4 kB]
Err http://apt.puredata.info wily/main i386 Packages
404 Not Found
Ign http://apt.puredata.info wily/main Translation-en_US
Get:17 http://no.archive.ubuntu.com wily-backports/main Sources [750 B]
Get:18 http://security.ubuntu.com wily-security/restricted i386 Packages [10,8 kB]
Get:19 http://no.archive.ubuntu.com wily-backports/restricted Sources [28 B]
Ign http://apt.puredata.info wily/main Translation-en
Get:20 http://no.archive.ubuntu.com wily-backports/universe Sources [833 B]
Get:21 http://no.archive.ubuntu.com wily-backports/multiverse Sources [28 B]
Get:22 http://no.archive.ubuntu.com wily-backports/main i386 Packages [606 B]
Get:23 http://security.ubuntu.com wily-security/universe i386 Packages [24,8 kB]
Get:24 http://no.archive.ubuntu.com wily-backports/restricted i386 Packages [28 B]
Get:25 http://no.archive.ubuntu.com wily-backports/universe i386 Packages [714 B]
Get:26 http://security.ubuntu.com wily-security/multiverse i386 Packages [6 052 B]
Get:27 http://no.archive.ubuntu.com wily-backports/multiverse i386 Packages [28 B]
Hit http://no.archive.ubuntu.com wily-backports/multiverse Translation-en
Hit http://no.archive.ubuntu.com wily-backports/restricted Translation-en
Get:28 http://security.ubuntu.com wily-security/main Translation-en [23,2 kB]
Hit http://no.archive.ubuntu.com wily/main Sources
Hit http://no.archive.ubuntu.com wily/restricted Sources
Hit http://no.archive.ubuntu.com wily/universe Sources
Get:29 http://security.ubuntu.com wily-security/multiverse Translation-en [2 536 B]
Hit http://no.archive.ubuntu.com wily/multiverse Sources
Hit http://no.archive.ubuntu.com wily/main i386 Packages
Hit http://no.archive.ubuntu.com wily/restricted i386 Packages
Hit http://no.archive.ubuntu.com wily/universe i386 Packages
Get:30 http://security.ubuntu.com wily-security/restricted Translation-en [2 666 B]
Hit http://no.archive.ubuntu.com wily/multiverse i386 Packages
Hit http://no.archive.ubuntu.com wily/main Translation-en
Hit http://no.archive.ubuntu.com wily/multiverse Translation-en
Hit http://no.archive.ubuntu.com wily/restricted Translation-en
Get:31 http://security.ubuntu.com wily-security/universe Translation-en [15,2 kB]
Hit http://no.archive.ubuntu.com wily/universe Translation-en
Hit http://no.archive.ubuntu.com wily-updates/main Translation-en
Hit http://no.archive.ubuntu.com wily-updates/multiverse Translation-en
Hit http://no.archive.ubuntu.com wily-updates/restricted Translation-en
Hit http://no.archive.ubuntu.com wily-updates/universe Translation-en
Hit http://no.archive.ubuntu.com wily-backports/main Translation-en
Hit http://no.archive.ubuntu.com wily-backports/universe Translation-en
Fetched 496 kB in 7s (70,7 kB/s)
W: Failed to fetch http://apt.puredata.info/releases/dists/wily/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
myuser@machine:~$ sudo apt-get install pd-extended
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package pd-extended is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'pd-extended' has no installation candidate
Newb can't use GEM
Hi, thought I'd post here even thought the thread is old before starting a new topic because my problem is exactly that as described here, though none of the suggestions have help and no one seems to have my exact error console output, which is as follows:
WARNING: Font family 'Courier' not found, using default (DejaVu Sans Mono)
tried ./gem.l_i386 and failed
tried /usr/lib/pd/extra/Gem/gem.l_i386 and failed
tried /usr/lib/puredata/extra/gem.l_i386 and failed
tried /home/digithree/pd-externals/gem.l_i386 and failed
tried /usr/local/lib/pd-externals/gem.l_i386 and failed
tried /usr/lib/puredata/extra/gem.l_i386 and failed
tried /usr/lib/pd/extra/gem.l_i386 and failed
tried ./gem.pd_linux and failed
tried /usr/lib/pd/extra/Gem/gem.pd_linux and failed
tried /usr/lib/puredata/extra/gem.pd_linux and failed
tried /home/digithree/pd-externals/gem.pd_linux and failed
tried /usr/local/lib/pd-externals/gem.pd_linux and failed
tried /usr/lib/puredata/extra/gem.pd_linux and failed
tried /usr/lib/pd/extra/gem.pd_linux and failed
tried ./gem/gem.l_i386 and failed
tried /usr/lib/pd/extra/Gem/gem/gem.l_i386 and failed
tried /usr/lib/puredata/extra/gem/gem.l_i386 and failed
tried /home/digithree/pd-externals/gem/gem.l_i386 and failed
tried /usr/local/lib/pd-externals/gem/gem.l_i386 and failed
tried /usr/lib/puredata/extra/gem/gem.l_i386 and failed
tried /usr/lib/pd/extra/gem/gem.l_i386 and failed
tried ./gem/gem.pd_linux and failed
tried /usr/lib/pd/extra/Gem/gem/gem.pd_linux and failed
tried /usr/lib/puredata/extra/gem/gem.pd_linux and failed
tried /home/digithree/pd-externals/gem/gem.pd_linux and failed
tried /usr/local/lib/pd-externals/gem/gem.pd_linux and failed
tried /usr/lib/puredata/extra/gem/gem.pd_linux and failed
tried /usr/lib/pd/extra/gem/gem.pd_linux and failed
gem: can't load library
input channels = 2, output channels = 2
audio buffer set to 25
opened input device name hw:0
configuring sound input...
Sample width set to 2 bytes
configuring sound output...
Sample width set to 2 bytes
tried but couldn't sync A/D/A
So I've added the word "gem" (with no quotes) to the Startup list, and the external library locations (whose paths can be seen in the above output) yet it doesn't work.
Any ideas? I've verified that both pd and gem are installed and at the lastest version. I'm using Ubuntu 11.10
Thanks
GEM with Sound
Hello, morganevansweiler:
I do not use OSX but GNU/Linux.
There was this post sometime ago:
http://puredata.hurleur.com/sujet-5515-gem-alternative-guis
in which katjav used a bash script to launch two instances of Pd. I paste that part below, which is also in the thread above:
<cite from Katjav>
-That's a good idea to start a -noaudio Pd for the GEM GUI.
OSX does not like to start two instances of a process, but there is a syntax to do it from a single terminal window. As a script (example):
#!/bin/bash
/Applications/Pd-extended.app/Contents/Resources/bin/pd /Users/katja/pd/Slicejockey/SliceJockey.pd &
/Applications/Pd-extended.app/Contents/Resources/bin/pd -noaudio /Users/katja/pd/GEMdingen/draggable-guis/1WaveRefinery.pd
The '&' option does it.
Now you would need a different script for each OS, and even for each user because paths are always different. I'm thinking of ways how to make this user friendly so the patches can be shared without the user selecting and rewriting the correct script.
Say you first open the audio patch in a Pd with gui and audio. On that patch is [ggee/getdir] to find the working directory and the GUI patch. Now it would be great to open a second Pd with -noaudio and load the GUI patch, from *within* the first Pd. There is a variety of shell objects for Pd:
[motex/system], [ggee/shell], [flatspace/open] and [moonlib/open]. They all work different and it's easier to crash Pd with them than get anything useful done, like starting a second Pd. I have not yet succeeded in this. Further, to make it work for everybody, the path to the Pd executable should be somehow found in runtime. I have the feeling that these things can be solved.
<end of cite from Katjav>
Anyway, I recommend you to read that thread so you can catch up with the twin instances topic.
Good luck!
Sumidero