You are not logged in.

#1 2016-03-31 15:28:04

csfreebird
Member
From: China
Registered: 2016-03-31
Posts: 12
Website

[Solved]Cannot compile Canon printer driver

I download the driver

wget http://gdlp01.c-wss.com/gds/0/0100003440/10/Linux_UFRII_PrinterDriver_V310_us_EN.tar.gz

Unzip it and unzip its common tgz file in Source folder, then try to compile it following README, but got error:

gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_CONFIG_DIR=\""/usr/share/cngplp/"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -O2 -Wall -g -O2 -MT printerinfo.o -MD -MP -MF .deps/printerinfo.Tpo -c -o printerinfo.o printerinfo.c
mv -f .deps/printerinfo.Tpo .deps/printerinfo.Po
gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_CONFIG_DIR=\""/usr/share/cngplp/"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -O2 -Wall -g -O2 -MT load.o -MD -MP -MF .deps/load.Tpo -c -o load.o load.c
mv -f .deps/load.Tpo .deps/load.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc -O2 -Wall -g -O2 -rpath /usr/local/lib  -o cngplp main.o mainwnd.o printerinfo.o load.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 -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 -lxml2  -lcups 
libtool: link: gcc -O2 -Wall -g -O2 -o cngplp main.o mainwnd.o printerinfo.o load.o  -lglade-2.0 -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 -lxml2 -lcups -Wl,-rpath -Wl,/usr/local/lib
/usr/bin/ld: load.o: undefined reference to symbol 'g_module_symbol'
/usr/lib/libgmodule-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:444: recipe for target 'cngplp' failed
make[3]: *** [cngplp] Error 1
make[3]: Leaving directory '/home/dean/Downloads/Linux_UFRII_PrinterDriver_V310_us_EN/Sources/cndrvcups-common-3.40/cngplp/src'
Makefile:420: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/dean/Downloads/Linux_UFRII_PrinterDriver_V310_us_EN/Sources/cndrvcups-common-3.40/cngplp'
Makefile:352: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/dean/Downloads/Linux_UFRII_PrinterDriver_V310_us_EN/Sources/cndrvcups-common-3.40/cngplp'
Makefile:24: recipe for target 'gen' failed
make: *** [gen] Error 1

How to solve this?

Last edited by csfreebird (2016-04-03 02:12:21)

Offline

#2 2016-03-31 15:45:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: [Solved]Cannot compile Canon printer driver

Offline

#3 2016-04-02 02:16:18

csfreebird
Member
From: China
Registered: 2016-03-31
Posts: 12
Website

Re: [Solved]Cannot compile Canon printer driver

Thank you very much. I can use my printer now.

Offline

#4 2016-04-02 02:23:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]Cannot compile Canon printer driver

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB