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

안녕하세요

 

이번에는 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
5848 [Power Management] 210,110 플랫폼 [2] 꿈별 2011-08-12 1921
5847 리눅스 UART RX 수신 관련 문의 [8] 조현호 2012-05-08 1919
5846 C110 Full HD 인코딩 [3] people2 2012-05-08 1917
5845 make menuconfig 설정시 ./config , ./include/linux/autoconf.h 어떤... [2] ice179 2013-10-08 1915
5844 Exynos-4412 리눅스 동영상 재생(MFC사용) [2] 김형중 2012-12-18 1913
5843 안드로이드 보드 구매 여쭙니다. [1] 스페이스 2012-05-30 1913
5842 사운드 alsa oss, dapm 관련질문 [1] 한태창 2011-02-01 1906
5841 안드로이드용 kernel <=> 일반(전통) 리눅스 커널 [1] 테크 2013-07-26 1901
5840 제 u-boot의 config.mk파일의 시작은 TEXT_BASE = 0x23f00000 입... file [3] 혜민아빠 2012-05-03 1898
5839 probe로 넘겨지는 platform_device 인자 [1] wizard14 2013-09-11 1892
5838 exynos4412에서 mfc 참조할 예제가 있나요? [1] ice179 2013-09-10 1891
5837 [origen-4412] 커널 부팅 오류 file [11] 이준호 2012-12-11 1890
5836 엑시노스 4412 카메라 inteface 질문. [3] 마빡 2014-01-08 1884
5835 [완료]WinCE 이미지 포팅한 후 Reset시 초기 화면 깨짐 문제 [6] 김재현 2007-12-18 1883
5834 USB host 드라이버를 모듈로 사용시, 디바이스 인식 안되는 문제 [2] eou4 2013-07-19 1881
5833 HAL Library 빌드에 관해. [2] 한상우 2009-07-15 1880
5832 aesop2440 1차 보드 자료 요청드립니다. [13] 최고운 2013-09-13 1879
5831 [origen4412] 내부저장공간 질문 [2] 루트요 2013-01-14 1875
5830 루팅을 하지 않고 FrameBuffer에 접근할 수 있는 방법은 없나요? [2] 김바람 2013-03-09 1875
5829 WIFI + BT 모듈 구하기 쉬운걸로 추천 좀 해 주세요~ [4] 현쓰 2012-05-26 1875

사용자 로그인