Hello! I managed to cross compile python 2.7.1 but I need to use sqlite. When python finishes with bulid i’m getting following error: Python build finished, but the necessary bits to build these modules were not found: _bsddb _sqlite3 bsddb185 dbm gdbm sunaudiodev zlib To find the necessary bits, look in setup.py in detect_modules() for the module’s name. Failed to build these modules: _curses _curses_panel _hashlib _ssl _tkinter bz2 readline Also, I tried python with sqlite on host and it works. On host I have installed sqlite3 and libsqlite3-dev. My setup config+make is as follows: patch -p1 < Python-2.7.1-xcompile.patch CC=arm-linux-gcc CXX=arm-linux-g++ AR=arm-linux-ar RANLIB=arm-linux-ranlib ./configure –host=arm-linux –build=i386-linux-gnu –prefix=/python make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen BLDSHARED="arm-linux-gcc -shared" CROSS_COMPILE=arm-linux- CROSS_COMPILE_TARGET=yes make install HOSTPYTHON=./hostpython BLDSHARED="arm-linux-gcc -shared" CROSS_COMPILE=arm-linux- CROSS_COMPILE_TARGET=yes prefix=~/Python-2.6.6/_install My question is how to configure python cross compilation to include _sqlite3? Thanks, Emil
Python 2.7.1 Cross compile _sqlite3 modules not found
Hi Emil, I have found you question yesterday and I was facing the same problem today and solved it in a way. I was cross compiling on a debian VirtualBox system targeting a emdebian. The missing dependency for these systems is libsqlite3-dev. First I tried to install this package on the build system using apt-get install libsqlite3-dev But this did not change anything. I then downloaded the libsqlite3-dev_3.7.3-1_armel.deb from the debian webpage and extracted its content using ar vx libsqlite3-dev_3.7.3-1_armel.deb and then extracted the data.tar.gz tar xzf data.tar.gz I backed up all files related to sqlite3* in /usr/include and /usr/lib/lib and paced the files from the data.tar.gz in the respective folders. Recompile python and job done, sqlite3 is now working. Mind I still have some bits and pieces not working right, such as zlib and some others. But that's for someone else to figure out. Regards, Cyberhippy
Dear Cyberhippy I am trying to do similar process that you have done. I want to cross-compile Numpy-1.5 module to be used in Advantech ARM board (ROM-1210). I would like to follow your instructions but I couldn't figure out some parts in detail. You mentioned: "I backed up all files related to sqlite3* in /usr/include and /usr/lib/lib and paced the files from the data.tar.gz in the respective folders." May I know where are the respective folders that you pointed out in your post? Thanks for your attention, in advance. Regards, Dawood