Page 1 of 1

Crosscompiling to ST-plattform

Posted: 2010-09-23T08:08:14-07:00
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

Re: Crosscompiling to ST-plattform

Posted: 2010-09-23T09:01:37-07:00
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.

Re: Crosscompiling to ST-plattform

Posted: 2010-09-24T04:49:39-07:00
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.

Re: Crosscompiling to ST-plattform

Posted: 2010-09-24T05:41:35-07:00
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.

Re: Crosscompiling to ST-plattform

Posted: 2010-09-24T05:51:59-07:00
by mealejan
Thank you. Do you know an easy way to get a picture from the frame buffer if you don't have X11?