<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for RandomSplat</title>
	
	<link>http://randomsplat.com</link>
	<description>Software Commentary</description>
	<lastBuildDate>Fri, 27 Apr 2012 08:28:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CommentsForRandomsplat" /><feedburner:info uri="commentsforrandomsplat" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on Building a Hard-float ARM Toolchain by wanxs</title>
		<link>http://randomsplat.com/id192-building-a-hard-float-arm-toolchain.html/comment-page-1#comment-4291</link>
		<dc:creator>wanxs</dc:creator>
		<pubDate>Fri, 27 Apr 2012 08:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=192#comment-4291</guid>
		<description>When i build in Debian 7.0 or 6.0,I have a error like "checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile".What happened?
Can u give me a config file that you build success,thanks.</description>
		<content:encoded><![CDATA[<p>When i build in Debian 7.0 or 6.0,I have a error like &#8220;checking for suffix of object files&#8230; configure: error: cannot compute suffix of object files: cannot compile&#8221;.What happened?<br />
Can u give me a config file that you build success,thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Paul Gibson</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4234</link>
		<dc:creator>Paul Gibson</dc:creator>
		<pubDate>Mon, 23 Apr 2012 09:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4234</guid>
		<description>Hi Rudolf,

Sorry, I've never seen this before.  My first guess would be that something might have failed earlier on in the build and maybe that is why it deletes libpython2.7.a

Paul</description>
		<content:encoded><![CDATA[<p>Hi Rudolf,</p>
<p>Sorry, I&#8217;ve never seen this before.  My first guess would be that something might have failed earlier on in the build and maybe that is why it deletes libpython2.7.a</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Paul Gibson</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4233</link>
		<dc:creator>Paul Gibson</dc:creator>
		<pubDate>Mon, 23 Apr 2012 09:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4233</guid>
		<description>Hi Shekhar,

Sorry, I've never seen it before.  My guess would be something to do with the root filesystem because that is the major difference between android and linux systems.

Good luck!
Paul</description>
		<content:encoded><![CDATA[<p>Hi Shekhar,</p>
<p>Sorry, I&#8217;ve never seen it before.  My guess would be something to do with the root filesystem because that is the major difference between android and linux systems.</p>
<p>Good luck!<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Rudolf</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4226</link>
		<dc:creator>Rudolf</dc:creator>
		<pubDate>Mon, 23 Apr 2012 01:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4226</guid>
		<description>Python 2.6.6 compiled fine following same instructions.</description>
		<content:encoded><![CDATA[<p>Python 2.6.6 compiled fine following same instructions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Rudolf</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4187</link>
		<dc:creator>Rudolf</dc:creator>
		<pubDate>Fri, 20 Apr 2012 05:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4187</guid>
		<description>Hi, all

Trying to follow the tutorial. Compile on Ubuntu 10.04 32-bit for ARM CPU (not for android) 
Config part works:
CC=arm-cdcs-linux-gnueabi-gcc CXX=arm-cdcs-linux-gnueabi-g++ AR=arm-cdcs-linux-gnueabi-ranlib ./configure --host=arm-linux --build=x86-linux-gnu --prefix=/python

Now for building:
make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED="arm-cdcs-linux-gnueabi-gcc -shared" CROSS_COMPILE=arm-cdcs-linux-gnueabi- CROSS_COMPILE_TARGET=yes HOSTARCH=arm-linux BUILDARCH=x86-linux-gnu

And I am getting an error (including few lines just before the error):
arm-cdcs-linux-gnueabi-gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/xxsubtype.c -o Modules/xxsubtype.o
arm-cdcs-linux-gnueabi-gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE \
	      -DSVNVERSION="\"`LC_ALL=C svnversion .`\"" \
	      -DHGVERSION="\"`LC_ALL=C `\"" \
	      -DHGTAG="\"`LC_ALL=C `\"" \
	      -DHGBRANCH="\"`LC_ALL=C `\"" \
	      -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
rm -f libpython2.7.a
arm-cdcs-linux-gnueabi-ranlib rc libpython2.7.a Modules/getbuildinfo.o
arm-cdcs-linux-gnueabi-ranlib: 'rc': No such file
arm-cdcs-linux-gnueabi-ranlib: 'libpython2.7.a': No such file
arm-cdcs-linux-gnueabi-ranlib: Modules/getbuildinfo.o: File format not recognized

Modules/getbuildinfo.o is there and is of ARM ELF file format.
It also looks like libpython2,7.a is removed before being used????

Thanks,
RUdolf
make: *** [libpython2.7.a] Error 1</description>
		<content:encoded><![CDATA[<p>Hi, all</p>
<p>Trying to follow the tutorial. Compile on Ubuntu 10.04 32-bit for ARM CPU (not for android)<br />
Config part works:<br />
CC=arm-cdcs-linux-gnueabi-gcc CXX=arm-cdcs-linux-gnueabi-g++ AR=arm-cdcs-linux-gnueabi-ranlib ./configure &#8211;host=arm-linux &#8211;build=x86-linux-gnu &#8211;prefix=/python</p>
<p>Now for building:<br />
make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED=&#8221;arm-cdcs-linux-gnueabi-gcc -shared&#8221; CROSS_COMPILE=arm-cdcs-linux-gnueabi- CROSS_COMPILE_TARGET=yes HOSTARCH=arm-linux BUILDARCH=x86-linux-gnu</p>
<p>And I am getting an error (including few lines just before the error):<br />
arm-cdcs-linux-gnueabi-gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/xxsubtype.c -o Modules/xxsubtype.o<br />
arm-cdcs-linux-gnueabi-gcc -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE \<br />
	      -DSVNVERSION=&#8221;\&#8221;`LC_ALL=C svnversion .`\&#8221;" \<br />
	      -DHGVERSION=&#8221;\&#8221;`LC_ALL=C `\&#8221;" \<br />
	      -DHGTAG=&#8221;\&#8221;`LC_ALL=C `\&#8221;" \<br />
	      -DHGBRANCH=&#8221;\&#8221;`LC_ALL=C `\&#8221;" \<br />
	      -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c<br />
rm -f libpython2.7.a<br />
arm-cdcs-linux-gnueabi-ranlib rc libpython2.7.a Modules/getbuildinfo.o<br />
arm-cdcs-linux-gnueabi-ranlib: &#8216;rc&#8217;: No such file<br />
arm-cdcs-linux-gnueabi-ranlib: &#8216;libpython2.7.a&#8217;: No such file<br />
arm-cdcs-linux-gnueabi-ranlib: Modules/getbuildinfo.o: File format not recognized</p>
<p>Modules/getbuildinfo.o is there and is of ARM ELF file format.<br />
It also looks like libpython2,7.a is removed before being used????</p>
<p>Thanks,<br />
RUdolf<br />
make: *** [libpython2.7.a] Error 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Shekhar</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4153</link>
		<dc:creator>Shekhar</dc:creator>
		<pubDate>Tue, 17 Apr 2012 12:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4153</guid>
		<description>hi Paul, 

Thanks for the link , [http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/]. I successfully built python for Android. I ported into my target board....I can execute few python commands like, python -V and python --help.

But, python prompt is not coming on target..and idea why it is so.. any tricks for working ??
Also, I wrote simple python script which imports os, random and time modules....
Seems only os module is working but others are not working,,,can you please suggest some ideas what do i need to do to make it work??

I have set the environment variables too..
PYHTHONHOME = /system/lib/python2.7
PYHTHONPATH = /system/lib/python2.7

Regards,
Rajashekhar</description>
		<content:encoded><![CDATA[<p>hi Paul, </p>
<p>Thanks for the link , [http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/]. I successfully built python for Android. I ported into my target board&#8230;.I can execute few python commands like, python -V and python &#8211;help.</p>
<p>But, python prompt is not coming on target..and idea why it is so.. any tricks for working ??<br />
Also, I wrote simple python script which imports os, random and time modules&#8230;.<br />
Seems only os module is working but others are not working,,,can you please suggest some ideas what do i need to do to make it work??</p>
<p>I have set the environment variables too..<br />
PYHTHONHOME = /system/lib/python2.7<br />
PYHTHONPATH = /system/lib/python2.7</p>
<p>Regards,<br />
Rajashekhar</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Shekhar</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4104</link>
		<dc:creator>Shekhar</dc:creator>
		<pubDate>Thu, 12 Apr 2012 15:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4104</guid>
		<description>hi Paul, 

Thanks for the help provided....
Now I'm looking into the link provided by you [http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/]. I have done good progress in compiling the Python for the Android.

Thanks for the help ....

Regards,
Shekhar</description>
		<content:encoded><![CDATA[<p>hi Paul, </p>
<p>Thanks for the help provided&#8230;.<br />
Now I&#8217;m looking into the link provided by you [http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/]. I have done good progress in compiling the Python for the Android.</p>
<p>Thanks for the help &#8230;.</p>
<p>Regards,<br />
Shekhar</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Paul Gibson</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4097</link>
		<dc:creator>Paul Gibson</dc:creator>
		<pubDate>Wed, 11 Apr 2012 22:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4097</guid>
		<description>Hi Shekhar,

My first guess is that you are still missing libraries that python is looking for:
/system/bin/sh: python: not found

The Android root filesystem is not standard Linux and therefore I cannot help.  You may want to look at other articles such as:
http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/

Paul</description>
		<content:encoded><![CDATA[<p>Hi Shekhar,</p>
<p>My first guess is that you are still missing libraries that python is looking for:<br />
/system/bin/sh: python: not found</p>
<p>The Android root filesystem is not standard Linux and therefore I cannot help.  You may want to look at other articles such as:<br />
<a href="http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/" rel="nofollow">http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/</a></p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Shekhar</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4089</link>
		<dc:creator>Shekhar</dc:creator>
		<pubDate>Wed, 11 Apr 2012 11:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4089</guid>
		<description>hi Paul,

Thanks for the reply.

I have copied the entire built python directory to my target device under /system/usr
I have set the path environment variable like this ...
export PATH=$PATH:/system/usr

My target is connected to my Ubuntu machine(10.04) and able to communicate to target over serial port using minicom. Using minicom, i have opened the shell prompt of the device.
In shell prompt, I'm trying to execute python.
If I execute the python command, I'm getting python not found !!!

Below is the snapshot of the error
==========================================
root@android:/# echo $PATH
/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/system/usr
root@android:/# python
/system/bin/sh: python: not found
127|root@android:/# cd /system/usr/_install/bin                               
root@android:/system/usr/_install/bin# python
/system/bin/sh: python: not found
=============================================

Do I need set any other environment variables, or do I need to copy any other lib files from host to target.
Please let me know.

For your info : My target device has the Android's Ice Cream Sandwitch OS running.

Regards,
Shekhar</description>
		<content:encoded><![CDATA[<p>hi Paul,</p>
<p>Thanks for the reply.</p>
<p>I have copied the entire built python directory to my target device under /system/usr<br />
I have set the path environment variable like this &#8230;<br />
export PATH=$PATH:/system/usr</p>
<p>My target is connected to my Ubuntu machine(10.04) and able to communicate to target over serial port using minicom. Using minicom, i have opened the shell prompt of the device.<br />
In shell prompt, I&#8217;m trying to execute python.<br />
If I execute the python command, I&#8217;m getting python not found !!!</p>
<p>Below is the snapshot of the error<br />
==========================================<br />
root@android:/# echo $PATH<br />
/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/system/usr<br />
root@android:/# python<br />
/system/bin/sh: python: not found<br />
127|root@android:/# cd /system/usr/_install/bin<br />
root@android:/system/usr/_install/bin# python<br />
/system/bin/sh: python: not found<br />
=============================================</p>
<p>Do I need set any other environment variables, or do I need to copy any other lib files from host to target.<br />
Please let me know.</p>
<p>For your info : My target device has the Android&#8217;s Ice Cream Sandwitch OS running.</p>
<p>Regards,<br />
Shekhar</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cross Compiling Python for Embedded Linux by Paul Gibson</title>
		<link>http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html/comment-page-2#comment-4082</link>
		<dc:creator>Paul Gibson</dc:creator>
		<pubDate>Tue, 10 Apr 2012 22:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://randomsplat.com/?p=5#comment-4082</guid>
		<description>Hi Shekhar,

Could you show me how you are running python?  Are you running python from /_install/bin?  Is it on the PATH?

Paul</description>
		<content:encoded><![CDATA[<p>Hi Shekhar,</p>
<p>Could you show me how you are running python?  Are you running python from /_install/bin?  Is it on the PATH?</p>
<p>Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>

