This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TMS320DM8148: Cross compiling Python

Part Number: TMS320DM8148

Tool/software: Linux

Hello everyone,

I am having a problem with cross compiling Python using Code Sourcery toolchain. I am trying to compile it for TMS320DM8148 platform with Linux system installed (via EZSDK, kernel 2.6.37) in order to run OPBASM. Python sources compiling:

./configure -host=arm-none-linux-gnueabi CC=arm-none-linux-gnueabi-gcc RANLIB=arm-none-linux-gnueabi-ranlib STRIP=arm-none-linux-gnueabi-strip --build=arm-none-linux --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_have_long_long_format=yes

make CROSS_COMPILE=arm-none-linux-gnueabi- CROSS_COMPILE_TARGET=yes

make install CROSS_COMPILE=arm-none-linux-gnueabi- CROSS_COMPILE_TARGET=yes prefix=~/Python-2.7.2/_install

Make command finishes successfully with following warning:

Python build finished, but the necessary bits to build these modules were not found:
_bsddb _curses _curses_panel
_sqlite3 _ssl _tkinter
bsddb185 bz2 dbm
dl gdbm imageop
linuxaudiodev ossaudiodev readline
sunaudiodev zlib

It seems like Python has been compiled for target machine, it can be run on it but I cannot start opbasm, it finishes with following errors:

root@dm814x-evm:~/nfs-share/opbasm# python opbasm.py meas_ctrl.hex 
Traceback (most recent call last):
File "opbasm.py", line 32, in <module>
import subprocess
File "/home/root/Python/lib/python2.7/subprocess.py", line 72, in <module>
import select
ImportError: No module named select

I have also tried usin solution above, but the outcome is similar:

$ python opbasm.py meas_ctrl.hex 
Traceback (most recent call last):
  File "opbasm.py", line 41, in <module>
    import  opbasm.optimize as optimize
  File "/home/pi/opbasm-master/opbasm/opbasm.py", line 41, in <module>
    import  opbasm.optimize as optimize
ImportError: No module named optimize

Could you help me find a solution for successful cross compilation Python on DM814?

Best regards,

Jacob