[ptx] Compiling vigra on Windows with MinGW

Yili Zhao ylzhao at vip.sina.com
Tue Nov 25 16:31:48 GMT 2003


Hi,
  using google, I obtain sourcecode of zlib-1.1.4, libpng-1.2.5,
tiff-v3.6.0 and jpeg-6b, and I compile them using MinGW and get
the *.a libraries.
  I compile vigra with zlib, png, tiff, jpeg and fftw support 
successfully using MinGW and MSYS. However, when I compile vigra
exapmles, there are some errors:
  $ make examples
  make[1]: Entering directory `/d/vigra1.2.0/src'
  make[2]: Entering directory `/d/vigra1.2.0/src/examples'
  g++ -o convert convert.o -L/d/vigra1.2.0/lib -lvigraimpex -lm  -L/e/tiff-v3.6.0/libtiff -ltiff -L/e/jpeg-6b -ljpeg     -L/e/libpng -lpng -L/e/zlib -lz
  d:/vigra1.2.0/lib/libvigraimpex.a(jpeg.o)(.text+0xb08):jpeg.cxx: undefined reference to `jpeg_create_decompress'
  d:/vigra1.2.0/lib/libvigraimpex.a(jpeg.o)(.text+0xf78):jpeg.cxx: undefined reference to `jpeg_create_decompress'
  d:/vigra1.2.0/lib/libvigraimpex.a(jpeg.o)(.text+0x2198):jpeg.cxx: undefined reference to `jpeg_create_compress'
  d:/vigra1.2.0/lib/libvigraimpex.a(jpeg.o)(.text+0x2634):jpeg.cxx: undefined reference to `jpeg_create_compress'
  make[2]: *** [convert] Error 1
  make[2]: Leaving directory `/d/vigra1.2.0/src/examples'
  make[1]: Leaving directory `/d/vigra1.2.0/src'

  I do not know why this occur.
  Alexandre, do you use visual studio.net? I think vs6.0 has some problems with template.
If you use vs.net, how you use image library? By compiling them also with vs.net or only download compiled
library? Maybe I need to install vs.net.

Yili 

 





More information about the ptX mailing list