[SOLVED] JBIGKIT - pointing to sources

Questions about applications and software
Forum rules
Before you post please read this

[SOLVED] JBIGKIT - pointing to sources

Postby sztefan on Thu May 31, 2012 8:35 am

Hi. A few days back I've posted a topic about running a scanner on Canon ir2200i office /fax/printer/scanner.
The thing is LMDE's imagemagick is compiled without support for jbg files. I did some research on the web and begun to compile imagemagick from source.
Overall i found that jbigkit is missing in LMDE. I decided to download id and compile it.
And now is the tricky part. There is no install instructions for jbigkit so 'make install' returns an error and does nothing.
So I googled this
Code: Select all
install pbmtools/jbgtopbm pbmtools/pbmtojbg /usr/local/bin/
install -m 644 pbmtools/jbgtopbm.1 pbmtools/pbmtojbg.1 /usr/local/man/man1/
install -m 644 libjbig/jbig.h /usr/local/include/
install -m 644 libjbig/libjbig.a /usr/local/lib/


Now when i run ./configure on imagemagick's sources, libs for jbigkit are found but
Code: Select all
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: i686-pc-linux-gnu
Build system type: i686-pc-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes      yes
Static libraries  --enable-static=yes      yes
Module support    --with-modules=no      no
GNU ld            --with-gnu-ld=yes      yes
Quantum depth     --with-quantum-depth=16   16
High Dynamic Range Imagery
                  --enable-hdri=no      no

Delegate Configuration:
BZLIB             --with-bzlib=yes      yes
Autotrace         --with-autotrace=no      no
Dejavu fonts      --with-dejavu-font-dir=default   none
DJVU              --with-djvu=yes      yes
DPS               --with-dps=yes      no
FFTW              --with-fftw=yes      no
FlashPIX          --with-fpx=yes      no
FontConfig        --with-fontconfig=yes      yes
FreeType          --with-freetype=yes      yes
GhostPCL          None            pcl6 (unknown)
GhostXPS          None            gxps (unknown)
Ghostscript       None            gs (9.05)
Ghostscript fonts --with-gs-font-dir=default   /usr/share/fonts/type1/gsfonts/
Ghostscript lib   --with-gslib=no      no
Graphviz          --with-gvc=yes      yes
JBIG              --with-jbig=yes      no (failed tests)
JPEG v1           --with-jpeg=yes      yes
JPEG-2000         --with-jp2=yes      yes
LCMS v1           --with-lcms=yes      yes
LCMS v2           --with-lcms2=yes      no
LQR               --with-lqr=yes      yes
LZMA              --with-lzma=yes      yes
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes      yes
PERL              --with-perl=no      no
PANGO             --with-pango=yes      yes
PNG               --with-png=yes      yes
RSVG              --with-rsvg=yes      yes
TIFF              --with-tiff=yes      yes
WEBP              --with-webp=yes      no
Windows fonts     --with-windows-font-dir=   none
WMF               --with-wmf=no      no
X11               --with-x=         yes
XML               --with-xml=yes      yes
ZLIB              --with-zlib=yes      yes

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      = -lSM -lICE
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.7.7
  CC              = gcc -std=gnu99 -std=gnu99
  CFLAGS          = -pthread -I/usr/include/OpenEXR -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/lqr-1 -fopenmp -g -O2 -Wall -pthread
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS         = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -L/usr/lib
  MAGICK_LDFLAGS  = -L/usr/local/lib -L/usr/lib
  LIBS            = -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -llqr-1 -lglib-2.0 -lpng12 -ldjvulibre -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -pthread -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lcairo -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread -lltdl
  CXX             = g++
  CXXFLAGS        = -g -O2 -pthread
  FEATURES        = OpenMP

sources are missing.

Could you guys please tell me where to put jbigkit sources and how to tell the configure script/system to use them.

Thanks!
Last edited by sztefan on Mon Jun 04, 2012 6:25 am, edited 1 time in total.
sztefan
Level 1
Level 1
 
