Linux build issue

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
drewvy

Linux build issue

Post by drewvy »

When I run make in the ImageMagick-6.4.1 directory, after a minute or so, it stops compiling with this error:

make[1]: *** No rule to make target 'Magick++/lib/STL.cpp', needed by 'Magick++/lib/STL.lo'. Stop.

This is true for ImageMagick-6.4.1.1 and ImageMagick-6.4.1.5

How do I fix this?

~Drew
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Linux build issue

Post by magick »

We have never seen this problem before. Are any of the Magick++ modules built? Do you need Magick++? If not you can add --without-magick-plus-plus to your configure command line and rebuild.
drewvy

Re: Linux build issue

Post by drewvy »

I do not need the C++ libs. I will try that.

Here are the files I had in the Magick++/lib directory after it failed:

Blob.cpp Drawable.lo ImageMagick++.pc Options.cpp
Blob.lo Drawable.o ImageMagick++.pc.in Options.lo
Blob.o Exception.cpp Image.o Options.o
BlobRef.cpp Exception.lo ImageRef.cpp op.txt
BlobRef.lo Exception.o ImageRef.lo Pixels.cpp
BlobRef.o Functions.cpp ImageRef.o Pixels.lo
CoderInfo.cpp Functions.lo Magick++ Pixels.o
CoderInfo.lo Functions.o Magick++.h stl.cpp
CoderInfo.o Geometry.cpp Magick++.pc Thread.cpp
Color.cpp Geometry.lo Magick++.pc.in TypeMetric.cpp
Color.lo Geometry.o Montage.cpp
Color.o Image.cpp Montage.lo
Drawable.cpp Image.lo Montage.o
drewvy

Re: Linux build issue

Post by drewvy »

Still failed to build. I'm not a linux expert so I might be missing something basic.

Here is the last bit of the compile output before it failed.

...
mv -f $depbase.Tpo $depbase.Po
/bin/sh ./libtool --silent --tag=CC --mode=link gcc -g -O2 -Wall -W -pthread -o utilities/montage utilities/montage.o magick/libMagickCore.la wand/libMagickWand.la
depbase=`echo utilities/stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I./config -I. -I. -DLT_CONFIG_H='<config/config.h>' -DLTDL -I. -I. -Iltdl -I./ltdl -I./ltdl/libltdl -g -O2 -Wall -W -pthread -MT utilities/stream.o -MD -MP -MF $depbase.Tpo -c -o utilities/stream.o utilities/stream.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ./libtool --silent --tag=CC --mode=link gcc -g -O2 -Wall -W -pthread -o utilities/stream utilities/stream.o magick/libMagickCore.la wand/libMagickWand.la
make[1]: *** No rule to make target `LICENSE', needed by `all-am'. Stop.
make[1]: Leaving directory `/home/Drewv/reald/ImageMagick-6.4.1_5'
make: *** [all] Error 2
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Linux build issue

Post by magick »

Try
  • make -k -i
drewvy

Re: Linux build issue

Post by drewvy »

Here is the output after using make -k -i

make all-am
make[1]: Entering directory `/home/Drewv/reald/ImageMagick-6.4.1_5'
make[1]: *** No rule to make target `LICENSE', needed by `all-am'.
make[1]: *** No rule to make target `NEWS.txt', needed by `all-am'.
cd PerlMagick && make CC='gcc'
make[2]: Entering directory `/home/Drewv/reald/ImageMagick-6.4.1_5/PerlMagick'
make[2]: Leaving directory `/home/Drewv/reald/ImageMagick-6.4.1_5/PerlMagick'
make[1]: Target `all-am' not remade because of errors.
make[1]: Leaving directory `/home/Drewv/reald/ImageMagick-6.4.1_5'
make: [all] Error 2 (ignored)


After running "make -k -i" the Convert program appears in the Utilities directory. But when I run it, I get this error:

