Announcement

Collapse
No announcement yet.

make error for foo2zjs printer driver

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    make error for foo2zjs printer driver

    Hello
    I am attempting to set up my HP Laserjet 1020 using foo2zjs from http://foo2zjs.rkkda.com/ but when I "make" I get >>
    ubuntu@ubuntu:~/foo2zjs$ make
    #
    # Dependencies...
    #
    # ... OK!
    #
    cc -O2 -Wall -c -o foo2zjs.o foo2zjs.c
    foo2zjs.c:60:19: error: stdio.h: No such file or directory
    foo2zjs.c:61:20: error: stdlib.h: No such file or directory
    foo2zjs.c:62:19: error: ctype.h: No such file or directory
    foo2zjs.c:63:20: error: string.h: No such file or directory
    foo2zjs.c:64:20: error: unistd.h: No such file or directory
    In file included from foo2zjs.c:67:
    zjs.h:9:22: error: inttypes.h: No such file or directory
    In file included from foo2zjs.c:67:
    zjs.h:10: error: syntax error before ‘DWORD’
    zjs.h:10: warning: type defaults to ‘int’ in declaration of ‘DWORD’
    zjs.h:10: warning: data definition has no type or storage class
    zjs.h:11: error: syntax error before ‘WORD’
    zjs.h:11: warning: type defaults to ‘int’ in declaration of ‘WORD’
    zjs.h:11: warning: data definition has no type or storage class
    zjs.h:12: error: syntax error before ‘BYTE’
    zjs.h:12: warning: type defaults to ‘int’ in declaration of ‘BYTE’
    zjs.h:12: warning: data definition has no type or storage class
    zjs.h:36: error: syntax error before ‘DWORD’
    zjs.h:36: warning: no semicolon at end of struct or union
    zjs.h:37: warning: type defaults to ‘int’ in declaration of ‘type’
    zjs.h:37: warning: data definition has no type or storage class
    zjs.h:38: error: syntax error before ‘items’
    zjs.h:38: warning: type defaults to ‘int’ in declaration of ‘items’
    zjs.h:38: warning: data definition has no type or storage class
    zjs.h:39: error: syntax error before ‘reserved’
    zjs.h:39: warning: type defaults to ‘int’ in declaration of ‘reserved’
    zjs.h:39: warning: data definition has no type or storage class
    zjs.h:40: error: syntax error before ‘signature’
    zjs.h:40: warning: type defaults to ‘int’ in declaration of ‘signature’
    zjs.h:40: warning: data definition has no type or storage class
    zjs.h:41: warning: type defaults to ‘int’ in declaration of ‘ZJ_HEADER’
    zjs.h:41: warning: data definition has no type or storage class
    zjs.h:246: error: syntax error before ‘DWORD’
    zjs.h:246: warning: no semicolon at end of struct or union
    zjs.h:247: warning: type defaults to ‘int’ in declaration of ‘item’
    zjs.h:247: warning: data definition has no type or storage class
    zjs.h:248: error: syntax error before ‘type’
    zjs.h:248: warning: type defaults to ‘int’ in declaration of ‘type’
    zjs.h:248: warning: data definition has no type or storage class
    zjs.h:249: error: syntax error before ‘param’
    zjs.h:249: warning: type defaults to ‘int’ in declaration of ‘param’
    zjs.h:249: warning: data definition has no type or storage class
    zjs.h:250: warning: type defaults to ‘int’ in declaration of ‘ZJ_ITEM_HEADER’
    zjs.h:250: warning: data definition has no type or storage class
    zjs.h:253: error: syntax error before ‘ZJ_ITEM_HEADER’
    zjs.h:253: warning: no semicolon at end of struct or union
    zjs.h:254: warning: type defaults to ‘int’ in declaration of ‘value’
    zjs.h:254: warning: data definition has no type or storage class
    zjs.h:255: warning: type defaults to ‘int’ in declaration of ‘ZJ_ITEM_UINT32’
    zjs.h:255: warning: data definition has no type or storage class
    zjs.h:258: error: syntax error before ‘ZJ_ITEM_HEADER’
    zjs.h:258: warning: no semicolon at end of struct or union
    zjs.h:259: warning: type defaults to ‘int’ in declaration of ‘value’
    zjs.h:259: warning: data definition has no type or storage class
    zjs.h:260: warning: type defaults to ‘int’ in declaration of ‘ZJ_ITEM_INT32’
    zjs.h:260: warning: data definition has no type or storage class
    zjs.h:263: error: ‘uint32_t’ undeclared here (not in a function)
    zjs.h:264: error: syntax error before ‘uint32_t’
    zjs.h:264: warning: no semicolon at end of struct or union
    zjs.h:265: warning: type defaults to ‘int’ in declaration of ‘SWAP_32’
    zjs.h:265: warning: data definition has no type or storage class
    zjs.h:268: error: ‘uint16_t’ undeclared here (not in a function)
    zjs.h:269: error: syntax error before ‘uint16_t’
    zjs.h:269: warning: no semicolon at end of struct or union
    zjs.h:270: warning: type defaults to ‘int’ in declaration of ‘SWAP_16’
    zjs.h:270: warning: data definition has no type or storage class
    zjs.h:273: error: syntax error before ‘be32’
    zjs.h:273: error: syntax error before ‘dword’
    zjs.h:274: warning: return type defaults to ‘int’
    zjs.h: In function ‘be32’:
    zjs.h:275: error: syntax error before ‘swap’
    zjs.h:278: error: ‘probe’ undeclared (first use in this function)
    zjs.h:278: error: (Each undeclared identifier is reported only once
    zjs.h:278: error: for each function it appears in.)
    zjs.h:280: error: ‘swap’ undeclared (first use in this function)
    zjs.h:280: error: syntax error before ‘dword’
    zjs.h:281: error: syntax error before ‘dword’
    zjs.h:282: error: syntax error before ‘dword’
    and so on......

    am I missing something blindingly obvious

    Cheers

    #2
    Re: make error for foo2zjs printer driver

    "Yes," shouted the voice in my head, " You are missing something blindingly obvious."
    "What? What?" I screamed.
    "Try sudo apt-get install build-essential and then you will be able to make"
    "Oh!" I answered, "That doesn't seem blindingly obvious to me but hey.......you live and learn."

    And it worked.

    Comment

    Working...
    X