기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

x86에서는 무리없이 configure해서 make돌리니까 잘 되서 ARM용으로 포팅해보려다 계속 에러가 떠서 이렇게 질문드려요.

먼저 소스(camstream-0.27.tar.gz)받아서 configure명령을 다음과 같이 했습니다.
./configure --host=arm-s3c2440-linux --build=i686-pc-linux-gnu --enable-shared --disable-mmx CC=arm-linux-gcc CXXFLAGS="-pipe -DQT_IPAQ -DQWS -fno-exceptions -fno-rtti -O2 -DQT_NO_DEBUG -DQT_SHARED"

configure 결과는 다음과 같습니다.
(처음 부분(즉, ~camstream-0.27/configure)은 config.h파일이 잘 만들어 집니다.
지금 계속 에러가 발생하는 "ccvt"부분만...)
=== configuring in ccvt (/camstream-0.27/ccvt)
configure: running /bin/sh ./configure '--prefix=/usr/local'  '--host=arm-s3c2440-linux' '--build=i686-pc-linux-gnu' '--enable-shared' '--disable-mmx' 'CC=arm-linux-gcc' 'CXXFLAGS=-pipe -DQT_IPAQ -DQWS -fno-exceptions -fno-rtti -O2 -DQT_NO_DEBUG -DQT_SHARED' 'build_alias=i686-pc-linux-gnu' 'host_alias=arm-s3c2440-linux' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-s3c2440-linux-strip... no
checking for strip... strip
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to [email protected].
checking for arm-s3c2440-linux-gcc... arm-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gcc... gcc3
checking how to run the C preprocessor... arm-linux-gcc -E
checking for arm-s3c2440-linux-g++... no
checking for arm-s3c2440-linux-c++... no
checking for arm-s3c2440-linux-gpp... no
checking for arm-s3c2440-linux-aCC... no
checking for arm-s3c2440-linux-CC... no
checking for arm-s3c2440-linux-cxx... no
checking for arm-s3c2440-linux-cc++... no
checking for arm-s3c2440-linux-cl.exe... no
checking for arm-s3c2440-linux-FCC... no
checking for arm-s3c2440-linux-KCC... no
checking for arm-s3c2440-linux-RCC... no
checking for arm-s3c2440-linux-xlC_r... no
checking for arm-s3c2440-linux-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether arm-linux-gcc needs -traditional... no
checking for arm-s3c2440-linux-ranlib... no
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for Intel processor(s)... yes
checking if processor supports MMX instructions... no
checking endianness of machine... configure: error: cannot run test program
while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for ccvt

./configure 옵션 어느 부분을 수정해야 하는지, 아니면 다른 config파일들을 만져야 하는지 고수님들께 좀 알려주세요.ㅠ.ㅠ (QTDIR등 각종 export들은 HOST의 것으로 해놨는데 이걸 바꿔야 하나요? 개념이 좀 안잡혀서... 참고로 HOST는 fedora 8/qt-3.3 기본입니다.) 지금 사흘째 이것땜에 드라이버는 porting했는데 웹캠 테스트를 못해보고 있습니다. camstream porting해보신 분 꼭 좀 알려주시고 많은 답변 부탁 드릴께요.

고현철

2008.04.28 19:50:42
*.32.117.22

--host=arm-s3c2440-linux' '--build=i686-pc-linux-gnu'



--host=arm-s3c2440' '--build=i386-linux' 로 바꾸시기 바랍니다.

정재용

2008.04.28 23:50:35
*.240.208.13

가르쳐 주신대로 해서 ./configure했는데, 's3c2440'을 인식 못한다고(unrecognized)나와서 --host=arm 이나 --host=arm-linux로 돌렸더니 좀 되다가 또 다시 위와 같은 결과가 나오네요.
================================================================
checking endianness of machine... configure: error: cannot run test program
while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for ccvt
================================================================
이 부분에서 계속 에러가 나는데 왜 그런지 잘 모르겠습니다.
endian checking안되는 이유를 알려주세요.

configure하기전에 arm-linux-gcc 경로는 커널 2.6 컴파일러 경로를 잡아줬고. QTDIR이나 LD_LIBRARY_PATH는 호스트의 /usr/lib/qt-3.3 으로 해줬는데, QT 경로 설정부분에서 잘못한 건 아닌지요? 설마 이걸 qte-arm경로로 해주고 ./configure해야 하나요? 알려주세요.

고현철

2008.04.29 02:37:53
*.32.117.22

toolchain의 이름을 arm-linux로 바꾸셔야 할 듯 합니다.

arm-s3c2440-gcc 를 arm-linux-gcc 로요. 다른 툴들도 다 바꿔주시면 될겁니다.

toolchain directory/bin 의 파일들을 바꿔주시면 됩니다.
List of Articles
번호 제목 글쓴이 날짜 조회 수
248 [re] 2440 TFT-LCD.? <== 다시 수정요 [1] 손성원 2008-05-16 597
247 임베디드 보드 개발 의뢰를 할까 합니다 [20] 김형섭 2008-05-15 1084
246 오픈소스 arm porting 관련 사이트가 있나요? [2] 정재용 2008-05-14 834
245 [질문] nand flash의 bad발생때문에 고민입니다. [3] 오대광 2008-05-14 642
244 [완료] FAT16에서 특정부분으로 가려고 하는데, 속도가 딸립니다. [6] 이세종 2008-05-13 663
243 [완료]home server제품에 대해서… [3] 강용근 2008-05-13 656
242 [완료]warning message에 대해서… [1] 김진희 2008-05-09 744
241 [완료] 롱키, 숏키에 대한 문의입니다. [5] 이세종 2008-05-08 1380
240 802.11g 를 지원하는 무선랜에서 ad-hoc 모드에 관한 질문입니다 ^^ 서두원 2008-05-06 938
239 s3c2440관련 질문입니다. [3] 김해성 2008-05-03 714
238 camstream arm poting후 이런 에러 메세지가 뜨네요 [1] 정재용 2008-05-03 741
237 webcam 타겟보드에서 테스트할 수 있는 app좀 알려주세요. [1] 정재용 2008-05-02 837
236 [완료]컴파일에 관해서 몇가지 여쭙니다. [2] 김경식 2008-04-30 765
235 고도리님, 90번글에 대해 질문입니다~!! [4] 정재용 2008-04-29 846
234 [re] 이렇게 하시면 됩니다. 고현철 2008-04-30 1003
233 [re][re] 이렇게 하시면 됩니다. [2] 정재용 2008-04-30 729
232 [질문] POLLUX에 대해서 몇가지 질문 드립니다. [5] 장병남 2008-04-29 779
231 [re] IDCT 라는 용어가 나와서,,, [1] 장병남 2008-04-30 734
» camstream-0.27 ARM(s3c2440)용으로 컴파일 오류...Help~! [3] 정재용 2008-04-28 942
229 GUI 프로그래밍??? [1] 한기태 2008-04-23 911

사용자 로그인