| | 397 | |
| | 398 | == ncurses == |
| | 399 | * mitty@precise:~/openwrt$ wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz |
| | 400 | * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc ./configure --prefix=$STAGING_DIR |
| | 401 | {{{ |
| | 402 | checking for egrep... grep -E |
| | 403 | Configuring NCURSES 5.9 ABI 5 (Sun Jun 17 21:04:38 JST 2012) |
| | 404 | checking build system type... x86_64-unknown-linux-gnu |
| | 405 | checking host system type... x86_64-unknown-linux-gnu |
| | 406 | checking target system type... x86_64-unknown-linux-gnu |
| | 407 | Configuring for linux-gnu |
| | 408 | checking for prefix... /home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/ |
| | 409 | checking for gcc... mips-openwrt-linux-gcc |
| | 410 | checking for C compiler default output... a.out |
| | 411 | checking whether the C compiler works... configure: error: cannot run C compiled programs. |
| | 412 | If you meant to cross compile, use `--host'. |
| | 413 | }}} |
| | 414 | |
| | 415 | === configure with host=mips-unknown-linux-gnu === |
| | 416 | * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ ./configure --prefix=$STAGING_DIR --host=mips-unknown-linux-gnu |
| | 417 | {{{ |
| | 418 | checking for mips-unknown-linux-gnu-g++... no |
| | 419 | checking for mips-unknown-linux-gnu-c++... no |
| | 420 | checking for mips-unknown-linux-gnu-gpp... no |
| | 421 | checking for mips-unknown-linux-gnu-aCC... no |
| | 422 | checking for mips-unknown-linux-gnu-CC... no |
| | 423 | checking for mips-unknown-linux-gnu-cxx... no |
| | 424 | checking for mips-unknown-linux-gnu-cc++... no |
| | 425 | checking for mips-unknown-linux-gnu-cl... no |
| | 426 | checking for mips-unknown-linux-gnu-FCC... no |
| | 427 | checking for mips-unknown-linux-gnu-KCC... no |
| | 428 | checking for mips-unknown-linux-gnu-RCC... no |
| | 429 | checking for mips-unknown-linux-gnu-xlC_r... no |
| | 430 | checking for mips-unknown-linux-gnu-xlC... no |
| | 431 | checking for g++... g++ |
| | 432 | }}} |
| | 433 | * oops |
| | 434 | |
| | 435 | === configure with host=mips-openwrt-linux === |
| | 436 | * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ ./configure --prefix=$STAGING_DIR --host=mips-openwrt-linux |
| | 437 | * mitty@precise:~/openwrt/ncurses-5.9$ make |
| | 438 | {{{ |
| | 439 | compatibility.cc:(.text._ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi+0x188): undefined reference to `_Unwind_Resume' |
| | 440 | collect2: ld returned 1 exit status |
| | 441 | make[1]: *** [demo] Error 1 |
| | 442 | make[1]: Leaving directory `/home/mitty/openwrt/ncurses-5.9/c++' |
| | 443 | make: *** [all] Error 2 |
| | 444 | }}} |
| | 445 | |
| | 446 | * https://dev.openwrt.org/browser/trunk/package/ncurses/Makefile のCONFIGURE_ARGSを参考にする |
| | 447 | |
| | 448 | * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ ./configure --prefix=$STAGING_DIR --host=mips-openwrt-linux --enable-echo --enable-const --enable-overwrite --disable-rpath --without-ada --without-debug --without-profile --without-progs --disable-big-core --disable-home-terminfo --with-normal --with-shared --with-terminfo-dirs=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo |
| | 449 | * mitty@precise:~/openwrt/ncurses-5.9$ make |
| | 450 | * mitty@precise:~/openwrt/ncurses-5.9$ make install |