| 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 | ------------------------------------------------------------- |
| 156 | SoftEther UT-VPN for Unix |
| 157 | |
| 158 | Copyright (C) 2004-2010 SoftEther Corporation. |
| 159 | Copyright (C) 2004-2010 University of Tsukuba, Japan. |
| 160 | Copyright (C) 2003-2010 Daiyuu Nobori. All Rights Reserved. |
| 161 | |
| 162 | This program is free software; you can redistribute it and/or |
| 163 | modify it under the terms of the GNU General Public License |
| 164 | version 2 as published by the Free Software Foundation. |
| 165 | ------------------------------------------------------------- |
| 166 | |
| 167 | Please select your Operating System below: |
| 168 | 1: Linux |
| 169 | 2: FreeBSD |
| 170 | 3: Solaris |
| 171 | 4: Mac OS X |
| 172 | |
| 173 | Which is your operating system (1-4): |
| 174 | 1 |
| 175 | |
| 176 | Please select your CPU Bits below: |
| 177 | 1: 32-bit |
| 178 | 2: 64-bit |
| 179 | |
| 180 | Which is the bits of your CPU (1-2): |
| 181 | 1 |
| 182 | |
| 183 | Makefile 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 | {{{ |
| 188 | 5d63c1cbb04ef9a3ecc6d4b8f1150cac20fbfa9d Makefile |
| 189 | 5d63c1cbb04ef9a3ecc6d4b8f1150cac20fbfa9d 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 | {{{ |
| 200 | mips-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 |
| 201 | mips-openwrt-linux-gcc: warning: environment variable 'STAGING_DIR' not defined |
| 202 | In 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 |
| 204 | compilation terminated. |
| 205 | make: *** [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 | |
| 214 | mips-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 |
| 220 | collect2: ld returned 1 exit status |
| 221 | }}} |