I. Development Environment: Portable Step 2. Unzip the database source file and enter the directory after decompression, as follows: tar-zxvfsqlite-3.6.22.tar.gzcdsqlite-3.6.222. Create a directory build
I. Development Environment: Mini2440, Linux_2.6.32.2 kernel, Ubuntu 9.10, arm-linux-gcc-4.3.2 download sqlitesource code sqlite-3.6.22.tar.gz
2. Migration steps
1. Unzip the database source file and enter the directory after decompression, as follows: tar-zxvf sqlite-3.6.22.tar.gz cd sqlite-3.6.22
2. Create a directory build and enter the directory for cross-compilation in this directory, as shown below: mkdir build cd build
3. run the configure script in the sqlite-3.6.22 In the build directory to generate the Makefile file, as follows :.. /configure -- host = arm-linux -- prefix =/root/sqlite-3.6.22/build/target option host specifies the path after the prefix is compiled with the arm cross compiler. target directory, you can set
4. run the make and make install commands as follows: After make install is compiled and installed, three target folders are generated in the/root/sqlite-3.6.22/build/target directory, which are: bin, include, lib, and then download the files under bin to the/usr/bin directory of the Development Board, download all files under lib to the/usr/lib directory of the Development Board. The include directory is the header file of the C language API of sqlite, which is used for programming.
5. Test the transplanted sqlite database on the Development Board. Log on to the Linux operating system of the Development Board and run: sqlite3 demo. db sqlite3 is an sqlite command line access program. demo. db is the name of the newly created database and must be suffixed with db. The following figure shows that the migration is successful.