First of all, thank you very much for the Mac_os binary version of Gem 0.93.2. Looks fine with Pd-extended 0.42.5. So, I'm now focusing on trying to make the pdgst functions work. More specifically that pix_gst2pix I need for my project (modify streaming webcams with music...) The problem I had was to not be able to make in the pdgst/src/gem folder (pdgst/src looks OK). now here's what Terminal says when I make in pdgst/src/gem :
MacBook-Pro-de-Xavier-Garnier:pdgst musique$ make EXT=pd_darwin EXT=pd_darwin SYSTEMCFLAGS="-fPIC" SYSTEMLDFLAGS="-bundle -undefined dynamic_lookup" make -C src make[1]: Nothing to be done for `current'. make -C src/gem g++ -c -Wall -O2 -fPIC -ffast-math -mmmx -DPDGST_PLUGIN -I/sw/include/gstreamer-0.10 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 -I/sw/include -I../../../../pd/src -I../../../Gem/src -I. -I../../include/ -o "pix_gst2pix.o" -c "pix_gst2pix.cpp" pix_gst2pix.cpp:147:2: warning: #warning LATER store the original pixblock in render() and restore it here ../../include/pdgst/pdgst.h:98: warning: ‘pdgst_version’ defined but not used g++ -c -Wall -O2 -fPIC -ffast-math -mmmx -DPDGST_PLUGIN -I/sw/include/gstreamer-0.10 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 -I/sw/include -I../../../../pd/src -I../../../Gem/src -I. -I../../include/ -o "pdgstGem.o" -c "pdgstGem.cpp" ../../include/pdgst/pdgst.h:98: warning: ‘pdgst_version’ defined but not used g++ --export-dynamic -bundle -undefined dynamic_lookup -o pix_gst2pix.pd_darwin pix_gst2pix.o pdgstGem.o -lc -lm -lgstapp-0.10 -L/sw/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lxml2 -lglib-2.0 -lintl g++ -c -Wall -O2 -fPIC -ffast-math -mmmx -DPDGST_PLUGIN -I/sw/include/gstreamer-0.10 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 -I/sw/include -I../../../../pd/src -I../../../Gem/src -I. -I../../include/ -o "pix_pix2gst.o" -c "pix_pix2gst.cpp" pix_pix2gst.cpp: In member function ‘virtual void pix_pix2gst::render(GemState*)’: pix_pix2gst.cpp:83: warning: comparison between signed and unsigned integer expressions pix_pix2gst.cpp:83: warning: comparison between signed and unsigned integer expressions ../../include/pdgst/pdgst.h: At global scope: ../../include/pdgst/pdgst.h:98: warning: ‘pdgst_version’ defined but not used g++ --export-dynamic -bundle -undefined dynamic_lookup -o pix_pix2gst.pd_darwin pix_pix2gst.o pdgstGem.o -lc -lm -lgstapp-0.10 -L/sw/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lxml2 -lglib-2.0 -lintl
It looks quite correct to me... at least different than all I've gotten so far. (What I've done is :
However, when I open gst2pix.pd, I get the pix_gst2pix function boxed in red and the following message in the console :
/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin: dlopen(/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin, 10): Symbol not found: __ZN11imageStruct7fromRGBEPh Referenced from: /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin Expected in: flat namespace in /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin pix_gst2pix rgba ... couldn't create
once again I don't know where the problem comes from (actually I don't know what it means neither...) what could I do ? thank you so much, Xavier
Le 6 nov. 2011 à 23:19, x.garnier a écrit :
Well Ok to ./configure now and the installation of Gem 0.93.1 is done. I still don't have the pix_drum and co objects in Pd though I have installed pix_drum.la and pix_drum.pd_darwin getting this message taken from the sudo make install of Gem 0.93.1 :
<...>
Finally, I though of the makefile of src/gem containing a "-Shared" that was also in the pdgst/src makefile and that I did replace by "-bundle -undefined dynamic_lookup" as it was advised in a post one day. But it get this...
MacBook-Pro-de-Xavier-Garnier:gem musique$ make g++ --export-dynamic -bundle -undefined dynamic_lookup -o pix_gst2pix.pd_linux pix_gst2pix.o pdgstGem.o -lc -lm -lgstapp-0.10 -L/sw/lib -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lxml2 -lglib-2.0 -lintl g++ -c -Wall -O2 -fPIC -ffast-math -mmmx -DPDGST_PLUGIN -I/sw/include/gstreamer-0.10 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 -I/sw/include -I../../../../pd/src -I../../../Gem/src -I. -I../../include/ -o "pix_pix2gst.o" -c "pix_pix2gst.cpp" pix_pix2gst.cpp: In member function ‘virtual void pix_pix2gst::render(GemState*)’: pix_pix2gst.cpp:87: error: expected primary-expression before ‘if’ pix_pix2gst.cpp:87: error: expected `;' before ‘if’ pix_pix2gst.cpp:93: warning: comparison between signed and unsigned integer expressions pix_pix2gst.cpp:93: warning: comparison between signed and unsigned integer expressions ../../include/pdgst/pdgst.h: At global scope: ../../include/pdgst/pdgst.h:98: warning: ‘pdgst_version’ defined but not used make: *** [pix_pix2gst.o] Error 1 MacBook-Pro-de-Xavier-Garnier:gem musique$ PD_SRC=/Applications/Pd-extended.app/Contents/Resources/include GEM_SRC=/Applications/Pd-extended.app/Contents/Resources/include EXT=pd_darwin SYSTEMCFLAGS="-fPIC" SYSTEMLDFLAGS="-bundle -undefined dynamic_lookup" MacBook-Pro-de-Xavier-Garnier:gem musique$ makeg++ -c -Wall -O2 -fPIC -ffast-math -mmmx -DPDGST_PLUGIN -I/sw/include/gstreamer-0.10 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libxml2 -I/sw/include -I../../../../pd/src -I../../../Gem/src -I. -I../../include/ -o "pix_pix2gst.o" -c "pix_pix2gst.cpp" pix_pix2gst.cpp: In member function ‘virtual void pix_pix2gst::render(GemState*)’: pix_pix2gst.cpp:87: error: expected primary-expression before ‘if’ pix_pix2gst.cpp:87: error: expected `;' before ‘if’ pix_pix2gst.cpp:93: warning: comparison between signed and unsigned integer expressions pix_pix2gst.cpp:93: warning: comparison between signed and unsigned integer expressions ../../include/pdgst/pdgst.h: At global scope: ../../include/pdgst/pdgst.h:98: warning: ‘pdgst_version’ defined but not used make: *** [pix_pix2gst.o] Error 1
I just answer to you because that mail is quite long but if you think it could be useful and if you have a bit of time to answer me you can answer to the list of course.
Thank you for your patience ! Xavier
you need to provide the paths to the Pd-headers with the "--with-pd" flag. e.g. if you have installed Pd-extended and there are headers (m_pd.h) in /Applications/Pd-extended.app/Resources/Contents/include/pd then do: $ ./configure
- --with-pd=/Applications/Pd-extended.app/Resources/Contents/include/pd
fgsadr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk62W2QACgkQkX2Xpv6ydvS8KQCfQdhScR7zkSZy9QGmUHtp2c3V rqUAnRha6eSKYIhi/lRcQGjK2S8W1+vY =DOMG -----END PGP SIGNATURE-----
On 11/11/2011 10:53 AM, x.garnier wrote:
First of all, thank you very much for the Mac_os binary version of Gem 0.93.2. Looks fine with Pd-extended 0.42.5.
great that it works for you.
It looks quite correct to me... at least different than all I've gotten so far. (What I've done is :
- replacing "-shared" by "-bundle -undefined dynamic_lookup" in both the /src and /src/gem makefiles.
- replacing "EXTENSION = .pd_linux" by "EXTENSION = .pd_darwin" in the /src/gem makefile...)
that's correct.
However, when I open gst2pix.pd, I get the pix_gst2pix function boxed in red and the following message in the console :
/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin: dlopen(/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin, 10): Symbol not found: __ZN11imageStruct7fromRGBEPh Referenced from: /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin Expected in: flat namespace in /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin pix_gst2pix rgba ... couldn't create
you need to load Gem before you can use the Gem part of pdgst.
gfmasdr IOhannes
On Nov 11, 2011, at 7:41 AM, IOhannes zmölnig wrote:
On 11/11/2011 10:53 AM, x.garnier wrote:
First of all, thank you very much for the Mac_os binary version of Gem 0.93.2. Looks fine with Pd-extended 0.42.5.
great that it works for you.
It looks quite correct to me... at least different than all I've gotten so far. (What I've done is :
- replacing "-shared" by "-bundle -undefined dynamic_lookup" in both the /src and /src/gem makefiles.
- replacing "EXTENSION = .pd_linux" by "EXTENSION = .pd_darwin" in the /src/gem makefile...)
that's correct.
However, when I open gst2pix.pd, I get the pix_gst2pix function boxed in red and the following message in the console :
/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin: dlopen(/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin, 10): Symbol not found: __ZN11imageStruct7fromRGBEPh Referenced from: /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin Expected in: flat namespace in /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin pix_gst2pix rgba ... couldn't create
you need to load Gem before you can use the Gem part of pdgst.
It would be nice to have a pdgst binaries available, perhaps a jenkins build would help that goal? If you set up the jenkins build, I'll do the work to get gstreamer all installed properly on the build servers, and then embedding them into a deployable folder. I think the build servers already all have gstreamer installed.
.hc
"[T]he greatest purveyor of violence in the world today [is] my own government." - Martin Luther King, Jr.
(reminder : my aim : get live streaming webcams displayed into a gem window...)
Hello again,
I've made a mistake in the subject of my last message and I figure that's why I didn't get any answer (have a look below to my PD console starting message please). I'm still having doubts about having installed PDGST propertly. When I open all of your tests patches pd can create all pdgst objects except dv1394src (linux ?), audio/x-raw and of course the one I would need : pix_gst2pix (and the reciprocal function).
The "simple" thing I'm trying to do to begin with is to reproduce the patch displayed on page 4 of your PDGST.pdf document and even if I've understood that some functions are labelled differently now (such as pdgst_out~ or pix_gstin) it definitely seems that I need that pix_gst2pix to be able to get live streaming webcams displayed into a gem window... I don't know what to do more...
I'm kind of lost by now... sorry about it, Thanks a lot ! Xavier
Le 11 nov. 2011 à 14:25, x.garnier a écrit :
Ok thank you but It appears to me that I'm loading Gem before pdgst... here's the complete console I get when I open pd and then gst2pix (taken from your pdgst/test folder) :
[import] $Revision: 1.2 $ [import] is still in development, the interface could change! compiled against Pd version 0.42.5 libdir loader $Revision: 1.8 $ compiled on Sep 22 2010 at 03:41:35 compiled against Pd version 0.42.5.extended libdir_loader: added 'cyclone' to the global objectclass path <...> libdir_loader: added 'flatspace' to the global objectclass path PDP: pure data packet version 0.12.6 PiDiP : additional video processing objects for PDP version 0.12.26 by Yves Degoyon and Lluis Gomez i Bigorda GEM: Graphics Environment for Multimedia GEM: ver: 0.93.3 GEM: compiled: Nov 10 2011 GEM: maintained by IOhannes m zmoelnig <...> GEM: using SSE2 optimization pdgst $Revision: 0.0 $ (copyleft) IOhannes m zmoelnig @ IEM / KUG compiled on Nov 11 2011 at 10:03:33 compiled against Pd version 0.42.5.extended /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin: dlopen(/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin, 10): Symbol not found: __ZN11imageStruct7fromRGBEPh Referenced from: /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin Expected in: flat namespace in /Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin pix_gst2pix rgba ... couldn't create
many thanks xavier
De : IOhannes zmölnig zmoelnig@iem.at Date : 11 novembre 2011 13:41:59 HNEC À : pd-list@iem.at Objet : Rép : [PD] Rép : PDGST - no pix_gst2pix... and building Gem 0.93 with mac OS 10.6
you need to load Gem before you can use the Gem part of pdgst.
gfmasdr IOhannes
On 11/27/2011 06:20 PM, x.garnier wrote:
(reminder : my aim : get live streaming webcams displayed into a gem window...)
Hello again,
I've made a mistake in the subject of my last message and I figure that's why I didn't get any answer (have a look below to my PD console starting message please). I'm still having doubts about having installed PDGST propertly. When I open all of your tests patches pd can create all pdgst objects except dv1394src (linux ?), audio/x-raw and of course the one I would need : pix_gst2pix (and the reciprocal function).
while i highly appreciate a proper subject, it was not the reason for not answering. i guess it was only so many emails you can write...
The "simple" thing I'm trying to do to begin with is to reproduce the patch displayed on page 4 of your PDGST.pdf document and even if I've understood that some functions are labelled differently now (such as pdgst_out~ or pix_gstin) it definitely seems that I need that pix_gst2pix to be able to get live streaming webcams displayed into a gem window... I don't know what to do more...
- do you think it's a simple problem of loading libraries ?
no
- should I need to check if I've Gstreamer properly installed ? (how can I ?)
i don't think it's the problem. as long as you can create e.g. [videotestsrc], gstreamer is fine.
- should I need to check if some of the test patches work ? (which one should definitely work ? how can I test it ? I don't completely understand each one of them)
hmm, i don't have PdGST installed on my machine here, so i cannot properly answer that question. iirc, there should be an example that does not involve Gem, but only gstreamer objects. that should work,
- should I need to reinstall everything (like pd 0.43 for example) ?
no.
I'm kind of lost by now... sorry about it,
i don't think its is your fault at all.
/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin: dlopen(/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin, 10): Symbol not found: __ZN11imageStruct7fromRGBEPh
this basically means that you have PdGST compiled against a different version of Gem as you are using. Gem (>=0.93) has "imageStruct::fromRGB(const char*)", whereas your error indicates that pix_gst2pix was compiled against a Gem that has "imageStruct::fromRGB(char*)".
make sure to point pdgst to the Gem sources that come with the 0.93.3 binaries (they should be in Gem/dev/ or so)
gfmar IOhannes
YES ! Ok thank you you've found the clue. I've got now a nice pix_gst2pix function working inside a beautiful pdgst library compiled against a great Gem 0.93.3 inside a fantastic PD 0.42.5... it's seems easy but it's days racking my brains... see, you buy a mac saying you won't need to understand command lines and programming and finally you can't deal with the first unusual use of your computer, lazy man I was (am ?) ;) great, now I reach the center of my desires : how can I manage to display a live webcam (not mine, e.g. a random one) only knowing its url ? is it just possible ? do I need to use e.g. VLC to get it, what about an icecast server ? I don't know much about that domain though, that's why my hopes where in that pdgst library to modify webcams with gem...
thank you again Iohannes for your support on getting this thing to work anyway ! cheers, Xavier
Le 27 nov. 2011 à 21:11, IOhannes zmölnig a écrit :
On 11/27/2011 06:20 PM, x.garnier wrote:
(reminder : my aim : get live streaming webcams displayed into a gem window...)
Hello again,
I've made a mistake in the subject of my last message and I figure that's why I didn't get any answer (have a look below to my PD console starting message please). I'm still having doubts about having installed PDGST propertly. When I open all of your tests patches pd can create all pdgst objects except dv1394src (linux ?), audio/x-raw and of course the one I would need : pix_gst2pix (and the reciprocal function).
while i highly appreciate a proper subject, it was not the reason for not answering. i guess it was only so many emails you can write...
The "simple" thing I'm trying to do to begin with is to reproduce the patch displayed on page 4 of your PDGST.pdf document and even if I've understood that some functions are labelled differently now (such as pdgst_out~ or pix_gstin) it definitely seems that I need that pix_gst2pix to be able to get live streaming webcams displayed into a gem window... I don't know what to do more...
- do you think it's a simple problem of loading libraries ?
no
- should I need to check if I've Gstreamer properly installed ? (how can I ?)
i don't think it's the problem. as long as you can create e.g. [videotestsrc], gstreamer is fine.
- should I need to check if some of the test patches work ? (which one should definitely work ? how can I test it ? I don't completely understand each one of them)
hmm, i don't have PdGST installed on my machine here, so i cannot properly answer that question. iirc, there should be an example that does not involve Gem, but only gstreamer objects. that should work,
- should I need to reinstall everything (like pd 0.43 for example) ?
no.
I'm kind of lost by now... sorry about it,
i don't think its is your fault at all.
/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin: dlopen(/Users/musique/Library/Pd/pdgst/src/gem/pix_gst2pix.pd_darwin, 10): Symbol not found: __ZN11imageStruct7fromRGBEPh
this basically means that you have PdGST compiled against a different version of Gem as you are using. Gem (>=0.93) has "imageStruct::fromRGB(const char*)", whereas your error indicates that pix_gst2pix was compiled against a Gem that has "imageStruct::fromRGB(char*)".
make sure to point pdgst to the Gem sources that come with the 0.93.3 binaries (they should be in Gem/dev/ or so)
gfmar IOhannes