linux arm fix
parent
6bb803e791
commit
950e0b8a32
|
@ -36,14 +36,17 @@ try:
|
||||||
import libtorrent
|
import libtorrent
|
||||||
elif platform['system'] in ['linux_arm']:
|
elif platform['system'] in ['linux_arm']:
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
cdll.LoadLibrary(dirname + '/libtorrent-rasterbar.so.7')
|
dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7')
|
||||||
|
log('CDLL path = ' + dll_path)
|
||||||
|
liblibtorrent=CDLL(dll_path)
|
||||||
|
log('CDLL = ' + str(liblibtorrent))
|
||||||
import libtorrent
|
import libtorrent
|
||||||
elif platform['system'] in ['android_armv7', 'android_x86']:
|
elif platform['system'] in ['android_armv7', 'android_x86']:
|
||||||
import imp
|
import imp
|
||||||
from ctypes import *
|
from ctypes import *
|
||||||
|
|
||||||
dll_path=os.path.join(dest_path, 'liblibtorrent.so')
|
dll_path=os.path.join(dest_path, 'liblibtorrent.so')
|
||||||
print "CDLL path = " + dll_path
|
log('CDLL path = ' + dll_path)
|
||||||
liblibtorrent=CDLL(dll_path)
|
liblibtorrent=CDLL(dll_path)
|
||||||
log('CDLL = ' + str(liblibtorrent))
|
log('CDLL = ' + str(liblibtorrent))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue