The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 pnm2ppa won't compile
Author: Elizabeth 
Date:   25-01-01 04:50

I have a "windows-only" printer (HP 722C) which uses the PPA protocol which I am trying to install in FreeBSD 4.2-Release. I downloaded the pnm2ppa tarball from sourceforge and attempted to compile it, but it gives me the following error message:
<blockquote>bombadil# make
gcc -Wall -pedantic -O2 -g -DNDEBUG -DLANG_EN -c pnm2ppa.c
pnm2ppa.c:24: getopt.h: No such file or directory
*** Error code 1

Stop in /usr/ports/distfiles/pnm2ppa-1.04.</blockquote>

I have libgnugetopt 1.1 installed, and getopt.h is in the /usr/local/include directory. Here is the relevant part of the makefile: LDFLAGS+=-L/usr/local/include -lgnugetopt

This originally read /usr/local/lib, but I edited it, but this didn't work. I still get the same error message. Any ideas?

Reply To This Message
 Re: pnm2ppa won't compile
Author: Kevin Gable 
Date:   27-01-01 07:00

Make sure you have installed the GNU getopt port, libgnugetopt, usually in /usr/ports/devel.

This compiles and runs fine for me. Photo quality is not as good as the (proprietary HP) Windows driver, but it is quite good for anything that can be printed on normal paper. The authors have done an excellent implementation of economy mode (-eco) and there is a gamma color correction facility, although I haven't made any use of it.

Reply To This Message
 Re: pnm2ppa won't compile
Author: Elizabeth 
Date:   27-01-01 20:03

As I said in my earlier post, I have libgnugetopt installed. The problem is that it's looking in the wrong place for it and I don't know enough to fix it.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum