Crosscompiling to ST-plattform

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
mealejan
Posts: 3
Joined: 2010-09-23T07:36:46-07:00
Authentication code: 8675308

Crosscompiling to ST-plattform

Post by mealejan »

Hi,
I'm trying to cross-compile IM for the ST-Plattform. I used following command to configure the package:

Code: Select all

./configure --prefix=/app/imagemagic/ CROSS_COMPILE=/opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux- CC=/opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-gcc --host="sh4-linux" --build="i686-linux-gnu" CPPFLAGS="-I/app/jpeg/include" LDFLAGS='-L/app/jpeg/lib' --enable-shared=no --without-threads --without-modules --without-perl --without-bzlib --without-zlib --without-dps --without-djvu --without-fftw --without-fpx --without-fontconfig --without-freetype --without-gslib --without-gvc --without-jbig --without-jpeg --without-jp2 --without-lcms --without-lcms2 --without-lqr --without-openexr --without-png --without-rsvg --without-tiff --without-wmf --without-xml --without-magick-plus-plus --disable-openmp --disable-opencl --disable-largefile --disable-libtool-lock --disable-ltdl-install --with-gnu-ld=no
The error was:

Code: Select all

magick/.libs/libMagickCore.a(magick_libMagickCore_la-semaphore.o): In function `AllocateSemaphoreInfo':
/app/ImageMagick-6.6.4-5/magick/semaphore.c:166: undefined reference to `pthread_mutexattr_init'
/app/ImageMagick-6.6.4-5/magick/semaphore.c:166: undefined reference to `pthread_mutexattr_destroy'
collect2: ld returned 1 exit status
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Crosscompiling to ST-plattform

Post by magick »

Comment out MAGICKCORE_HAVE_PTHREAD in magick/magick-config.h or grab ImageMagick 6.6.4-6 Beta sometime tomorrow which has a patch to fix the problem. Thanks.
mealejan
Posts: 3
Joined: 2010-09-23T07:36:46-07:00
Authentication code: 8675308

Re: Crosscompiling to ST-plattform

Post by mealejan »

Thank you! No the programm compiles. I enabled jpeg, but when I try to take a screenshot with this command:

Code: Select all

/app/imagemagic/bin/import -window root myfile01.jpg
It only prints the usage and following message:

Code: Select all

Miscellaneous Options:
  -debug events        display copious debugging information
  -help                print program options
  -list type           print a list of supported option arguments
  -log format          format of debugging information
  -version             print version information

By default, 'file' is written in the MIFF image format.  To
specify a particular image format, precede the filename with an image
format name and a colon (i.e. ps:image) or specify the image type as
the filename suffix (i.e. image.ps).  Specify 'file' as '-' for
standard input or output.
import: DelegateLibrarySupportNotBuiltIn `' (X11) @ error/import.c/ImportImageCommand/1297.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Crosscompiling to ST-plattform

Post by magick »

Screen caption requires the X11 libraries. After you run the configure script look at the last 40-50 lines. It tells you that it could not find the X11 libraries. Fix the problem and rerun the configure script until it shows X11 support. Next rebuild / reinstall and screen capture will work.
mealejan
Posts: 3
Joined: 2010-09-23T07:36:46-07:00
Authentication code: 8675308

Re: Crosscompiling to ST-plattform

Post by mealejan »

Thank you. Do you know an easy way to get a picture from the frame buffer if you don't have X11?
Post Reply