[LIVE][LINUX] Detecting 64bit architecture on Linux
#1
Since I have been using 64bit Linux to compile and run XBMC, some plug-ins(so far the ones using pysqlite2) fail. This is because pysqlite2 that is being used is a 32bit version. After a bit of searching, I did find a copy of pysqlite2 compiled as a 64bit file and using Python 2.4. The Files can be accessed from here: http://www.megaupload.com/?d=63IP3DF8.

Also I have found a way to detect a 64bit Linux, using the `platform`module in Python. The code below I used in Logo Downloader created by Ppic to run on my machine but also keeping it compatible with other platforms.

Code:
env = ( os.environ.get( "OS", "win32" ), "win32", )[ os.environ.get( "OS", "win32" ) == "xbox" ]

# Check to see if using a 64bit version of Linux
import platform
env2 = platform.machine()
if re.match("Linux", env) and env2 == "x86_64" :
   env = "Linux_x86_64"
      
sys.path.append( os.path.join( RESOURCES_PATH, "platform_libraries", env ) )

Just thought I should share this discovery.
Reply
#2
Thank-you Very very very much!!

fixed my problem @ http://forum.xbmc.org/showthread.php?p=5...post556340
Reply
#3
Many thanks for posting it.
Reply
#4
Just trying to help out, returning all the help I've received...

Glad some others have found it useful...
Reply
#5
I just noticed I posted the wrong link... I corrected it, it should be: http://www.megaupload.com/?d=63IP3DF8
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE][LINUX] Detecting 64bit architecture on Linux0