5.Cross compile libiconv-1.13.1
$ CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar CXX=arm-none-linux-gnueabi-g++ ./configure --host=arm-linux --target=arm-linux --prefix=/opt/arm-2008q1/arm-none-linux-gnueabi/libc/usr --cache-file=/dev/null
$ make
$ sudo PATH=$PATH:/opt/arm-2008q1/bin make install
6.Cross compile libxml2-2.7.8
$ CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar CXX=arm-none-linux-gnueabi-g++ ./configure --host=arm-linux --target=arm-linux --prefix=/opt/arm-2008q1/arm-none-linux-gnueabi/libc/usr --cache-file=/dev/null
$ make
$ sudo PATH=$PATH:/opt/arm-2008q1/bin make install
7.Cross compile php-5.2.17
$ ac_cv_lib_mysqlclient_mysql_close=yes ac_cv_lib_mysqlclient_mysql_stmt_field_count=yes ac_cv_lib_mysqlclient_mysql_set_server_option=yes ac_cv_lib_mysqlclient_mysql_errno=yes ac_cv_func_iconv=yes CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar CXX=arm-none-linux-gnueabi-g++ ./configure --host=arm-linux --target=arm-linux --prefix=/home/gigijoe/BeagleBoard/rootfs/usr/local --disable-all --with-config-file-path=/rootfs/usr/local/etc --with-mysql=/home/gigijoe/BeagleBoard/rootfs/usr/local/mysql --with-mysqli=/home/gigijoe/BeagleBoard/rootfs/usr/local/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysqld.sock --disable-rpath --enable-discard-path --enable-safe-mode --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-fastcgi --enable-force-cgi-redirect --enable-embedded-mysqli --with-libxml-dir=/opt/arm-2008q1/arm-none-linux-gnueabi/libc/usr --cache-file=/dev/null
$ make
$ make install
8.Cross compile lighttpd-1.4.28
$ CFLAGS="-I/home/gigijoe/BeagleBoard/rootfs/usr/local/mysql/include" CC=arm-none-linux-gnueabi-gcc AR=arm-none-linux-gnueabi-ar CXX=arm-none-linux-gnueabi-g++ ./configure --host=arm-linux --target=arm-linux --prefix=/home/gigijoe/BeagleBoard/rootfs/usr/local --with-mysql=/home/gigijoe/BeagleBoard/rootfs/usr/local/mysql --without-pcre --without-bzip2 --disable-ipv6 --cache-file=/dev/null
$ make
$ make install
9.ARM Target setup
記的將以上相關安裝到/opt/arm-2008q1/arm-none-linux-gnueabi/libc/usr的libraries複製到ARM target.
指定library搜尋路徑
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/mysql/lib
10.Reference
http://wiki.huihoo.com/index.php?title=FreeBSD_Lighttpd_PHP_MySQL
http://www.cmake.org/Wiki/CMake_Cross_Compiling
http://forge.mysql.com/wiki/Autotools_to_CMake_Transition_Guide
http://forge.mysql.com/wiki/CMake
http://redmine.lighttpd.net/wiki/1/TutorialConfiguration
http://www.memorybbs.com/cgi-bin/topic.cgi?forum=77&topic=92
沒有留言:
張貼留言