gtk+를 arm용으로 포팅할떄 glib를 설치시..도저히 모
글쓴이: wlehr9512 / 작성시간: 금, 2005/08/26 - 7:09오전
이제막 리눅스를 파고 있는 초짜입니다. 다름아니라.. 이지보드로 gtk를 포팅하기 위해서 필요한 라이브러리를 arm용으로 만들려고 합니다. 그래서 가장먼저 glib를 ./configure 할려고 하는데 에러가 납니다.
제가 콘솔상에서 ] ./configure --prefix=/usr/armv5l-linux --target = armv5l-linux --build=i686-pc-linux-gnu /
--host=armv5l-linux
이렇게 햇는데 설치도중에.. 중간에 갑자기..
checking ... ok
.. 중략 ..
checking for extra flags to get ANSI library prototypes... configure: error: can
not run test program while cross compiling.
이런 메시지가 나오면서 설치가 중단됩니다. 이것떔시 미치겠습니다 ㅜ.ㅜ 여기 질답에 나와있는데로 해봐도 똑같네욤.. arm.cache 파일을 만들면 된다고 해서리 만들어주었는데두
역시 똑같습니다 도대체 모가 문제일까욤..ㅠ.ㅠ
참고로 제가 사용한 gllib 버젼은 2.0.0 이랑 2.0.4 해봤는데 둘다 똑같은 증상으로 설치가 안됩니다. 제발 도와주세욤 ㅠ.ㅠ :?
Forums:
Re: gtk+를 arm용으로 포팅할떄 glib를 설치시..도저
config.log를 올려보세여
즐린
ㅇㅇ 신경써주시니 감사하구욤.. config.log 내용 올립니다.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.52d. Invocation command line was
$ ./configure --build=i686-pc-linux-gnu --host=armv5l-linux --target=armv5l-linux --cache-file=config.cache --prefix=/nfs/X/gtk2.0
## --------- ##
## Platform. ##
## --------- ##
hostname = NJHLINUX
uname -m = i686
uname -r = 2.4.18-4
uname -s = Linux
uname -v = #1 SMP Thu Aug 22 18:36:08 KST 2002
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH = /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/armv5l-linux/bin:/root/bin:/usr/armv5l-linux/bin:/root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1116: loading cache config.cache
configure:1195: PATH=".;."; conftest.sh
./configure: conftest.sh: command not found
configure:1198: $? = 127
configure:1260: checking for a BSD compatible install
configure:1309: result: /usr/bin/install -c
configure:1320: checking whether build environment is sane
configure:1363: result: yes
configure:1378: checking whether make sets ${MAKE}
configure:1398: result: yes
configure:1418: checking for working aclocal
configure:1425: result: found
configure:1433: checking for working autoconf
configure:1440: result: found
configure:1448: checking for working automake
configure:1455: result: found
configure:1463: checking for working autoheader
configure:1470: result: found
configure:1478: checking for working makeinfo
configure:1485: result: found
configure:1519: checking whether to enable maintainer-specific portions of Makefiles
configure:1528: result: no
configure:1546: checking build system type
configure:1564: result: i686-pc-linux-gnu
configure:1571: checking host system type
configure:1585: result: armv5l-unknown-linux-gnu
configure:1592: checking for the BeOS
configure:1602: result: no
configure:1605: checking for Win32
configure:1633: result: no
configure:1739: checking whether to enable garbage collector friendliness
configure:1750: result: no
configure:1754: checking whether to disable memory pools
configure:1757: result: no
configure:1777: checking for armv5l-linux-gcc
configure:1800: result: armv5l-linux-gcc
configure:2063: checking for C compiler version
configure:2066: armv5l-linux-gcc --version </dev/null >&5
armv5l-linux-gcc (GCC) 3.2.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2069: $? = 0
configure:2071: armv5l-linux-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/armv5l-linux/3.2.1/specs
Configured with: ./configure --target=armv5l-linux --prefix=/usr --program-prefix=armv5l-linux- --with-headers=/usr/src/redhat/SOURCES/linux/include/ --with-cpu=xscale --with-softfloat-support=internal --enable-languages=c,c++ --nfp
Thread model: posix
gcc version 3.2.1
configure:2074: $? = 0
configure:2076: armv5l-linux-gcc -V </dev/null >&5
armv5l-linux-gcc: argument to `-V' is missing
configure:2079: $? = 1
configure:2105: checking for C compiler default output
configure:2108: armv5l-linux-gcc conftest.c >&5
configure:2111: $? = 0
configure:2140: result: a.out
configure:2145: checking whether the C compiler works
configure:2169: result: yes
configure:2176: checking whether we are cross compiling
configure:2178: result: yes
configure:2181: checking for executable suffix
configure:2183: armv5l-linux-gcc -o conftest conftest.c >&5
configure:2186: $? = 0
configure:2208: result:
configure:2214: checking for object suffix
configure:2238: armv5l-linux-gcc -c conftest.c >&5
configure:2241: $? = 0
configure:2260: result: o
configure:2264: checking whether we are using the GNU C compiler
configure:2291: armv5l-linux-gcc -c conftest.c >&5
configure:2294: $? = 0
configure:2297: test -s conftest.o
configure:2300: $? = 0
configure:2312: result: yes
configure:2318: checking whether armv5l-linux-gcc accepts -g
configure:2342: armv5l-linux-gcc -c -g conftest.c >&5
configure:2345: $? = 0
configure:2348: test -s conftest.o
configure:2351: $? = 0
configure:2361: result: yes
configure:2388: armv5l-linux-gcc -c -g -O2 conftest.c >&5
conftest.c:2: parse error before "me"
configure:2391: $? = 1
configure: failed program was:
#ifndef __cplusplus
choke me
#endif
configure:2505: checking for c++
configure:2520: found /usr/bin/c++
configure:2528: result: c++
configure:2555: checking for armv5l-linux-g++
configure:2578: result: c++
configure:2632: checking for C++ compiler version
configure:2635: c++ --version </dev/null >&5
2.95.4
configure:2638: $? = 0
configure:2640: c++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.4/specs
gcc version 2.95.4 20010319 (prerelease)
configure:2643: $? = 0
configure:2645: c++ -V </dev/null >&5
c++: argument to `-V' missing
configure:2648: $? = 1
configure:2651: checking whether we are using the GNU C++ compiler
configure:2678: c++ -c conftest.cc >&5
configure:2681: $? = 0
configure:2684: test -s conftest.o
configure:2687: $? = 0
configure:2699: result: yes
configure:2705: checking whether c++ accepts -g
configure:2729: c++ -c -g conftest.cc >&5
configure:2732: $? = 0
configure:2735: test -s conftest.o
configure:2738: $? = 0
configure:2748: result: yes
configure:2794: c++ -c -g -O2 conftest.cc >&5
configure:2797: $? = 0
configure:2800: test -s conftest.o
configure:2803: $? = 0
configure:2831: c++ -c -g -O2 conftest.cc >&5
configure:2834: $? = 0
configure:2837: test -s conftest.o
configure:2840: $? = 0
configure:2881: c++ -c -g -O2 conftest.cc >&5
configure:2884: $? = 0
configure:2887: test -s conftest.o
configure:2890: $? = 0
configure:2913: checking for armv5l-linux-gcc option to accept ANSI C
configure:2978: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:2981: $? = 0
configure:2984: test -s conftest.o
configure:2987: $? = 0
configure:3001: result: none needed
configure:3024: checking for a BSD compatible install
configure:3073: result: /usr/bin/install -c
configure:3091: checking for special C compiler options needed for large files
configure:3171: result: no
configure:3177: checking for _FILE_OFFSET_BITS value needed for large files
configure:3211: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:3192: warning: left shift count >= width of type
configure:3192: warning: left shift count >= width of type
configure:3194: size of array `off_t_is_large' is negative
configure:3214: $? = 1
configure: failed program was:
#line 3185 "configure"
#include "confdefs.h"
#include <sys/types.h>
/* Check that off_t can represent 2**63 - 1 correctly.
We can't simply define LARGE_OFF_T to be 9223372036854775807,
since some C++ compilers masquerading as C compilers
incorrectly reject 9223372036854775807. */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
;
return 0;
}
configure:3256: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:3259: $? = 0
configure:3262: test -s conftest.o
configure:3265: $? = 0
configure:3276: result: 64
configure:3286: checking for _LARGE_FILES value needed for large files
configure:3320: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:3323: $? = 0
configure:3326: test -s conftest.o
configure:3329: $? = 0
configure:3385: result: no
configure:3402: checking for pkg-config
configure:3419: found /usr/bin/pkg-config
configure:3431: result: /usr/bin/pkg-config
configure:3488: checking for gawk
configure:3503: found /bin/gawk
configure:3511: result: gawk
configure:3525: checking for perl5
configure:3551: result: no
configure:3525: checking for perl
configure:3540: found /usr/bin/perl
configure:3548: result: perl
configure:3561: checking for indent
configure:3576: found /usr/bin/indent
configure:3584: result: indent
configure:3604: checking for perl
configure:3621: found /usr/bin/perl
configure:3632: result: /usr/bin/perl
configure:3647: checking for armv5l-linux-ranlib
configure:3662: found /usr/bin/armv5l-linux-ranlib
configure:3670: result: armv5l-linux-ranlib
configure:3723: checking how to run the C preprocessor
configure:3749: armv5l-linux-gcc -E conftest.c
configure:3755: $? = 0
configure:3782: armv5l-linux-gcc -E conftest.c
configure:3779:28: ac_nonexistent.h: No such file or directory
configure:3788: $? = 1
configure: failed program was:
#line 3778 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3825: result: armv5l-linux-gcc -E
configure:3840: armv5l-linux-gcc -E conftest.c
configure:3846: $? = 0
configure:3873: armv5l-linux-gcc -E conftest.c
configure:3870:28: ac_nonexistent.h: No such file or directory
configure:3879: $? = 1
configure: failed program was:
#line 3869 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3918: checking for ANSI C header files
configure:3932: armv5l-linux-gcc -E conftest.c
configure:3938: $? = 0
configure:4046: result: yes
configure:4056: checking for armv5l-linux-gcc option to accept ANSI C
configure:4119: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4122: $? = 0
configure:4125: test -s conftest.o
configure:4128: $? = 0
configure:4145: result: none needed
configure:4153: checking for an ANSI C-conforming const
configure:4223: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4226: $? = 0
configure:4229: test -s conftest.o
configure:4232: $? = 0
configure:4242: result: yes
configure:4252: checking for inline
configure:4269: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4272: $? = 0
configure:4275: test -s conftest.o
configure:4278: $? = 0
configure:4289: result: inline
configure:4310: checking for sys/types.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for sys/stat.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for stdlib.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for string.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for memory.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for strings.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for inttypes.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for stdint.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4310: checking for unistd.h
configure:4323: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4326: $? = 0
configure:4329: test -s conftest.o
configure:4332: $? = 0
configure:4342: result: yes
configure:4353: checking for off_t
configure:4380: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4383: $? = 0
configure:4386: test -s conftest.o
configure:4389: $? = 0
configure:4399: result: yes
configure:4411: checking for size_t
configure:4438: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4457: result: yes
configure:4471: checking for working alloca.h
configure:4495: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:4498: $? = 0
configure:4501: test -s conftest
configure:4504: $? = 0
configure:4514: result: yes
configure:4524: checking for alloca
configure:4568: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:4571: $? = 0
configure:4574: test -s conftest
configure:4577: $? = 0
configure:4587: result: yes
configure:4778: checking for stdlib.h
configure:4783: result: yes
configure:4778: checking for unistd.h
configure:4783: result: yes
configure:4890: checking for getpagesize
configure:4933: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:4936: $? = 0
configure:4939: test -s conftest
configure:4942: $? = 0
configure:4952: result: yes
configure:4962: checking for working mmap
configure:5118: result: no
configure:5143: checking argz.h usability
configure:5152: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5155: $? = 0
configure:5158: test -s conftest.o
configure:5161: $? = 0
configure:5170: result: yes
configure:5174: checking argz.h presence
configure:5181: armv5l-linux-gcc -E conftest.c
configure:5187: $? = 0
configure:5205: result: yes
configure:5223: checking for argz.h
configure:5230: result: yes
configure:5143: checking limits.h usability
configure:5152: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5155: $? = 0
configure:5158: test -s conftest.o
configure:5161: $? = 0
configure:5170: result: yes
configure:5174: checking limits.h presence
configure:5181: armv5l-linux-gcc -E conftest.c
configure:5187: $? = 0
configure:5205: result: yes
configure:5223: checking for limits.h
configure:5230: result: yes
configure:5143: checking locale.h usability
configure:5152: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5155: $? = 0
configure:5158: test -s conftest.o
configure:5161: $? = 0
configure:5170: result: yes
configure:5174: checking locale.h presence
configure:5181: armv5l-linux-gcc -E conftest.c
configure:5187: $? = 0
configure:5205: result: yes
configure:5223: checking for locale.h
configure:5230: result: yes
configure:5143: checking nl_types.h usability
configure:5152: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5155: $? = 0
configure:5158: test -s conftest.o
configure:5161: $? = 0
configure:5170: result: yes
configure:5174: checking nl_types.h presence
configure:5181: armv5l-linux-gcc -E conftest.c
configure:5187: $? = 0
configure:5205: result: yes
configure:5223: checking for nl_types.h
configure:5230: result: yes
configure:5143: checking malloc.h usability
configure:5152: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5155: $? = 0
configure:5158: test -s conftest.o
configure:5161: $? = 0
configure:5170: result: yes
configure:5174: checking malloc.h presence
configure:5181: armv5l-linux-gcc -E conftest.c
configure:5187: $? = 0
configure:5205: result: yes
configure:5223: checking for malloc.h
configure:5230: result: yes
configure:5134: checking for string.h
configure:5139: result: yes
configure:5134: checking for unistd.h
configure:5139: result: yes
configure:5143: checking sys/param.h usability
configure:5152: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5155: $? = 0
configure:5158: test -s conftest.o
configure:5161: $? = 0
configure:5170: result: yes
configure:5174: checking sys/param.h presence
configure:5181: armv5l-linux-gcc -E conftest.c
configure:5187: $? = 0
configure:5205: result: yes
configure:5223: checking for sys/param.h
configure:5230: result: yes
configure:5247: checking for getcwd
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for munmap
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for putenv
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for setenv
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for setlocale
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for strchr
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5263: warning: conflicting types for built-in function `strchr'
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for strcasecmp
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for strdup
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for __argz_count
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for __argz_stringify
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5247: checking for __argz_next
configure:5290: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5293: $? = 0
configure:5296: test -s conftest
configure:5299: $? = 0
configure:5309: result: yes
configure:5320: checking for LC_MESSAGES
configure:5344: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5347: $? = 0
configure:5350: test -s conftest
configure:5353: $? = 0
configure:5363: result: yes
configure:5393: checking libintl.h usability
configure:5402: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:5405: $? = 0
configure:5408: test -s conftest.o
configure:5411: $? = 0
configure:5420: result: yes
configure:5424: checking libintl.h presence
configure:5431: armv5l-linux-gcc -E conftest.c
configure:5437: $? = 0
configure:5455: result: yes
configure:5473: checking for libintl.h
configure:5480: result: yes
configure:5485: checking for dgettext in libc
configure:5509: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5512: $? = 0
configure:5515: test -s conftest
configure:5518: $? = 0
configure:5528: result: yes
configure:5673: checking for msgfmt
configure:5700: result: /usr/bin/msgfmt
configure:5711: checking for dcgettext
configure:5754: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5757: $? = 0
configure:5760: test -s conftest
configure:5763: $? = 0
configure:5773: result: yes
configure:5785: checking for gmsgfmt
configure:5814: result: /usr/bin/msgfmt
configure:5823: checking for xgettext
configure:5850: result: /usr/bin/xgettext
configure:5877: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:5880: $? = 0
configure:5883: test -s conftest
configure:5886: $? = 0
configure:5948: checking for catalogs to be installed
configure:5957: result: az ca de el es eu fr gl ja ko nl nn no pl pt ro ru sk sl sv ta tr uk zh_CN zh_TW
configure:6134: checking for bind_textdomain_codeset
configure:6177: armv5l-linux-gcc -o conftest -g -O2 conftest.c >&5
configure:6180: $? = 0
configure:6183: test -s conftest
configure:6186: $? = 0
configure:6196: result: yes
configure:6284: checking for ld used by GCC
configure:6347: result: /usr/armv5l-linux/bin/ld
configure:6356: checking if the linker (/usr/armv5l-linux/bin/ld) is GNU ld
GNU ld version 2.13.90.0.16 20021126
configure:6368: result: yes
configure:6372: checking for /usr/armv5l-linux/bin/ld option to reload object files
configure:6379: result: -r
configure:6384: checking for BSD-compatible nm
configure:6420: result: /usr/bin/armv5l-linux-nm -B
configure:6423: checking whether ln -s works
configure:6427: result: yes
configure:6434: checking how to recognise dependant libraries
configure:6602: result: file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
configure:6608: checking command to parse /usr/bin/armv5l-linux-nm -B output
configure:6685: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:6688: $? = 0
configure:6692: /usr/bin/armv5l-linux-nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm
configure:6695: $? = 0
configure:6747: armv5l-linux-gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:6750: $? = 0
configure:6791: result: ok
configure:6808: checking dlfcn.h usability
configure:6817: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:6820: $? = 0
configure:6823: test -s conftest.o
configure:6826: $? = 0
configure:6835: result: yes
configure:6839: checking dlfcn.h presence
configure:6846: armv5l-linux-gcc -E conftest.c
configure:6852: $? = 0
configure:6870: result: yes
configure:6888: checking for dlfcn.h
configure:6895: result: yes
configure:6912: checking for armv5l-linux-file
configure:6970: result: no
configure:6976: checking for file
configure:7031: result: /usr/bin/file
configure:7050: checking for armv5l-linux-ranlib
configure:7073: result: armv5l-linux-ranlib
configure:7124: checking for armv5l-linux-strip
configure:7139: found /usr/bin/armv5l-linux-strip
configure:7147: result: armv5l-linux-strip
configure:7715: checking for objdir
configure:7726: result: .libs
configure:7741: checking for armv5l-linux-gcc option to produce PIC
configure:7891: result: -fPIC
configure:7895: checking if armv5l-linux-gcc PIC flag -fPIC works
configure:7921: armv5l-linux-gcc -c -g -O2 -fPIC -DPIC conftest.c >&5
configure:7924: $? = 0
configure:7927: test -s conftest.o
configure:7930: $? = 0
configure:7966: result: yes
configure:7982: checking if armv5l-linux-gcc static flag -static works
configure:8009: armv5l-linux-gcc -o conftest -g -O2 -static conftest.c >&5
configure:8012: $? = 0
configure:8015: test -s conftest
configure:8018: $? = 0
configure:8032: result: yes
configure:8043: checking if armv5l-linux-gcc supports -c -o file.o
configure:8063: armv5l-linux-gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:8087: result: yes
configure:8092: checking if armv5l-linux-gcc supports -c -o file.lo
configure:8120: armv5l-linux-gcc -c -g -O2 -c -o conftest.lo conftest.c >&5
configure:8123: $? = 0
configure:8126: test -s conftest.o
configure:8129: $? = 1
configure: failed program was:
#line 8102 "configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
int some_variable = 0;
;
return 0;
}
configure:8149: result: no
configure:8180: checking if armv5l-linux-gcc supports -fno-rtti -fno-exceptions
configure:8205: armv5l-linux-gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c >&5
configure:8208: $? = 0
configure:8211: test -s conftest.o
configure:8214: $? = 0
configure:8230: result: yes
configure:8241: checking whether the linker (/usr/armv5l-linux/bin/ld) supports shared libraries
configure:8853: result: yes
configure:8858: checking how to hardcode library paths into programs
configure:8882: result: immediate
configure:8887: checking whether stripping libraries is possible
configure:8892: result: yes
configure:8903: checking dynamic linker characteristics
configure:9285: result: GNU/Linux ld.so
configure:9290: checking if libtool supports shared libraries
configure:9292: result: yes
configure:9886: checking whether -lc should be explicitly linked in
configure:9894: armv5l-linux-gcc -c -g -O2 conftest.c >&5
configure:9897: $? = 0
configure:9911: armv5l-linux-gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1
configure:9914: $? = 0
configure:9927: result: no
configure:10507: checking for extra flags to get ANSI library prototypes
configure:10512: error: cannot run test program while cross compiling
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_c_inline=inline
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=armv5l-linux-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=armv5l-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=armv5l-linux
ac_cv_func___argz_count=yes
ac_cv_func___argz_next=yes
ac_cv_func___argz_stringify=yes
ac_cv_func_alloca_works=yes
ac_cv_func_bind_textdomain_codeset=yes
ac_cv_func_dcgettext=yes
ac_cv_func_getcwd=yes
ac_cv_func_getpagesize=yes
ac_cv_func_mmap_fixed_mapped=no
ac_cv_func_munmap=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_putenv=yes
ac_cv_func_setenv=yes
ac_cv_func_setlocale=yes
ac_cv_func_strcasecmp=yes
ac_cv_func_strchr=yes
ac_cv_func_strdup=yes
ac_cv_header_argz_h=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libintl_h=yes
ac_cv_header_limits_h=yes
ac_cv_header_locale_h=yes
ac_cv_header_malloc_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_nl_types_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_param_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=armv5l-unknown-linux-gnu
ac_cv_host_alias=armv5l-linux
ac_cv_objext=o
ac_cv_path_GMSGFMT=/usr/bin/msgfmt
ac_cv_path_MSGFMT=/usr/bin/msgfmt
ac_cv_path_PERL_PATH=/usr/bin/perl
ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_XGETTEXT=/usr/bin/xgettext
ac_cv_path_install=$'/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=armv5l-linux-gcc
ac_cv_prog_CPP=$'armv5l-linux-gcc -E'
ac_cv_prog_CXX=c++
ac_cv_prog_INDENT=indent
ac_cv_prog_PERL=perl
ac_cv_prog_RANLIB=armv5l-linux-ranlib
ac_cv_prog_STRIP=armv5l-linux-strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_sys_file_offset_bits=64
ac_cv_sys_large_files=no
ac_cv_sys_largefile_CC=no
ac_cv_type_off_t=yes
ac_cv_type_size_t=yes
ac_cv_working_alloca_h=yes
am_cv_prog_cc_stdc=
am_cv_val_LC_MESSAGES=yes
glib_cv_rtldglobal_broken=yes
glib_cv_stack_grows=yes
glib_cv_uscore=yes
gt_cv_func_dgettext_libc=yes
lt_cv_archive_cmds_need_lc=no
lt_cv_compiler_c_o=yes
lt_cv_compiler_o_lo=no
lt_cv_deplibs_check_method=$'file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
lt_cv_file_magic_cmd=$'$MAGIC_CMD'
lt_cv_file_magic_test_file=$'/lib/libc.so.6 /lib/libc-2.2.5.so'
lt_cv_global_symbol_to_cdecl=$'sed -n -e \'s/^. .* \\(.*\\)$/extern char \\1;/p\''
lt_cv_ld_reload_flag=-r
lt_cv_path_LD=/usr/armv5l-linux/bin/ld
lt_cv_path_MAGIC_CMD=/usr/bin/file
lt_cv_path_NM=$'/usr/bin/armv5l-linux-nm -B'
lt_cv_prog_cc_can_build_shared=yes
lt_cv_prog_cc_no_builtin=
lt_cv_prog_cc_pic=$' -fPIC'
lt_cv_prog_cc_pic_works=yes
lt_cv_prog_cc_shlib=
lt_cv_prog_cc_static=-static
lt_cv_prog_cc_static_works=yes
lt_cv_prog_cc_wl=-Wl,
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe=$'sed -n -e \'s/^.*[ \t]\\([ABCDGISTW][ABCDGISTW]*\\)[ \t][ \t]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)$/\\1 \\2\\3 \\3/p\''
lt_cv_sys_path_separator=:
nls_cv_force_use_gnu_gettext=no
nls_cv_header_intl=
nls_cv_header_libgt=
nls_cv_use_gnu_gettext=no
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define GLIB_MAJOR_VERSION 2
#define GLIB_MINOR_VERSION 0
#define GLIB_MICRO_VERSION 0
#define GLIB_INTERFACE_AGE 0
#define GLIB_BINARY_AGE 0
#define G_COMPILED_WITH_DEBUGGING "minimum"
#define _FILE_OFFSET_BITS 64
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA 1
#define HAVE_STDLIB_H 1
#define HAVE_UNISTD_H 1
#define HAVE_GETPAGESIZE 1
#define HAVE_ARGZ_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_NL_TYPES_H 1
#define HAVE_MALLOC_H 1
#define HAVE_STRING_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_GETCWD 1
#define HAVE_MUNMAP 1
#define HAVE_PUTENV 1
#define HAVE_SETENV 1
#define HAVE_SETLOCALE 1
#define HAVE_STRCHR 1
#define HAVE_STRCASECMP 1
#define HAVE_STRDUP 1
#define HAVE___ARGZ_COUNT 1
#define HAVE___ARGZ_STRINGIFY 1
#define HAVE___ARGZ_NEXT 1
#define HAVE_LC_MESSAGES 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define ENABLE_NLS 1
#define GETTEXT_PACKAGE "glib20"
#define GLIB_LOCALE_DIR "/nfs/X/gtk2.0/share/locale"
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
#define HAVE_DLFCN_H 1
configure: exit 1
참고하세요
헐 암보드에다가 X올리신 건가요? X만 잘 올린다고 해도 대략 80메가는 넘을텐데 거기다가 gtk라. 실제 프로그램 올릴 공간은 있으신건가요?
그리고 제가 잘 몰라서 그런데 올리신 컨피그화일로 봐서는 저건 일반 데탑용인 듯한데. 아무런 수정작업없이 데탑용 소스가 암보드용으로 컴파일 되지 않을 겁니다. 암보드 관련 사이트들을 찾아보면 아마 GTK 암보드용 패치가 따로 있을 겁니다. 해당 패치를 하시고 컴파일 하셔야 할 것이고요.
그리고 암보드에서 X를 돌리려면 메모리가 빵빵해서 잘 압축해서 쓰거나. 아니면 하드를 달거나 해야하기 때문에 차리라 DirectFB지원 GTK를 쓰시는 것이 좋을 듯합니다. Xserverless환경으로 가시는 것이 낳을 듯 합니다. 암보드 관련 프로젝트들은 많은 편이니 찾아 보면 많은 도움 받으실 수 있을 겁니다.
'현실은 수학으로 표현할 수 없다.'
'수학은 거짓의 학문이다.'
'난 수학이 정말 싫다.'
암 패치가 따로 있는게 아니라 glib소스를 암으로 컴파일한거 아
X는 암에다가 올린게 아니고 단지 /nfs만 잡아서 실행시킨거구욤..
GTK 암소스가 따로 있는거 아닐텐데..ㅠ.ㅠ
어떻해야되죠 ㅠ.ㅠ
x와 gtk를 통째로 올리는 것도 불가능하지는 않지만...그렇다고 해
x와 gtk를 통째로 올리는 것도 불가능하지는 않지만...
그렇다고 해서 타겟만 arm으로 바꿔서 그대로 컴파일한다고 되지는 않습니다^^;
http://gpe.handhelds.org/
이걸 참조하시길...
----
the smile has left your eyes...
컴파일하시려는 버전이 gtk+-2.0 이상인지 이하인지 모르겠습니다만,
컴파일하시려는 버전이 gtk+-2.0 이상인지 이하인지 모르겠습니다만,
gtk+2.0 같은 경우 Glib, pango, atk 및 X library 들이 필요합니다.
gcc로 cross-compile한다면 pkg-config(gtk-config) 등을 이용하여 위의 library들에 대한 CFLAGS, LDFLAGS 등을 setting해주어야 합니다.
그런데, 이러한 작업은 심각한 stress를 동반합니다. 컴파일이 제대로 된 듯이 보여도 Runtime에서 X library가 없다는 등등 에러도 많이 납니다.
제가 지금까지 찾은 가장 좋은 방법은 ScratchBox(http://www.scratchbox.org)입니다. Cross-compile을 native compile처럼 할 수 있을 뿐 아니라, debian package install로 compile 없이 필요한 프로그램(또는 라이브러리)을 설치할 수 있습니다.
PS. 그런데 보드의 flash memory 크기가 얼마인지 모르겠지만 gtk+는 무거운 라이브러리입니다. gtk+-2.0의 경우 수십MB 이상이 될 겁니다.
^^
GTK+ 무거운 라이브러리이지만, 실제로 그렇게 크지도 않으며
arm9 400M에서 굉장히 빨리 돌아갑니다.
flash의 경우도 32M 정도로 줄이면 X, GTK+, GPE, matchbox 등을
다 올리고도 가능합니다.
gpe.handhelds.org에 가시면 45메가 정도 되는 root filesystem image가 있을테고요 www.aesop-embedded.org에 가셔도 32M 정도로 줄여놓은
이미지가 있습니다.
GPE의 경우 속도가 느릴 줄 알았었는데, 실제로 올려보니 QT보다 빠르더군요.
임베디드용도로도 쓸만합니다. 올리는 방법이 정말 거지같애서 좀 문제지요.
^^
서명.....음, 서명이라...
아싸!!! Three Go!
댓글 달기