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

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
번호 제목 글쓴이 날짜 조회 수

사용자 로그인