Compiling Canon printer driver?

gcc -o cngplp main.o mainwnd.o printerinfo.o load.o options.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lglade-2.0 -lgmodule-2.0 -lcups -Wl,-rpath -Wl,/usr/local/lib

Source: Compiling Canon printer driver? – Raspberry Pi Forums

Compiling Canon printer driver? was last modified: March 15th, 2020 by Jovan Stosic

gcc command in Linux with examples – GeeksforGeeks

gcc command in Linux with examples

GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language. It can also be used to compile Objective C and Objective C++. The most important option required while compiling a source code file is the name of the source program, rest every argument is optional like a warning, debugging, linking libraries, object file etc. The different options of gcc command allow the user to stop the compilation process at different stages.

Syntax:

gcc [-c|-S|-E] [-std=standard]

Example: This will compile the source.c file and give the output file as a.out file which is default name of output file given by gcc compiler, which can be executed using ./a.out

gcc source.c

Most Usefull Options with Examples: Here source.c is the C program code file.

  • -o opt: This will compile the source.c file but instead of giving default name hence executed using ./opt, it will give output file as opt. -o is for output file option.
    gcc source.c -o opt

  • -Werror: This will compile the source and show the warning if any error is there in the program, -W is for giving warnings.
    gcc source.c -Werror -o opt

  • -Wall: This will check not only for errors but also for all kinds warning like unused variables errors, it is good practice to use this flag while compiling the code.
    gcc source.c -Wall -o opt

  • -ggdb3: This command give us permissions to debug the program using gdb which will be described later, -g option is for debugging.
    gcc -ggdb3 source.c -Wall -o opt

  • -lm : This command link math.h library to our source file, -l option is used for linking particular library, for math.h we use -lm.
    gcc -Wall source.c -o opt -lm

  • -std=c11 :This command will use the c11 version of standards for compiling the source.c program, which allows to define variable under loop initializations also using newer standards version is preferred.
    gcc -Wall -std=c11 source.c -o opt

  • -c : This command compile the program and give the object file as output, which is used to make libraries.
  • -v : This option is used for the verbose purpose.

Source: gcc command in Linux with examples – GeeksforGeeks

gcc command in Linux with examples – GeeksforGeeks was last modified: March 14th, 2020 by Jovan Stosic

Printer Drivers DCP-1510

Install LPR driver and cupswrapper driver

  1. Turn on the printer and connect the USB cable.
  2. Open the terminal and go to the directory where the drivers are.
  3. Install LPR driver.The install process may take some time. Please wait until it is complete.
    Command (for dpkg) : dpkg -i –force-all (lpr-drivername)
  4. Install cupswrapper driver.The install process may take some time. Please wait until it is complete.
    Command (for dpkg) : dpkg -i –force-all (cupswrapper-drivername)
  5. Check if the LPR driver and cupswrapper driver are installed
    Command (for dpkg) : dpkg -l | grep Brother

https://support.brother.com/g/b/downloadhowto.aspx?c=eu_ot&lang=en&prod=dcp1510_eu_as&os=128&dlid=dlf100458_000&flang=4&type3=561

Printer Drivers DCP-1510 was last modified: March 14th, 2020 by Jovan Stosic