[PD] Rép : PDGST - no pix_gst2pix... and building Gem 0.93 with mac OS 10.6

x.garnier x.garnier at orange.fr
Fri Nov 11 10:53:17 CET 2011


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 :
- 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...)

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-----
> 




More information about the Pd-list mailing list