Спасибо!
Ошибка:
glbuh@glbuh-desktop:/tmp$ gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertocbm1k rastertocbm1k.c -lcupsimage -lcups
rastertocbm1k.c:33:23: error: cups/cups.h: No such file or directory
rastertocbm1k.c:34:22: error: cups/ppd.h: No such file or directory
rastertocbm1k.c:35:25: error: cups/raster.h: No such file or directory
rastertocbm1k.c: In function ‘outputCommand’:
rastertocbm1k.c:158: warning: implicit declaration of function ‘putchar’
rastertocbm1k.c: At top level:
rastertocbm1k.c:161: error: expected declaration specifiers or ‘...’ before ‘ppd_file_t’
rastertocbm1k.c: In function ‘getOptionChoiceIndex’:
rastertocbm1k.c:163: error: ‘ppd_choice_t’ undeclared (first use in this function)
rastertocbm1k.c:163: error: (Each undeclared identifier is reported only once
rastertocbm1k.c:163: error: for each function it appears in.)
rastertocbm1k.c:163: error: ‘choice’ undeclared (first use in this function)
rastertocbm1k.c:164: error: ‘ppd_option_t’ undeclared (first use in this function)
rastertocbm1k.c:164: error: ‘option’ undeclared (first use in this function)
rastertocbm1k.c:166: warning: implicit declaration of function ‘ppdFindMarkedChoice’
rastertocbm1k.c:166: error: ‘ppd’ undeclared (first use in this function)
rastertocbm1k.c:168: warning: implicit declaration of function ‘ppdFindOption’
rastertocbm1k.c:169: warning: implicit declaration of function ‘ppdFindChoice’
rastertocbm1k.c: At top level:
rastertocbm1k.c:174: error: expected ‘)’ before ‘*’ token
rastertocbm1k.c: In function ‘initializeSettings’:
rastertocbm1k.c:247: error: ‘ppd_file_t’ undeclared (first use in this function)
rastertocbm1k.c:247: error: ‘ppd’ undeclared (first use in this function)
rastertocbm1k.c:248: error: ‘cups_option_t’ undeclared (first use in this function)
rastertocbm1k.c:248: error: ‘options’ undeclared (first use in this function)
rastertocbm1k.c:251: warning: implicit declaration of function ‘ppdOpenFile’
rastertocbm1k.c:252: warning: implicit declaration of function ‘ppdMarkDefaults’
rastertocbm1k.c:253: warning: implicit declaration of function ‘cupsParseOptions’
rastertocbm1k.c:255: warning: implicit declaration of function ‘cupsMarkOptions’
rastertocbm1k.c:256: warning: implicit declaration of function ‘cupsFreeOptions’
rastertocbm1k.c:259: warning: implicit declaration of function ‘memset’
rastertocbm1k.c:259: warning: incompatible implicit declaration of built-in function ‘memset’
rastertocbm1k.c:260: error: too many arguments to function ‘getOptionChoiceIndex’
rastertocbm1k.c:261: error: too many arguments to function ‘getOptionChoiceIndex’
rastertocbm1k.c:262: error: too many arguments to function ‘getOptionChoiceIndex’
rastertocbm1k.c:263: error: too many arguments to function ‘getOptionChoiceIndex’
rastertocbm1k.c:266: warning: implicit declaration of function ‘getPageWidthPageHeight’
rastertocbm1k.c:267: warning: implicit declaration of function ‘ppdClose’
rastertocbm1k.c: In function ‘jobSetup’:
rastertocbm1k.c:290: warning: implicit declaration of function ‘printf’
rastertocbm1k.c:290: warning: incompatible implicit declaration of built-in function ‘printf’
rastertocbm1k.c: At top level:
rastertocbm1k.c:294: error: expected declaration specifiers or ‘...’ before ‘cups_page_header_t’
rastertocbm1k.c: In function ‘main’:
rastertocbm1k.c:348: error: ‘cups_raster_t’ undeclared (first use in this function)
rastertocbm1k.c:348: error: ‘ras’ undeclared (first use in this function)
rastertocbm1k.c:349: error: ‘cups_page_header_t’ undeclared (first use in this function)
rastertocbm1k.c:349: error: expected ‘;’ before ‘header’
rastertocbm1k.c:392: warning: implicit declaration of function ‘fputs’
rastertocbm1k.c:392: error: ‘stderr’ undeclared (first use in this function)
rastertocbm1k.c:402: warning: implicit declaration of function ‘perror’
rastertocbm1k.c:403: warning: implicit declaration of function ‘sleep’
rastertocbm1k.c:416: warning: implicit declaration of function ‘cupsRasterOpen’
rastertocbm1k.c:416: error: ‘CUPS_RASTER_READ’ undeclared (first use in this function)
rastertocbm1k.c:417: warning: implicit declaration of function ‘cupsRasterReadHeader’
rastertocbm1k.c:417: error: ‘header’ undeclared (first use in this function)
rastertocbm1k.c:421: warning: implicit declaration of function ‘cupsRasterClose’
rastertocbm1k.c:421: warning: implicit declaration of function ‘close’
rastertocbm1k.c:426: error: too many arguments to function ‘pageSetup’
rastertocbm1k.c:428: warning: implicit declaration of function ‘fprintf’
rastertocbm1k.c:428: warning: incompatible implicit declaration of built-in function ‘fprintf’
rastertocbm1k.c:433: warning: incompatible implicit declaration of built-in function ‘printf’
rastertocbm1k.c:440: warning: implicit declaration of function ‘cupsRasterReadPixels’
Пользователь решил продолжить мысль 23 Апреля 2010, 11:34:49:
rastertocbm1k.c:33:23: error: cups/cups.h: No such file or directory
rastertocbm1k.c:34:22: error: cups/ppd.h: No such file or directory
rastertocbm1k.c:35:25: error: cups/raster.h: No such file or directory
sudo apt-get install libcups2-dev
sudo apt-get install libcupsimage2-dev
Потом ошибка:
glbuh@glbuh-desktop:/tmp$ gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertocbm1k rastertocbm1k.c -lcupsimage -lcups
rastertocbm1k.c: In function ‘main’:
rastertocbm1k.c:417: warning: ‘cupsRasterReadHeader’ is deprecated (declared at /usr/include/cups/raster.h:321)
Пользователь решил продолжить мысль 23 Апреля 2010, 14:29:21:
Решение:
1.Скачать
http://www.citizen-systems.co.jp/support/download/printer/driver/cups/cups-CBM1000.tar.bz22. Установить пакеты
sudo apt-get install libcups2-dev
sudo apt-get install libcupsimage2-dev
3. Распаковать cups-CBM1000.tar.bz2
tar jxvf cups-CBM1000.tar.bz2
3. Перейти в папку, куда распакован cups-CBM1000.tar.bz2
cd
4. sudo gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertocbm1k rastertocbm1k.c -lcupsimage -lcups
5. Скопировать CBM1000.ppd в /usr/share/cups/model/
cp CBM1000.ppd /usr/share/cups/model
6. Скопировать rastertocbm1k в /usr/lib/cups/filter/
cp rastertocbm1k /usr/lib/cups/filter
7. Установить разрешения
sudo chmod +x /usr/lib/cups/filter/rastertocbm1k
8. Перезагрузить CUPS
sudo /etc/init.d/cups restart
9. В обозревателе
http://localhost:631/admin/add printer CBM1000
Использовано из материалов
http://ubuntuforums.org/showthread.php?t=1269926http://www.citizen-systems.co.jp/support/download/printer/driver/cups/