lt-convert: UnableToOpenConfigureFile `delegates.xml'.
lt-convert: NoDecodeDelegateForThisImageFormat `gb_test_L.tif'.
lt-convert: MissingAnImageFilename `test.bmp'.

I've been able to get everything working in windows but I can't seem to get it running in Linux. I have a version of Convert on my Linux system under /usr/bin/convert that runs fine with the have parameters as above. So my input file is valid.
Prince09

Re: Linux build issue

Post by Prince09 »

I'm not sure what went wrong in your installation process, but I think you need to test the convert program with a GIF image. ImageMagick's default installation supports only GIF images. You need to install the required libraries to support JPEG, PNG and TIFF formats.
drewvy

Re: Linux build issue

Post by drewvy »

Prince09 wrote:I'm not sure what went wrong in your installation process, but I think you need to test the convert program with a GIF image. ImageMagick's default installation supports only GIF images. You need to install the required libraries to support JPEG, PNG and TIFF formats.
Is there information on how to install TIFF and DPX? I don't see it anywhere.

Everything just works when you build in Windows. I thought it would be the same for Linux.
Prince09

Re: Linux build issue

Post by Prince09 »

I don't know much about DPX but for TIFF, JPEG and PNG I found the site below useful. Check it out and see if you find it useful.

http://www.randycullom.com/chatterbox/a ... _imag.html
(You may need to change some configuration parameters depending on the Linux Distro you use)

But you still may have problems with the installation because the source of error seems to be something different in your case. I did not have to use the -k -i flags for make.
From what I know, If convert works on a GIF image, the installation has most likely succeeded and you just need to reinstall the software with delegate libraries to support the formats you want (as described in the site above).
drewvy

Re: Linux build issue

Post by drewvy »

I get the same error with a gif file. Any help you can offer would be greatly appreciated.
Prince09

Re: Linux build issue

Post by Prince09 »

As of now, I really don't know what is causing the problem with your installation. If you let me know the configure command you used .. may be I could try it out on my machine and see how it is turning out ...
drewvy

Re: Linux build issue

Post by drewvy »

I'm using ./configure --without-magick-plus-plus

I've posted the output from "./configure --without-magick-plus-plus" in configoutput.txt here: http://drop.io/dpxfile

You will also find a the output of a plain make in makenooptionsoutput.txt (This is without the -k -i)

Thank you for looking at this!!
drewvy

Re: Linux build issue

Post by drewvy »

Prince09 wrote:I don't know much about DPX but for TIFF, JPEG and PNG I found the site below useful. Check it out and see if you find it useful.

http://www.randycullom.com/chatterbox/a ... _imag.html
(You may need to change some configuration parameters depending on the Linux Distro you use)

But you still may have problems with the installation because the source of error seems to be something different in your case. I did not have to use the -k -i flags for make.
From what I know, If convert works on a GIF image, the installation has most likely succeeded and you just need to reinstall the software with delegate libraries to support the formats you want (as described in the site above).
I started working with ImageMagick with ImageMagick-windows.zip downloaded at http://www.imagemagick.org/script/advan ... lation.php

This zip file contains all the code needed for all the different image formats. (TIFF, DPX, etc.) Why don't the main linux downloads contain these files? Can I use these source files in my linux build?

~Drew
Prince09

Re: Linux build issue

Post by Prince09 »

Hi Drew, I've just been going through the config output you posted and comparing it with the version I have, the field LDFLAGS is different (It is blank in your file). I'm *guessing* this is the reason why the installation is failing...

Try this and see if it works:

(First start with a clean slate.. remove any previous versions using make uninstall and make clean)

- With your config command, specify LDFLAGS as follows (depending on your Linux distro)

./configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'

OR

./configure LDFLAGS='-L/usr/local/lib -Wl,-rpath,/usr/local/lib' (I used this for Ubuntu Hardy Heron)

- make
- make install (as root)

If this gives you a convert that works for a GIF, then the installation is done. You need to add the delegate libraries and reinstall IM with those config flags as well to complete the process (the website i posted earlier outlines this pretty well).

You cannot use the Windows Source files for this, so far as I know. You need to install the delegates from their Unix Sources (they are available on that site as well)
drewvy

Re: Linux build issue

Post by drewvy »

Still failed the same way. Could it have something to do with my OS or compiler? What are you using?
Post Reply