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

안녕하세요

 

이번에는 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
5368 C110 소비전류가 어떻게 되나요? [6] 땜철학자 2012-05-22 1517
5367 [질문 수정했음] RTC 드라이버 포팅 관련 .... file [5] 장석원 2011-07-05 1516
5366 ffserver 질문드립니다. file [3] 이호석 2013-02-20 1514
» [S5PV210] CUPS 1.6.2 포팅 오류 때끼때끼 2013-06-11 1513
5364 [완료] mplayer에서 wma파일 재생관련 [5] 박세웅 2007-08-30 1512
5363 DDR DRAM 붙일때 주의점이 있나요? [3] 이종민 2009-03-05 1512
5362 안드로이드에서 파일 암호화/복호화 사용에 관한 질문입니다. [2] 김영일 2010-02-23 1512
5361 [해결] NAND bad block 관련 질문 [1] 박영기1 2011-08-02 1512
5360 미디어 플레이어의 네트워크 스트림 구현에 대한 문의 [6] whiterub 2012-10-05 1512
5359 arndale 보드에서 opencl 사용하는 방법에 대한 싸이트 김영준 2013-09-10 1512
5358 uboot에서 jpeg lib [3] 양파링 2014-02-04 1512
5357 SMDK2440A 타겟보드에서 ping 사용하기...ㅠㅠ <= 133에 추... [2] 류민희 2006-08-11 1511
5356 노트 PC에 grub rescue> prompt가 뜨는데??? [3] 요셉 2010-07-08 1511
5355 임베디드 리눅스 메모리맵 작업 관련...... [1] blue0sky 2011-12-29 1511
5354 안드로이드에서 Socket데몬 실행시 퍼미션 문제 [2] 사당 2013-02-16 1511
5353 Exynos4(S5PV310) Module loading 문제. [2] 준성아빠 2012-01-02 1510
5352 U-boot에서 usb storage 인식하기. 최종환 2008-12-30 1509
5351 Framework 개발 서비스 연동? 질문 드립니다. [3] Supsupi 2014-01-17 1508
5350 uart... CTS/RTS TEST에 대해서 의견 부탁드립니다. [2] 이성호 2009-11-27 1507
5349 libmpfr.so.1 : cannot open shared object file: No such f... [4] 하민근 2010-11-17 1507

사용자 로그인