Posts: 6
Joined: Mon May 28, 2012 6:00 am

Linux Mint is funded by ads and donations.
 

Re: JBIGKIT - pointing to sources

Postby zerozero on Thu May 31, 2012 8:48 am

let's start with the basics: have you added deb-src to your sources.list?
User avatar
zerozero
Level 16
Level 16
 
Posts: 6301
Joined: Tue Jul 07, 2009 2:29 pm

Re: JBIGKIT - pointing to sources

Postby craigevil on Thu May 31, 2012 8:51 am

You might try just installing it from Debian sid.

$ apt-cache search jbigkit
jbigkit-bin - JBIGkit binaries
libjbig-dev - JBIGkit development files
libjbig0 - JBIGkit libraries
Debian Sid KDE4.8.4 Kernel 3.4 Thinkpad R40 CPU Pentium M 1.3MHz RAM 2GB ATI Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
craigevil
Level 5
Level 5
 
Posts: 559
Joined: Wed Sep 15, 2010 6:10 am
Location: down the rabbit hole

Re: JBIGKIT - pointing to sources

Postby sztefan on Thu May 31, 2012 10:35 am

zerozero wrote:let's start with the basics: have you added deb-src to your sources.list?

I've allready done that.
craigevil wrote:You might try just installing it from Debian sid.

$ apt-cache search jbigkit
jbigkit-bin - JBIGkit binaries
libjbig-dev - JBIGkit development files
libjbig0 - JBIGkit libraries

Done that too but from LMDE's src repos. I'm not shure if i want to mess with repos from different distros.

I wouldn't bother with compiling from source if packages from LMDE's repos would work.
sztefan
Level 1
Level 1
 
Posts: 6
Joined: Mon May 28, 2012 6:00 am

Re: JBIGKIT - pointing to sources

Postby zerozero on Thu May 31, 2012 10:47 am

debian sid is not a different distro, ok it's a different release and to be honest you shouldn't be mixing them unless you know what you're doing (that said *most* of the time is safe to add one pkg without many dep from sid)

either way this package is also in testing http://packages.debian.org/wheezy/jbigkit-bin (so you can either d/l the binary from that page assuring that you have all the dep satisfied) or add (temporarily)
Code: Select all
deb http://ftp.debian.org/debian testing main contrib non-free
and grab (just) what you need
Last edited by zerozero on Fri Jun 01, 2012 6:46 pm, edited 1 time in total.
Reason: corrected typo
User avatar
zerozero
Level 16
Level 16
 
Posts: 6301
Joined: Tue Jul 07, 2009 2:29 pm

Re: JBIGKIT - pointing to sources

Postby sztefan on Fri Jun 01, 2012 1:32 pm

Ok. I'll give it a try. I will post results on monday.

--==EDIT==--

After installing jbigkit-bin from debian testing nothing has changed... Any ideas why?
sztefan
Level 1
Level 1
 
Posts: 6
Joined: Mon May 28, 2012 6:00 am

Re: JBIGKIT - pointing to sources

Postby zerozero on Mon Jun 04, 2012 6:07 am

this is just an idea:
- you installed the binary, and the libraries?
Code: Select all
apt-cache search jbigkit
jbigkit-bin - JBIGkit binaries
libjbig-dev - JBIGkit development files
libjbig0 - JBIGkit libraries
User avatar
zerozero
Level 16
Level 16
 
Posts: 6301
Joined: Tue Jul 07, 2009 2:29 pm

Re: JBIGKIT - pointing to sources

Postby sztefan on Mon Jun 04, 2012 6:24 am

Code: Select all
apt-cache search jbigkit

Reported no libjbig-dev - JBIGkit development files

After reinstalling libjbig-dev from sid repo, finally configure reports jbig installed. Currently compiling imagemagick with jbig support.

Thanks for help. Cheers
sztefan
Level 1
Level 1
 
Posts: 6
Joined: Mon May 28, 2012 6:00 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 3 guests