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해보신 분 꼭 좀 알려주시고 많은 답변 부탁 드릴께요.
를
--host=arm-s3c2440' '--build=i386-linux' 로 바꾸시기 바랍니다.