Changes between Version 1 and Version 2 of TipAndDoc/Linux/OpenWRT/CrossCompile


Ignore:
Timestamp:
Jun 21, 2012 2:20:49 PM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/OpenWRT/CrossCompile

    v1 v2  
    149149 = build others = 
    150150 
     151 == utvpn == 
     152 * mitty@precise:~/openwrt/trunk/package$ svn co https://lab.mitty.jp/svn/lab/trunk/Dev/utvpn/utvpn-unix-v101-7101-public utvpn 
     153 * mitty@precise:~/openwrt/trunk/package/utvpn$ ./configure 
     154{{{ 
     155------------------------------------------------------------- 
     156SoftEther UT-VPN for Unix 
     157 
     158Copyright (C) 2004-2010 SoftEther Corporation. 
     159Copyright (C) 2004-2010 University of Tsukuba, Japan. 
     160Copyright (C) 2003-2010 Daiyuu Nobori. All Rights Reserved. 
     161 
     162This program is free software; you can redistribute it and/or 
     163modify it under the terms of the GNU General Public License 
     164version 2 as published by the Free Software Foundation. 
     165------------------------------------------------------------- 
     166 
     167Please select your Operating System below: 
     168 1: Linux 
     169 2: FreeBSD 
     170 3: Solaris 
     171 4: Mac OS X 
     172 
     173Which is your operating system (1-4): 
     1741 
     175 
     176Please select your CPU Bits below: 
     177 1: 32-bit 
     178 2: 64-bit 
     179 
     180Which is the bits of your CPU (1-2): 
     1811 
     182 
     183Makefile is generated. Please execute 'make' to build UT-VPN. 
     184}}} 
     185 
     186 * mitty@precise:~/openwrt/trunk/package/utvpn$ sha1sum Makefile makefiles/linux_32bit_ja.mak 
     187{{{ 
     1885d63c1cbb04ef9a3ecc6d4b8f1150cac20fbfa9d  Makefile 
     1895d63c1cbb04ef9a3ecc6d4b8f1150cac20fbfa9d  makefiles/linux_32bit_ja.mak 
     190}}} 
     191  * Makefileは単純にcpしているだけ 
     192 
     193 * mitty@precise:~/openwrt/trunk/package/utvpn$ svn cp makefiles/linux_32bit_ja.mak Makefile 
     194 
     195 === build with gcc for mips === 
     196 * mitty@precise:~/openwrt/trunk/package/utvpn$ export PATH=$PATH:~/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/ 
     197 
     198 * mitty@precise:~/openwrt/trunk/package/utvpn$ make CC=mips-openwrt-linux-gcc LD=mips-openwrt-linux-ld 
     199{{{ 
     200mips-openwrt-linux-gcc -DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char -c src/Mayaqua/Cfg.c -o tmp/objs/Mayaqua/Cfg.o 
     201mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined 
     202In file included from src/Mayaqua/Cfg.c:90:0: 
     203./src/Mayaqua/Mayaqua.h:219:31: fatal error: readline/readline.h: No such file or directory 
     204compilation terminated. 
     205make: *** [tmp/objs/Mayaqua/Cfg.o] Error 1 
     206}}} 
     207 * mitty@precise:~$ sudo aptitude install -R libssl-dev libreadline-dev libncurses-dev 
     208 
     209 * mitty@precise:~/openwrt/trunk/package/utvpn$ export STAGING_DIR=~/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/ 
     210 * mitty@precise:~/openwrt/trunk/package/utvpn$ make CC=mips-openwrt-linux-gcc LD=mips-openwrt-linux-ld 
     211{{{ 
     212(snip) 
     213 
     214mips-openwrt-linux-gcc tmp/as/Ham.a -O2 -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz -o output/ham/ham 
     215/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lssl 
     216/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lcrypto 
     217/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lreadline 
     218/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lncurses 
     219/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lz 
     220collect2: ld returned 1 exit status 
     221}}} 
    151222 == zlib == 
    152223 * [http://www.crosscompile.org/static/pages/ZLib.html How to Cross Compile Zlib Compression Library - Step by Step Guide (crosscompile.org)]