LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Debian, octave and graphicsmagick with 32 bit depth (https://www.linuxquestions.org/questions/linux-software-2/debian-octave-and-graphicsmagick-with-32-bit-depth-4175597165/)

mr.simo 01-10-2017 10:47 AM

Debian, octave and graphicsmagick with 32 bit depth
 
Hi all,

I am working on a project for which I have to use octave and image processing. The problem is that graphicsmagick is always set to 8 bit depth..

Here is reported how to solve: http://wiki.octave.org/GraphicsMagick
So I downloaded the graphicsmagick source package wit

Code:

apt-get source graphicsmagick
edited the debian/rules files adding the flags

Code:

--with-quantum-depth=32 --enable-shared --disable-static --with-magick-plus-plus=yes
after the configure-stamp label

and I recompiled it following the instructions from here:

https://wiki.debian.org/BuildingAPac...dified_package

and then I reinstalled the graphicsmagick libs with dpkg.

But when I run octave and I try to read an image, I get the following error:

Quote:

error: default_formats: /usr/lib/i386-linux-gnu/octave/3.8.2/oct/i586-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/i386-linux-gnu/octave/3.8.2/oct/i586-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error: /usr/share/octave/3.8.2/m/image/imformats.m at line 255, column 11
error: /usr/share/octave/3.8.2/m/image/imformats.m at line 78, column 3
error: /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 60, column 7
error: /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
Do you have a suggestion about how to solve this issue ?

Regards,
simon

John VV 01-11-2017 11:50 AM

i build imagemagick for octave but it is close

you need to blacklist im or gm from being installed as a dependency
or rename the build you are doing

build the q16
then build the q32

Quote:

i386-linux-gnu/octave
is there a need for the 32 bit octave on a 64 bit os ?

you will NEED to build IM or GM as a 32 bit x86 on your 64 bit os

or
install and use the 64 bit octave


All times are GMT -5. The time now is 06:17 PM.