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

안녕하세요

 

이번에는 S5PV210 에 USB 프린터 용도로 CUPS 1.6.2 를 포팅 해 보려고 합니다.

 

http://www.cups.org/software.php

 

사이트에서 CUPS 1.6.2 를 다운 받고 압축 해제 하였으며,

 

현재 /usr/local/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc 를 사용중이며,

 

libc2.10 이 적용 되어 있습니다.

 

cups cross compile 을 실행 하기 위해

 

CC=/usr/local/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc CXX=/usr/local/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ AR=/usr/local/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ar LD=/usr/local/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ld RANLIB=/usr/local/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ranlib ./configure --prefix=/NOW_CUPS/Release --target=arm-linux --host=arm-none-linux-gnueabi --build=i686-linux

 

를 실행 하였습니다.

 

그리고 make 를 하니

 

Compiling ppdc.cxx...
Linking ppdc...
Compiling ppdhtml.cxx...
Linking ppdhtml...
Compiling ppdi.cxx...
Linking ppdi...
Compiling ppdmerge.cxx...
Linking ppdmerge...
Compiling ppdpo.cxx...
Linking ppdpo...
Compiling genstrings.cxx...
Linking genstrings...
Generating localization strings...
/bin/sh: ./genstrings: cannot execute binary file
make[1]: *** [genstrings] Error 126
make: *** [all] Error 1

 

이런 오류가 나왔습니다.

 

구글링을 해 보니 1.4.8 버전때 사용하던 패치가 있어서

 

ppdc/Makefile

 

     242         echo Linking $@...
     243         $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \
     244                 libcupsppdc.a ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \
     245                 $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
     246 # 2013.06.10 delete -------------------------------------------------------->
   - 247 #       echo Generating localization strings...
   - 248 #       ./genstrings >sample.c
     249 # <------------------------------------------------------------------------------
     250

 

적용 하였습니다.

 

이후 make 를 해 보니

 

Compressing lpinfo.man... 62.8%
Compressing lpmove.man... 51.4%
Compressing lpc.man... 51.8%
Compiling mantohtml.c...
Converting man pages to HTML...
    cancel.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    cups-config.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    cupstestdsc.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    cupstestppd.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    ipptool.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lp.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lpoptions.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lppasswd.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lpq.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lprm.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lpr.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    lpstat.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    ppdc.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    ppdhtml.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    ppdi.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    ppdmerge.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
    ppdpo.1.gz...
/bin/sh: line 2: ./mantohtml: cannot execute binary file
make[1]: *** [html] Error 126
make: *** [all] Error 1

 

오류가 또 나옵니다.

 

그래서 다시 오류 관련 해서 자료를 찾아 보니

 

cups man 패치가 1.4.8 에 있더군요

 

그런데 여기서 패치 내용을 보니 적용 내용이 버전 차이 때문인지 맞지가 않아서 혹 cups 를 포팅 해 보신 경험이 있으신 분

 

들이 계시면 도움을 부탁드려 봅니다.

 

[ 적용 않한 man 패치 : vi Makefile ]

#
# Directories to make...
#
# 2013.06.10 Change ------------------------------------------------------------>
- DIRS   =       cups test $(BUILDDIRS)
+ DIRS    =       cups filter backend berkeley cgi-bin driver locale monitor \
+               notifier ppdc scheduler systemv test \
+                $(PHPDIR) \
+                conf data doc examples $(FONTS) templates
# <---------------------------------------------------------------------------------

 

 

 


 

 

List of Articles
번호 제목 글쓴이 날짜 조회 수sort

사용자 로그인