<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for tlensing.org blog</title>
	<atom:link href="http://blog.tlensing.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tlensing.org</link>
	<description>Technology and Digital Media</description>
	<pubDate>Sun, 05 Feb 2012 10:59:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Comment on Installing Mercurial on a Shared Web Server without Root Access (HostEurope) by danne34</title>
		<link>http://blog.tlensing.org/2010/04/12/installing-mercurial-on-a-shared-web-server-without-root-access-hosteurope/#comment-11666</link>
		<dc:creator>danne34</dc:creator>
		<pubDate>Sat, 04 Feb 2012 08:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=165#comment-11666</guid>
		<description>Give it a chance, I realy like your way to post</description>
		<content:encoded><![CDATA[<p>Give it a chance, I realy like your way to post</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Delegate-like Observer Mechanism in Objective-C using Forward Invocation by bob</title>
		<link>http://blog.tlensing.org/2011/08/14/a-delegate-like-observer-mechanism-in-objective-c-using-forwardinvocation/#comment-11647</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Thu, 02 Feb 2012 01:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=306#comment-11647</guid>
		<description>This is not true: "it is likely to cause compiler warnings due to the fact that observers are of type id"

The point of id is that it does not check whether a method is supported

You might get a separate compiler warning that the selectors were not declared -- the compiler must know the signature of a selector in order to compile a call to it correctly. That's why you implemented a protocol -- simply to provide a declaration to the compiler. You do not actually need to implement this protocol.</description>
		<content:encoded><![CDATA[<p>This is not true: &#8220;it is likely to cause compiler warnings due to the fact that observers are of type id&#8221;</p>
<p>The point of id is that it does not check whether a method is supported</p>
<p>You might get a separate compiler warning that the selectors were not declared &#8212; the compiler must know the signature of a selector in order to compile a call to it correctly. That&#8217;s why you implemented a protocol &#8212; simply to provide a declaration to the compiler. You do not actually need to implement this protocol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Embedding Python in a Cocoa Application by Ivan Vučica</title>
		<link>http://blog.tlensing.org/2008/11/04/embedding-python-in-a-cocoa-application/#comment-11565</link>
		<dc:creator>Ivan Vučica</dc:creator>
		<pubDate>Thu, 26 Jan 2012 11:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=59#comment-11565</guid>
		<description>Excellent, excellent example!

However, Py_SetProgramName() is used incorrectly; it should be the path to the executable of the running program, the value of argv[0] as passed to main(). Alternatively, you could hack it and pass /usr/bin/python. Passing "Python Console", however, doesn't seem like a good idea, judging by the documentation for this function (which claims Py_GetPath() and some other functions use this to find run-time libraries relative to the interpreter executable).

;)</description>
		<content:encoded><![CDATA[<p>Excellent, excellent example!</p>
<p>However, Py_SetProgramName() is used incorrectly; it should be the path to the executable of the running program, the value of argv[0] as passed to main(). Alternatively, you could hack it and pass /usr/bin/python. Passing &#8220;Python Console&#8221;, however, doesn&#8217;t seem like a good idea, judging by the documentation for this function (which claims Py_GetPath() and some other functions use this to find run-time libraries relative to the interpreter executable).</p>
<p> <img src='http://blog.tlensing.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocotron and Xcode4: How to Run Objective-C Apps on Linux by Martijn The</title>
		<link>http://blog.tlensing.org/2011/05/01/cocotron-and-xcode4-how-to-run-objective-c-apps-on-linux/#comment-11430</link>
		<dc:creator>Martijn The</dc:creator>
		<pubDate>Fri, 13 Jan 2012 17:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=221#comment-11430</guid>
		<description>@andyvn22, I had the same problem as you had.

First I thought it had something to do with binutils, so I changed the script to use a slightly newer version. Then I tried to use one of binutils' programs on the symlink that the error referred to: presto, apparently the binutils program(s) don't handle the symlink properly.

So what I did in the end was, to make hard links instead of symlinks (e.g. using `ln libm-2.5.so libm.so`).

Hope it helps!
Martijn</description>
		<content:encoded><![CDATA[<p>@andyvn22, I had the same problem as you had.</p>
<p>First I thought it had something to do with binutils, so I changed the script to use a slightly newer version. Then I tried to use one of binutils&#8217; programs on the symlink that the error referred to: presto, apparently the binutils program(s) don&#8217;t handle the symlink properly.</p>
<p>So what I did in the end was, to make hard links instead of symlinks (e.g. using `ln libm-2.5.so libm.so`).</p>
<p>Hope it helps!<br />
Martijn</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Mercurial on a Shared Web Server without Root Access (HostEurope) by ac repair in verona</title>
		<link>http://blog.tlensing.org/2010/04/12/installing-mercurial-on-a-shared-web-server-without-root-access-hosteurope/#comment-11356</link>
		<dc:creator>ac repair in verona</dc:creator>
		<pubDate>Thu, 05 Jan 2012 07:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=165#comment-11356</guid>
		<description>What is a blogging site that allows you to sync with facebook for comments?</description>
		<content:encoded><![CDATA[<p>What is a blogging site that allows you to sync with facebook for comments?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating XCode Projects for SWIG Python-bindings by Tobias</title>
		<link>http://blog.tlensing.org/2008/10/24/creating-xcode-projects-for-swig-python-bindings/#comment-11209</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Fri, 16 Dec 2011 20:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=27#comment-11209</guid>
		<description>Dear Dupront,

you probably built the dynamic library with a different architecture than python is using on your system. Make sure both architectures match. You can find out which architecture your so is by doing file _interface.so on the command line. 

As you just got your Mac I assume you're running on OS X 10.7. On my system (10.7) Python runs in 32-bits mode by default. However, if you are using a different Python version, make sure it is built for the architecture you are planning to use. You should then configure your target in Xcode to match that architecture. 

See also:
- http://stackoverflow.com/questions/3010443/python-libusb-pyusb-mach-o-but-wrong-architecture
- http://stackoverflow.com/questions/2111283/how-to-build-64-bit-python-on-os-x-10-6-only-64-bit-no-universal-nonsense
- http://stackoverflow.com/questions/2088569/how-do-i-force-python-to-be-32-bit-on-snow-leopard-and-other-32-bit-64-bit-quest</description>
		<content:encoded><![CDATA[<p>Dear Dupront,</p>
<p>you probably built the dynamic library with a different architecture than python is using on your system. Make sure both architectures match. You can find out which architecture your so is by doing file _interface.so on the command line. </p>
<p>As you just got your Mac I assume you&#8217;re running on OS X 10.7. On my system (10.7) Python runs in 32-bits mode by default. However, if you are using a different Python version, make sure it is built for the architecture you are planning to use. You should then configure your target in Xcode to match that architecture. </p>
<p>See also:<br />
- <a href="http://stackoverflow.com/questions/3010443/python-libusb-pyusb-mach-o-but-wrong-architecture" rel="nofollow">http://stackoverflow.com/questions/3010443/python-libusb-pyusb-mach-o-but-wrong-architecture</a><br />
- <a href="http://stackoverflow.com/questions/2111283/how-to-build-64-bit-python-on-os-x-10-6-only-64-bit-no-universal-nonsense" rel="nofollow">http://stackoverflow.com/questions/2111283/how-to-build-64-bit-python-on-os-x-10-6-only-64-bit-no-universal-nonsense</a><br />
- <a href="http://stackoverflow.com/questions/2088569/how-do-i-force-python-to-be-32-bit-on-snow-leopard-and-other-32-bit-64-bit-quest" rel="nofollow">http://stackoverflow.com/questions/2088569/how-do-i-force-python-to-be-32-bit-on-snow-leopard-and-other-32-bit-64-bit-quest</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating XCode Projects for SWIG Python-bindings by Dupront</title>
		<link>http://blog.tlensing.org/2008/10/24/creating-xcode-projects-for-swig-python-bindings/#comment-11205</link>
		<dc:creator>Dupront</dc:creator>
		<pubDate>Fri, 16 Dec 2011 13:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=27#comment-11205</guid>
		<description>Hello, 
I am new to swig and xcode.
I just got an imac.

I followed the instructions above to 
buid a _interface.so dynamic library.
Everything goes fine with xcode.
But when i run my python script, I got the message

ImportError: dlopen (path_to_the_library/_interface.so): no suitable image found. Did find
path_to_the_library/_interface.so: mach-o, but wrong architecture

What should I do now ?
Thank you for any help!</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I am new to swig and xcode.<br />
I just got an imac.</p>
<p>I followed the instructions above to<br />
buid a _interface.so dynamic library.<br />
Everything goes fine with xcode.<br />
But when i run my python script, I got the message</p>
<p>ImportError: dlopen (path_to_the_library/_interface.so): no suitable image found. Did find<br />
path_to_the_library/_interface.so: mach-o, but wrong architecture</p>
<p>What should I do now ?<br />
Thank you for any help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocotron and Xcode4: How to Run Objective-C Apps on Linux by 山吹早月</title>
		<link>http://blog.tlensing.org/2011/05/01/cocotron-and-xcode4-how-to-run-objective-c-apps-on-linux/#comment-10690</link>
		<dc:creator>山吹早月</dc:creator>
		<pubDate>Wed, 02 Nov 2011 03:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=221#comment-10690</guid>
		<description>MacOSXのインストールCDがない場合はどうしたらいいのでしょうか？</description>
		<content:encoded><![CDATA[<p>MacOSXのインストールCDがない場合はどうしたらいいのでしょうか？</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocotron and Xcode4: How to Run Objective-C Apps on Linux by andyvn22</title>
		<link>http://blog.tlensing.org/2011/05/01/cocotron-and-xcode4-how-to-run-objective-c-apps-on-linux/#comment-10578</link>
		<dc:creator>andyvn22</dc:creator>
		<pubDate>Fri, 21 Oct 2011 12:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=221#comment-10578</guid>
		<description>Nice tutorial! Anyone know how to avoid the following during the CDT install?

/Developer/Cocotron/1.0/Linux/i386/gcc-4.3.1/i386-ubuntu-linux/lib//libm.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status</description>
		<content:encoded><![CDATA[<p>Nice tutorial! Anyone know how to avoid the following during the CDT install?</p>
<p>/Developer/Cocotron/1.0/Linux/i386/gcc-4.3.1/i386-ubuntu-linux/lib//libm.so: file not recognized: File format not recognized<br />
collect2: ld returned 1 exit status</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installing Mercurial on a Shared Web Server without Root Access (HostEurope) by Geier</title>
		<link>http://blog.tlensing.org/2010/04/12/installing-mercurial-on-a-shared-web-server-without-root-access-hosteurope/#comment-10392</link>
		<dc:creator>Geier</dc:creator>
		<pubDate>Sun, 25 Sep 2011 05:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tlensing.org/?p=165#comment-10392</guid>
		<description>Installing mercurial on a shared webhost without SSH access is also possible: All the SSH-commands posted by you can also be executed using php's shell_exec() function!</description>
		<content:encoded><![CDATA[<p>Installing mercurial on a shared webhost without SSH access is also possible: All the SSH-commands posted by you can also be executed using php&#8217;s shell_exec() function!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

