-
Notifications
You must be signed in to change notification settings - Fork 16
Getting and compiling captdriver
This guide describes the procedure currently recommended for downloading and compiling captdriver 0.1.x on a GNU/Linux system.
This guide assumes that you have successfully completed Stage 1, which sets up a build environment on your system. If you haven't done so, please do it now or the build stage will not succeed. You should be able to find a guide for setting up a build environment on your operating system in the unified guide.
You can choose to get captdriver using two methods:
-
Downloading the ZIP file.
-
Cloning the repository with Git. You need Git installed to do this.
Simply click on the <> Code
button in the repository's
Code view (the one with the files and directories, and the
README file at the bottom), then click on Download ZIP
.
Here are the links to the repositories:
-
Alexey Galakhov's repository, the original source with a cleaner codebase and commit history.
There are also more Captdriver forks available. Most are dormant, but some may have patches for specific issues from time to time.
In a directory on your system set aside for source code, either run this command to clone the Mounaiban fork:
git clone https://github.com/mounaiban/captdriver.git captdriver
OR this to clone the original version:
git clone https://github.com/agalakhov/captdriver.git captdriver
PROTIP: the
captdriver
name at the end of the command sets the directory you are cloning to. Omit this to use a default name (usually the same name as the repository on the remote), or change this to clone multiple forks into their own directory.
Switch to the directory where you extracted the ZIP file, or where you cloned the repository.
Run these commands in order, inside the source tree's root to compile Captdriver (same directory as README):
aclocal
autoconf
automake --add-missing
./configure
make
make ppd
When successful the build process will leave several important files:
-
rastertocapt
in thesrc/
subdirectory -
A new sub-directory,
ppd
which contains the PPD files that will be used in the last stage of the installation.
You will then be ready to go on to the next step. Return to the unified guide, then go to the correct Stage 3/Installation guide.
A successful build or compilation is indicated by all of the following:
-
A lack of error messages;
make
does not have an explicit message indicating a successful build.- It is normal to have
Nothing to be done
andLeaving directory
messages.
- It is normal to have
-
The presence of a binary named
rastertocapt
in thesrc/
subdirectory of the source code directory (source tree). -
A
ppd/
subdirectory in the source tree's root directory containing the PPD files, if themake ppd
command has been run.
LBP2900 Printer on Linux. Candid's Brain. 2014-01-16.
Content in this wiki is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Any errors, omissions or suggestions? File an issue and apply the wiki
label.
Bookmarks
Unofficial Introduction to CAPT (Executive Summary)
Rootless Write Access To USB Devices
Other Canon Printer-Related Projects
SPECS: 0xA1A1
Command and Response Format
Search for pages starting with
-
SPECS
for notes on the operation of the CAPT data formats and communications protocol -
TESTING
for guidelines on testing Captdriver -
TIPS
for potentially helpful information on studying the project or the CAPT format-protocol