<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[External object compiling issue]]></title><description><![CDATA[<p>Hi everybody,</p>
<p>i'm new at Pd platform and want to develop an iCreate Robot/Wiimote control project.</p>
<p>To do that in Pd i need to master in external handling. But, i'm having several problems with simple extras.</p>
<p>I tried to follow the Helloworld tutorial, and succeeded. But when i tried again, with some modifications it stoped working qnd did not return.</p>
<p>My code is exactly the same as the tutorial.</p>
<p>My makefile is the following:</p>
<pre><code>LIB = m_pd.h

CXX = gcc

helloworld.pd_linux: helloworld.o
    ld -export-dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm

helloworld.o: helloworld.c
    $(CXX) -c helloworld.c -o helloworld.o


clean: clean
    rm helloworld.pd_linux helloworld.o

.PHONY: distclean
</code></pre>
<p>on my notebook(running ubuntu 11.04 64bit), the compiling crashs:</p>
<blockquote>
<p>ld -export-dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm<br />
ld: helloworld.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC<br />
helloworld.o: could not read symbols: Bad value<br />
make: ** [helloworld.pd_linux] Erro 1</p>
</blockquote>
<p>In my desktop, it successfully build the helloworld.pd_linux, but on the startup, it fails on the object loading:</p>
<blockquote>
<p>load_object: Symbol &quot;helloworld_setup&quot; not found<br />
helloworld: can't load library</p>
</blockquote>
<p>I've correctly put the helloworld.pd_linux in the /usr/lib/pd-extended/extra/helloworld, and set the directory as a startup path.</p>
<p>Does someone know, what is wrong? I really need to learn how to create external objects fast.</p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 11:09:58 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/5084.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Apr 2011 13:49:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to External object compiling issue on Fri, 29 Apr 2011 13:49:46 GMT]]></title><description><![CDATA[<p>Hi everybody,</p>
<p>i'm new at Pd platform and want to develop an iCreate Robot/Wiimote control project.</p>
<p>To do that in Pd i need to master in external handling. But, i'm having several problems with simple extras.</p>
<p>I tried to follow the Helloworld tutorial, and succeeded. But when i tried again, with some modifications it stoped working qnd did not return.</p>
<p>My code is exactly the same as the tutorial.</p>
<p>My makefile is the following:</p>
<pre><code>LIB = m_pd.h

CXX = gcc

helloworld.pd_linux: helloworld.o
    ld -export-dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm

helloworld.o: helloworld.c
    $(CXX) -c helloworld.c -o helloworld.o


clean: clean
    rm helloworld.pd_linux helloworld.o

.PHONY: distclean
</code></pre>
<p>on my notebook(running ubuntu 11.04 64bit), the compiling crashs:</p>
<blockquote>
<p>ld -export-dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm<br />
ld: helloworld.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC<br />
helloworld.o: could not read symbols: Bad value<br />
make: ** [helloworld.pd_linux] Erro 1</p>
</blockquote>
<p>In my desktop, it successfully build the helloworld.pd_linux, but on the startup, it fails on the object loading:</p>
<blockquote>
<p>load_object: Symbol &quot;helloworld_setup&quot; not found<br />
helloworld: can't load library</p>
</blockquote>
<p>I've correctly put the helloworld.pd_linux in the /usr/lib/pd-extended/extra/helloworld, and set the directory as a startup path.</p>
<p>Does someone know, what is wrong? I really need to learn how to create external objects fast.</p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue</guid><dc:creator><![CDATA[felipefujioka]]></dc:creator><pubDate>Fri, 29 Apr 2011 13:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to External object compiling issue on Fri, 29 Apr 2011 14:08:45 GMT]]></title><description><![CDATA[<p>i found the reason. I had to put my binary on the /usr/lib/pd-extended/extra... not i the .../extra/helloworld.</p>
<p>Don't know why /helloworld did not work. Someone knows?</p>
<p>But my problem with the compilation in the notebook remains, and i need it solved too... it is really weird, cause i have the same version of pd installed in both machines, and it just work in the desktop.</p>
<p>have somebody had the same problem with shared libraries in the externals compilation?</p>
<p>Thx</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue/2</guid><dc:creator><![CDATA[felipefujioka]]></dc:creator><pubDate>Fri, 29 Apr 2011 14:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to External object compiling issue on Fri, 29 Apr 2011 17:37:23 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/felipefujioka">@felipefujioka</a> said:</p>
<blockquote>
<p>i found the reason. I had to put my binary on the /usr/lib/pd-extended/extra... not i the .../extra/helloworld.</p>
<p>Don't know why /helloworld did not work. Someone knows?</p>
</blockquote>
<p>on 2011-04-18, in this thread:</p>
<p><a href="http://puredata.hurleur.com/sujet-3787-doesn-load-all-its-extensions" rel="nofollow">http://puredata.hurleur.com/sujet-3787-doesn-load-all-its-extensions</a></p>
<p>I wrote (amongst many other things) this, in reply to questions of felipefujioka:</p>
<blockquote>
<p>Add directory to searchpath like this:</p>
<p>/usr/lib/pd-extended/extra</p>
<p>So, not with the file name included. Read this:</p>
<p><a href="http://en.flossmanuals.net/pure-data/ch011_advanced-configuration" rel="nofollow">http://en.flossmanuals.net/pure-data/ch011_advanced-configuration</a></p>
</blockquote>
<p>Katja</p>
<p>p.s. that was more than ten days ago. I admire your perseverance, think I would have given up after so long time.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue/3</guid><dc:creator><![CDATA[katjav]]></dc:creator><pubDate>Fri, 29 Apr 2011 17:37:23 GMT</pubDate></item><item><title><![CDATA[Reply to External object compiling issue on Fri, 29 Apr 2011 18:07:40 GMT]]></title><description><![CDATA[<p>Thanks,</p>
<p>i really missread your previous message, in the last topic.</p>
<p>It worked now.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/5084/external-object-compiling-issue/4</guid><dc:creator><![CDATA[felipefujioka]]></dc:creator><pubDate>Fri, 29 Apr 2011 18:07:40 GMT</pubDate></item></channel></rss>