newbie help wanted with installing/using netpbm through macports
I did a little c++ coding in college but that was 10 years ago, so I apologize if I am missing something obvious. I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here: http://openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-MD-1... I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports. I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight). When I check to see what ports I have installed I get the following output: iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$ if they were installed properly though, I would think I could use the "which" command on them. Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm. iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out. Does anyone have any advice? Thanks! -Matt
Hi Matt, On 14.01.2008, at 21:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-MD-1...
Not sure what you are trying to achieve, but isn't it god enough to just downlaod the PPD from the page you give here and then go to preferences, add printer, and give it that PPD?
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
Again, what are you doing? Where exactly did you get the source code from? If you *really* need the compiler to find the header files, you can specify them using -I, i.e., gcc -I=/opt/local/bin or set C_INCLUDE_PATH appropriately. Hope this helps. Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
On Jan 14, 2008, at 14:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi? driver=ppmtomd&fromprinter=Alps-MD-1000
I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports.
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
You probably haven't told the ppmtomd build system that you've installed netpbm in /opt/local and it probably won't think to look there on its own.
When I check to see what ports I have installed I get the following output:
iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$
if they were installed properly though, I would think I could use the "which" command on them.
If they all provided a binary by the same name as the port, then yes. But not all ports provide binaries of the same name. Not all ports even provide binaries. (Some just provide libraries.)
Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm.
iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper
Yes. As you can see with "port deps netpbm", netpbm declares a library dependency on jasper.
I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out.
netpbm is likely installed just fine. "port contents netpbm" will show you everything it installed. It looks like it installs many binaries but none called "netpbm". It does install a libnetpbm, but "which" does not search for libraries, only binaries. Bottom line: when you configure and compile ppmtomd, you just need to tell it where netpbm is. This could help: export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib" And then follow the instructions for how to compile ppmtomd.
Hi Ryan, Thanks for the help. I did find the following in the makefile for ppmtomd: # if your ppm libraries are not in a standard place, uncomment # and change this. You may also need thing like -R, but if you're # on that sort of system you probably know it! # LDLIBS = -L/usr/local/lib I uncommented and changed the line to: LDLIBS = -L/opt/local/lib I also added your: export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib" to my ~/.profile Unfortunately, it still can't find those two header files on compiling. Do I need to add something more to the makefile that points to -I/opt/ local/include? Thanks! -Matt On Jan 14, 2008, at 5:26 PM, Ryan Schmidt wrote:
On Jan 14, 2008, at 14:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-MD-1...
I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports.
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
You probably haven't told the ppmtomd build system that you've installed netpbm in /opt/local and it probably won't think to look there on its own.
When I check to see what ports I have installed I get the following output:
iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$
if they were installed properly though, I would think I could use the "which" command on them.
If they all provided a binary by the same name as the port, then yes. But not all ports provide binaries of the same name. Not all ports even provide binaries. (Some just provide libraries.)
Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm.
iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper
Yes. As you can see with "port deps netpbm", netpbm declares a library dependency on jasper.
I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out.
netpbm is likely installed just fine. "port contents netpbm" will show you everything it installed. It looks like it installs many binaries but none called "netpbm". It does install a libnetpbm, but "which" does not search for libraries, only binaries.
Bottom line: when you configure and compile ppmtomd, you just need to tell it where netpbm is. This could help:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
And then follow the instructions for how to compile ppmtomd.
I actually tried downloading the ppd first but it didn't work. I assume because it was compiled under linux and is slightly different. There is also an OSX faq on the site that specifically mentions this driver saying: ALPS Microdry Which driver do I use? Use the free software printer driver ppmtomd You will have to compile it under OS X to use it. unfortunately it doesn't give better instructions on how to go about it. Where would I put gcc -I=/opt/local/bin or find C_INCLUDE_PATH? Thanks, -Matt Jochen Küpper wrote:
Hi Matt,
On 14.01.2008, at 21:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-MD-1...
Not sure what you are trying to achieve, but isn't it god enough to just downlaod the PPD from the page you give here and then go to preferences, add printer, and give it that PPD?
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
Again, what are you doing? Where exactly did you get the source code from?
If you *really* need the compiler to find the header files, you can specify them using -I, i.e., gcc -I=/opt/local/bin or set C_INCLUDE_PATH appropriately.
Hope this helps.
Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-- View this message in context: http://www.nabble.com/newbie-help-wanted-with-installing-using-netpbm-throug... Sent from the MacPorts - Users mailing list archive at Nabble.com.
I see now that ppmtomd is more difficult to compile than most software. As such, as soon as someone figures out how to do it, a portfile should be created so nobody else has to figure it out again. I'm working on a portfile. I'll see how far I can get. On Jan 14, 2008, at 17:35, Matt wrote:
Hi Ryan,
Thanks for the help.
I did find the following in the makefile for ppmtomd:
# if your ppm libraries are not in a standard place, uncomment # and change this. You may also need thing like -R, but if you're # on that sort of system you probably know it! # LDLIBS = -L/usr/local/lib
I uncommented and changed the line to:
LDLIBS = -L/opt/local/lib
I also added your:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
to my ~/.profile
Unfortunately, it still can't find those two header files on compiling.
Do I need to add something more to the makefile that points to -I/ opt/local/include?
Thanks!
-Matt
On Jan 14, 2008, at 5:26 PM, Ryan Schmidt wrote:
On Jan 14, 2008, at 14:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi? driver=ppmtomd&fromprinter=Alps-MD-1000
I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports.
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
You probably haven't told the ppmtomd build system that you've installed netpbm in /opt/local and it probably won't think to look there on its own.
When I check to see what ports I have installed I get the following output:
iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$
if they were installed properly though, I would think I could use the "which" command on them.
If they all provided a binary by the same name as the port, then yes. But not all ports provide binaries of the same name. Not all ports even provide binaries. (Some just provide libraries.)
Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm.
iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper
Yes. As you can see with "port deps netpbm", netpbm declares a library dependency on jasper.
I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out.
netpbm is likely installed just fine. "port contents netpbm" will show you everything it installed. It looks like it installs many binaries but none called "netpbm". It does install a libnetpbm, but "which" does not search for libraries, only binaries.
Bottom line: when you configure and compile ppmtomd, you just need to tell it where netpbm is. This could help:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
And then follow the instructions for how to compile ppmtomd.
I just added the ppmtomd portfile. Wait 12 hours, then "sudo port selfupdate", then "sudo port install ppmtomd". If you're interested to see what I had to do to get it to work, you can "port cat ppmtomd" and "cat `port dir ppmtomd`/files/patch- Makefile.diff". On Jan 14, 2008, at 18:12, Ryan Schmidt wrote:
I see now that ppmtomd is more difficult to compile than most software. As such, as soon as someone figures out how to do it, a portfile should be created so nobody else has to figure it out again.
I'm working on a portfile. I'll see how far I can get.
On Jan 14, 2008, at 17:35, Matt wrote:
Hi Ryan,
Thanks for the help.
I did find the following in the makefile for ppmtomd:
# if your ppm libraries are not in a standard place, uncomment # and change this. You may also need thing like -R, but if you're # on that sort of system you probably know it! # LDLIBS = -L/usr/local/lib
I uncommented and changed the line to:
LDLIBS = -L/opt/local/lib
I also added your:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
to my ~/.profile
Unfortunately, it still can't find those two header files on compiling.
Do I need to add something more to the makefile that points to -I/ opt/local/include?
Thanks!
-Matt
On Jan 14, 2008, at 5:26 PM, Ryan Schmidt wrote:
On Jan 14, 2008, at 14:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi? driver=ppmtomd&fromprinter=Alps-MD-1000
I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports.
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
You probably haven't told the ppmtomd build system that you've installed netpbm in /opt/local and it probably won't think to look there on its own.
When I check to see what ports I have installed I get the following output:
iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$
if they were installed properly though, I would think I could use the "which" command on them.
If they all provided a binary by the same name as the port, then yes. But not all ports provide binaries of the same name. Not all ports even provide binaries. (Some just provide libraries.)
Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm.
iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper
Yes. As you can see with "port deps netpbm", netpbm declares a library dependency on jasper.
I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out.
netpbm is likely installed just fine. "port contents netpbm" will show you everything it installed. It looks like it installs many binaries but none called "netpbm". It does install a libnetpbm, but "which" does not search for libraries, only binaries.
Bottom line: when you configure and compile ppmtomd, you just need to tell it where netpbm is. This could help:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
And then follow the instructions for how to compile ppmtomd.
Hi Ryan, Thanks for doing that! I'll download it when it updates, then let you know how it works. I am curious to see what you did to get it to work. I'll be sure to check that out. Thanks, -Matt On Jan 14, 2008, at 7:29 PM, Ryan Schmidt wrote:
I just added the ppmtomd portfile. Wait 12 hours, then "sudo port selfupdate", then "sudo port install ppmtomd".
If you're interested to see what I had to do to get it to work, you can "port cat ppmtomd" and "cat `port dir ppmtomd`/files/patch- Makefile.diff".
On Jan 14, 2008, at 18:12, Ryan Schmidt wrote:
I see now that ppmtomd is more difficult to compile than most software. As such, as soon as someone figures out how to do it, a portfile should be created so nobody else has to figure it out again.
I'm working on a portfile. I'll see how far I can get.
On Jan 14, 2008, at 17:35, Matt wrote:
Hi Ryan,
Thanks for the help.
I did find the following in the makefile for ppmtomd:
# if your ppm libraries are not in a standard place, uncomment # and change this. You may also need thing like -R, but if you're # on that sort of system you probably know it! # LDLIBS = -L/usr/local/lib
I uncommented and changed the line to:
LDLIBS = -L/opt/local/lib
I also added your:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
to my ~/.profile
Unfortunately, it still can't find those two header files on compiling.
Do I need to add something more to the makefile that points to -I/ opt/local/include?
Thanks!
-Matt
On Jan 14, 2008, at 5:26 PM, Ryan Schmidt wrote:
On Jan 14, 2008, at 14:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-MD-1...
I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports.
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
You probably haven't told the ppmtomd build system that you've installed netpbm in /opt/local and it probably won't think to look there on its own.
When I check to see what ports I have installed I get the following output:
iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$
if they were installed properly though, I would think I could use the "which" command on them.
If they all provided a binary by the same name as the port, then yes. But not all ports provide binaries of the same name. Not all ports even provide binaries. (Some just provide libraries.)
Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm.
iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper
Yes. As you can see with "port deps netpbm", netpbm declares a library dependency on jasper.
I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out.
netpbm is likely installed just fine. "port contents netpbm" will show you everything it installed. It looks like it installs many binaries but none called "netpbm". It does install a libnetpbm, but "which" does not search for libraries, only binaries.
Bottom line: when you configure and compile ppmtomd, you just need to tell it where netpbm is. This could help:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
And then follow the instructions for how to compile ppmtomd.
Hmmm.... So I got the ppmtomd port installed, but it creates a unix executable, not a ppd. Because the filetype was listed as type: Filter on the source page http://www.openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-... I tried putting a copy of the executable in with the /usr/libexec/cups/ filters It doesn't allow me to select it as a printer though... I don't suppose you know how to go about making a ppd out of it... -Matt On Jan 14, 2008, at 7:29 PM, Ryan Schmidt wrote:
I just added the ppmtomd portfile. Wait 12 hours, then "sudo port selfupdate", then "sudo port install ppmtomd".
If you're interested to see what I had to do to get it to work, you can "port cat ppmtomd" and "cat `port dir ppmtomd`/files/patch- Makefile.diff".
On Jan 14, 2008, at 18:12, Ryan Schmidt wrote:
I see now that ppmtomd is more difficult to compile than most software. As such, as soon as someone figures out how to do it, a portfile should be created so nobody else has to figure it out again.
I'm working on a portfile. I'll see how far I can get.
On Jan 14, 2008, at 17:35, Matt wrote:
Hi Ryan,
Thanks for the help.
I did find the following in the makefile for ppmtomd:
# if your ppm libraries are not in a standard place, uncomment # and change this. You may also need thing like -R, but if you're # on that sort of system you probably know it! # LDLIBS = -L/usr/local/lib
I uncommented and changed the line to:
LDLIBS = -L/opt/local/lib
I also added your:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
to my ~/.profile
Unfortunately, it still can't find those two header files on compiling.
Do I need to add something more to the makefile that points to -I/ opt/local/include?
Thanks!
-Matt
On Jan 14, 2008, at 5:26 PM, Ryan Schmidt wrote:
On Jan 14, 2008, at 14:54, Matt wrote:
I am trying to compile an intel mac compatible version of an open source printer driver so I can use my old but beloved Alps printer on my new intel imac. The source for the driver is here:
http://openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-MD-1...
I downloaded the source for the driver and tried to perform a make on it in the terminal. The string of errors showed me that it was missing the pgm.h and ppm.h header files. Searching for these files online I found that they belong to the netpbm library. It seemed like the easiest way to install netpbm and any dependant libraries was through macports.
I succesfully downloaded, installed, and updated macports, then told it to install netpbm. I got no errors and everything looked good. Unfortunately, the source for the ppmtomd driver still can't find those header files (though I can through spotlight).
You probably haven't told the ppmtomd build system that you've installed netpbm in /opt/local and it probably won't think to look there on its own.
When I check to see what ports I have installed I get the following output:
iMatt:~ mwoods$ port installed The following ports are currently installed: jasper @1.701.0_0 (active) jpeg @6b_2 (active) libpng @1.2.24_0 (active) netpbm @10.26.48_0 (active) tiff @3.8.2_1+macosx (active) zlib @1.2.3_1 (active) iMatt:~ mwoods$
if they were installed properly though, I would think I could use the "which" command on them.
If they all provided a binary by the same name as the port, then yes. But not all ports provide binaries of the same name. Not all ports even provide binaries. (Some just provide libraries.)
Unfortunately, the only port that responds to "which" is jasper which I assume is a dependent library that was installed with netpbm.
iMatt:~ mwoods$ which netpbm iMatt:~ mwoods$ which jasper /opt/local/bin/jasper
Yes. As you can see with "port deps netpbm", netpbm declares a library dependency on jasper.
I suspect either netpbm is not installed properly, or I have to do something to the makefile of the printer driver to get it to find those libraries, but I haven't been able to figure it out.
netpbm is likely installed just fine. "port contents netpbm" will show you everything it installed. It looks like it installs many binaries but none called "netpbm". It does install a libnetpbm, but "which" does not search for libraries, only binaries.
Bottom line: when you configure and compile ppmtomd, you just need to tell it where netpbm is. This could help:
export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib"
And then follow the instructions for how to compile ppmtomd.
On Jan 15, 2008, at 20:06, Matt wrote:
Hmmm....
So I got the ppmtomd port installed, but it creates a unix executable, not a ppd.
True...
Because the filetype was listed as type: Filter on the source page
http://www.openprinting.org/show_driver.cgi? driver=ppmtomd&fromprinter=Alps-MD-1000
I tried putting a copy of the executable in with the /usr/libexec/ cups/filters
It doesn't allow me to select it as a printer though...
I don't suppose you know how to go about making a ppd out of it...
The first time I heard about ppmtomd was when you mentioned it, so no, I don't know any more about it than you do. You can read its manpage to see if it's really the software you want. After you install ppmtomd, type man ppmtomd
On 16.01.2008, at 03:06, Matt wrote:
So I got the ppmtomd port installed, but it creates a unix executable, not a ppd.
Because the filetype was listed as type: Filter on the source page
http://www.openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-...
I tried putting a copy of the executable in with the /usr/libexec/ cups/filters
It doesn't allow me to select it as a printer though...
I don't suppose you know how to go about making a ppd out of it...
Hi Matt, some wild guessing here... Remember that I originally asked you why you did not simply download the PPD from the website you gave us? Maybe you should download this PPD now! Then look into it and its documentation, that PPD migth use the filter you just compiled... Finally, use specify this PPD when you add the printer in Mac OS X. If this doesn't work you have to find and read the installation instruction... Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
I have looked at the man pages by opening ppmtomd.man in the original source download. I haven't been able to run man on any software I have downloaded through macports. Do I still have something wrong with my macports install? I'm not surprised that you haven't heard of the file.... its a pretty obscure printer. Its great though... the only piece of computer equipment I have bought that is worth as much now as when I bought it new 10 years ago. I really wish the technology had caught on... If you are curious, here is a brief description of the printer: http://en.wikipedia.org/wiki/MicroDry I really want to get it to work with my new computer... I have a black and white laser for everyday printing, but I occasionally want color, and I hate ink jets... Its nice to be able to print white on black too! :) Thanks for all your help... I'll poke around in the open printing forums and maybe poke the gutenprint people, and see if they can give me some advice. -Matt On Jan 15, 2008, at 11:37 PM, Ryan Schmidt wrote:
On Jan 15, 2008, at 20:06, Matt wrote:
Hmmm....
So I got the ppmtomd port installed, but it creates a unix executable, not a ppd.
True...
Because the filetype was listed as type: Filter on the source page
http://www.openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-...
I tried putting a copy of the executable in with the /usr/libexec/ cups/filters
It doesn't allow me to select it as a printer though...
I don't suppose you know how to go about making a ppd out of it...
The first time I heard about ppmtomd was when you mentioned it, so no, I don't know any more about it than you do.
You can read its manpage to see if it's really the software you want.
After you install ppmtomd, type
man ppmtomd
On Jan 16, 2008, at 18:44, Matt wrote:
On Jan 15, 2008, at 11:37 PM, Ryan Schmidt wrote:
You can read its manpage to see if it's really the software you want.
After you install ppmtomd, type
man ppmtomd
I have looked at the man pages by opening ppmtomd.man in the original source download. I haven't been able to run man on any software I have downloaded through macports. Do I still have something wrong with my macports install?
If typing "man ppmtomd" does not show you the ppmtomd manpage, and ppmtomd is installed, then yes, something is wrong. What OS version are you on, and what is the value of your MANPATH environment variable? I'm on Tiger, and my MANPATH is empty, and it works fine.
Hi Jochen, I did try the PPD from the website, both before and after I put the compiled ppmtomd executable in the /usr/libexec/cups/filters folder. There are a bunch of other filter executables with similar names in that folder. The onlything in the /usr/libexec/cups/driver folder is gutenprint.5.1 I suspect I need some driver like gutenprint to call the filter. Thanks, I'll let people know if I get it working... -Matt On Jan 16, 2008, at 5:28 PM, Jochen Küpper wrote:
On 16.01.2008, at 03:06, Matt wrote:
So I got the ppmtomd port installed, but it creates a unix executable, not a ppd.
Because the filetype was listed as type: Filter on the source page
http://www.openprinting.org/show_driver.cgi?driver=ppmtomd&fromprinter=Alps-...
I tried putting a copy of the executable in with the /usr/libexec/ cups/filters
It doesn't allow me to select it as a printer though...
I don't suppose you know how to go about making a ppd out of it...
Hi Matt,
some wild guessing here...
Remember that I originally asked you why you did not simply download the PPD from the website you gave us? Maybe you should download this PPD now! Then look into it and its documentation, that PPD migth use the filter you just compiled... Finally, use specify this PPD when you add the printer in Mac OS X.
If this doesn't work you have to find and read the installation instruction...
Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
I'm on leopard. My MANPATH is: MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man I assume I need to add :/opt/local/share/man to it... should it have done this automaticly? or should I delete everything from MANPATH as you say yours is empty.... -Matt On Jan 16, 2008, at 7:51 PM, Ryan Schmidt wrote:
On Jan 16, 2008, at 18:44, Matt wrote:
On Jan 15, 2008, at 11:37 PM, Ryan Schmidt wrote:
You can read its manpage to see if it's really the software you want.
After you install ppmtomd, type
man ppmtomd
I have looked at the man pages by opening ppmtomd.man in the original source download. I haven't been able to run man on any software I have downloaded through macports. Do I still have something wrong with my macports install?
If typing "man ppmtomd" does not show you the ppmtomd manpage, and ppmtomd is installed, then yes, something is wrong.
What OS version are you on, and what is the value of your MANPATH environment variable?
I'm on Tiger, and my MANPATH is empty, and it works fine.
On Jan 16, 2008, at 19:08, Matt wrote:
On Jan 16, 2008, at 7:51 PM, Ryan Schmidt wrote:
On Jan 16, 2008, at 18:44, Matt wrote:
On Jan 15, 2008, at 11:37 PM, Ryan Schmidt wrote:
You can read its manpage to see if it's really the software you want.
After you install ppmtomd, type
man ppmtomd
I have looked at the man pages by opening ppmtomd.man in the original source download. I haven't been able to run man on any software I have downloaded through macports. Do I still have something wrong with my macports install?
If typing "man ppmtomd" does not show you the ppmtomd manpage, and ppmtomd is installed, then yes, something is wrong.
What OS version are you on, and what is the value of your MANPATH environment variable?
I'm on Tiger, and my MANPATH is empty, and it works fine.
I'm on leopard.
My MANPATH is:
MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man
I assume I need to add :/opt/local/share/man to it... should it have done this automaticly?
or should I delete everything from MANPATH as you say yours is empty....
Leopard does it differently, again, as usual. :( But one way to make it work is to put /opt/local/share/man into MANPATH, yes.
Hooray! I finally got my printer working! Ryan, your help compiling ppmtomd was a big step. If anyone is curious, I typed up a complete list of the steps that I needed to take to get the printer working here: http://forums.linux-foundation.org/read.php?19,4245,4315#msg-4315 Hopefully anyone else trying do get an alps printer working on and intel mac will find it. Thanks for all your help! -Matt On Jan 16, 2008, at 8:40 PM, Ryan Schmidt wrote:
On Jan 16, 2008, at 19:08, Matt wrote:
On Jan 16, 2008, at 7:51 PM, Ryan Schmidt wrote:
On Jan 16, 2008, at 18:44, Matt wrote:
On Jan 15, 2008, at 11:37 PM, Ryan Schmidt wrote:
You can read its manpage to see if it's really the software you want.
After you install ppmtomd, type
man ppmtomd
I have looked at the man pages by opening ppmtomd.man in the original source download. I haven't been able to run man on any software I have downloaded through macports. Do I still have something wrong with my macports install?
If typing "man ppmtomd" does not show you the ppmtomd manpage, and ppmtomd is installed, then yes, something is wrong.
What OS version are you on, and what is the value of your MANPATH environment variable?
I'm on Tiger, and my MANPATH is empty, and it works fine.
I'm on leopard.
My MANPATH is:
MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man
I assume I need to add :/opt/local/share/man to it... should it have done this automaticly?
or should I delete everything from MANPATH as you say yours is empty....
Leopard does it differently, again, as usual. :( But one way to make it work is to put /opt/local/share/man into MANPATH, yes.
On Jan 19, 2008, at 14:11, Matt wrote:
Hooray! I finally got my printer working! Ryan, your help compiling ppmtomd was a big step.
If anyone is curious, I typed up a complete list of the steps that I needed to take to get the printer working here:
http://forums.linux-foundation.org/read.php?19,4245,4315#msg-4315
Hopefully anyone else trying do get an alps printer working on and intel mac will find it.
Thanks for all your help!
I'm glad you got it working! But your instructions have people manually copying ppmtomd from ${prefix}/bin to /usr/local/bin. That's non-excellent. It would be better to figure out how to make it work from ${prefix}/bin. You also have people manually downloading and installing ghostscript, foomatic-rip and usbtb. We already have a port for ghostscript in MacPorts. Wouldn't it make things easier to create ports for foomatic-rip and usbtb as well?
On 20.01.2008, at 01:16, Ryan Schmidt wrote:
On Jan 19, 2008, at 14:11, Matt wrote:
Hooray! I finally got my printer working! Ryan, your help compiling ppmtomd was a big step.
Congratulations!
If anyone is curious, I typed up a complete list of the steps that I needed to take to get the printer working here: http://forums.linux-foundation.org/read.php?19,4245,4315#msg-4315
Nice.
Hopefully anyone else trying do get an alps printer working on and intel mac will find it.
I'm glad you got it working! But your instructions have people manually copying ppmtomd from ${prefix}/bin to /usr/local/bin. That's non-excellent. It would be better to figure out how to make it work from ${prefix}/bin.
Actually, I believe it is not necessary to do anything at all, well besides making sure /opt/local/bin is in the PATH when the PPD/filter is executed. he ppd does apparently not make any assumptions on the path, it simply calls the ppmtomd binary the environmnt gives it: *FoomaticRIPOptionSetting PageSize=A4: " -sPAPERSIZE=a4 -r600x600 - | && ppmtomd -autoshift -papersize A4"
You also have people manually downloading and installing ghostscript, foomatic-rip and usbtb. We already have a port for ghostscript in MacPorts. Wouldn't it make things easier to create ports for foomatic-rip and usbtb as well?
Obviously;) Just someone has to do it -- and maybe a bit more than just these few packages would be useful. It would be great if at some point MacPorts could provide a OpenPrinting port (or many...), providing the PPDs along the necessary driver/filter software? As a start, providing all the necessary driver software, but not the PPDs, would e a big step forward. The users download the PPD fro OpenPrinting.org and port install openprinting gives them everything else that's necessary (could be a meta-package). Just an idea... Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
I agree its not the most elegant solution, but its the only way I could get things to work. I'm not sure which piece of the puzzle requires ppmtomd to be in /usr/local/bin but something does. I suppose I could put an alias to ppmtomd in /usr/local/bin. I have no idea how to go about making a port file, but it would save a couple steps. The step that I am most unhappy with in my instructions is that you can't select the correct front end driver from usbtb's install interface. If someone accidentally tried to print a test page with the wrong driver it could damage their printer. Not sure what I can do about that short of modifying the source for usbtb and I'm not qualified to do that. The guy that wrote it never got back to me when I emailed him a question about it. One other question for you. Does MacPorts require the developer tools to be installed? It compiles stuff locally so I assume it does... I didn't think to put that in my list of instructions. On Jan 19, 2008, at 7:16 PM, Ryan Schmidt wrote:
I'm glad you got it working! But your instructions have people manually copying ppmtomd from ${prefix}/bin to /usr/local/bin. That's non-excellent. It would be better to figure out how to make it work from ${prefix}/bin. You also have people manually downloading and installing ghostscript, foomatic-rip and usbtb. We already have a port for ghostscript in MacPorts. Wouldn't it make things easier to create ports for foomatic-rip and usbtb as well?
participants (4)
-
Jochen Küpper
-
Matt
-
Matthew Woods
-
Ryan Schmidt