Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4135  / 3 Years ago, sun, may 23, 2021, 4:40:24

How can I configure GraphicsMagick to use --with-quantum-depth=16 before installing it with apt-get? Is it possible to do or should I build it from source?


More From » apt

 Answers
1

You should build it from source (you should make sure that your deb-src lines in your sources.list are activated, and you ran sudo apt-get update):



mkdir src && cd src && apt-get source graphicsmagick


Enter the graphicsmagick-* directory. Now, run vim debian/rules (if you want to use another text editor, be my guest) and look for the line that reads:




./configure $(gm_confflags)




bellow this add (you need to press I to insert) --with-quantum-depth=16 so it should more or less looks like:



    CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" 
./configure $(gm_confflags)
--with-quantum-depth=16
--enable-shared
--enable-static
--enable-libtool-verbose
--prefix=/usr
--mandir=$${prefix}/share/man
--infodir=$${prefix}/share/info
--docdir=$${prefix}/share/doc/graphicsmagick
--with-gs-font-dir=/usr/share/fonts/type1/gsfonts
--with-x
--x-includes=/usr/include/X11
--x-libraries=/usr/lib/X11
--without-dps
--without-modules
--without-frozenpaths
--with-perl
--with-perl-options="INSTALLDIRS=vendor"


Save the file (press Esc, then type :wq and hit Enter), and run:



sudo apt-get build-dep graphicsmagick
dpkg-buildpackage
sudo dpkg -i ../graphicsmagick*.deb


The first one installs the build dependencies, the second builds the package, the third installs the packages. And thats it.


[#29818] Tuesday, May 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odyroc

Total Points: 324
Total Questions: 109
Total Answers: 103

Location: Belize
Member since Mon, Apr 17, 2023
1 Year ago
odyroc questions
;