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

안녕하세요

 

이번에는 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
번호 제목 글쓴이 날짜 조회 수
5848 USB 전송에 관해서 질문 있습니다. [1] 무우도사 2013-06-12 1400
5847 터치스크린 관련 Drake 2013-06-12 1279
» [S5PV210] CUPS 1.6.2 포팅 오류 때끼때끼 2013-06-11 1513
5845 [참고] v210 삼성 커널 포팅 후 부팅 안되는 것 [1] 유구무언 2013-06-11 1262
5844 [v210] SMSC LAN9220 이더넷 문제 [7] 유구무언 2013-06-11 3371
5843 카메라 시스템을 공부하는데 질문이 있습니다. [3] 할라 2013-06-11 1484
5842 안드로이드에서 audio mixer [1] wizard14 2013-06-10 1332
5841 안녕하세요 ISO이미지 관련 [2] 때따뽕 2013-06-10 1341
5840 s3c6410보드에서 rt3070 ap mode 질문입니다 [1] rubio 2013-06-08 1999
5839 s3c6410 usb device [1] 김형영 2013-06-05 1447
5838 wpa_supplicant문의 드립니다. [1] 테크 2013-06-05 3079
5837 S5PV210 TL16C554 적용 문의 [3] 때끼때끼 2013-06-05 1929
5836 안드로이드 Audio Output 관련 문의 [1] 신기루 2013-05-31 1440
5835 3G 모듈 ICS에 동작 시키는 게 잘 안되네요ㅡㅡ 로또리아 2013-05-31 1233
5834 native 서비스 layer에서 자바 layer로 noti? [5] wizard14 2013-05-30 1549
5833 wlan0가 나타나지 않습니다. 조언구합니다. [3] 테크 2013-05-30 1441
5832 booting error 문의 [1] lveritas 2013-05-27 1452
5831 인터럽트 실행 순서 관련(모든task가 resume 이후에 인터럽트 핸들러호... [2] 로이1024 2013-05-26 2426
5830 Nexus 10 Full Source Code ??? [2] Simba444 2013-05-25 1838
5829 arndale 보드에서 DVFS를 끄고 무조건 최고 클럭으로 돌리고 싶습... [3] 김영준 2013-05-25 1643

사용자 로그인