VIPS,OpenSlide linker error

Yusuf Roohani yhr at andrew.cmu.edu
Mon Oct 10 22:54:49 EDT 2016


Hello,

First of all, I want to thank you guys for working on openslide. It’s a
really useful package. I’ve been having some trouble making VIPs link with
OpenSlide. I don’t have root privileges on my workstation so I install
everything into ‘~/.usr/local’.

I set the appropriate flags for the libraries, includes, pkg_configs etc.
when I had installed openslide, and everything went fine. The strange
thing is when I use the same flags to compile VIPS, I get the following
errors (shown below) when it links libopenslide.so. I even tried redo-ing
the VIPS installation without openslide and without libtiff, and it only
works if I don’t include openslide. So, I can use VIPS normally as long as
I don't link openslide, but I really need the .svs reading ability.

My hypothesis is that there’s something wrong with libopenslide.so and not
with the library paths, but what I don’t understand is why these errors
didn’t show up when I was building openslide. Do you guys have any ideas
about what I could be doing wrong?

libtool: link: gcc -std=gnu99 -g -O2 -o .libs/introspect introspect.o
-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -pthread
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/pango-1.0 -I/usr/include/libxml2 -I/usr/include/librsvg-2.0
-I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/harfbuzz
-I/usr/include/glib-2.0 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/freetype2 -I/usr/include/cairo
-I/home/yr123/.usr/local/include/openslide
-I/home/yr123/.usr/local/include/libpng16 -I/home/yr123/.usr/local/include
-Wl,--export-dynamic -pthread  -lgirepository-1.0 ./.libs/libvips.so
-L/home/yr123/.usr/local/lib /home/yr123/.usr/local/lib/libpng16.so
-lgmodule-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lrsvg-2
/home/yr123/.usr/local/lib/libopenslide.so -lgthread-2.0 -lgio-2.0 -lcairo
-lsqlite3 -lxml2 -lopenjp2 /home/yr123/.usr/local/lib/libtiff.so -llzma
-lpng15 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lz -ljpeg
/home/yr123/.usr/local/lib/libexif.so -lm -pthread -Wl,-rpath
-Wl,/home/yr123/.usr/local/lib
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFFileName at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFCurrentDirectory at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFSetDirectory at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFClientOpen at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFRGBAImageEnd at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFGetFieldDefaulted at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFRGBAImageOK at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFComputeTile at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFReadDirectory at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFIsTiled at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFRGBAImageBegin at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFReadRawTile at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFIsCODECConfigured at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFRGBAImageGet at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFClose at LIBTIFF_4.0'
/home/yr123/.usr/local/lib/libopenslide.so: undefined reference to
`TIFFGetField at LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
make[3]: *** [introspect] Error 1
make[3]: Leaving directory `/home/yr123/vips-8.4.1/libvips'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/yr123/vips-8.4.1/libvips'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yr123/vips-8.4.1'
make: *** [all] Error 2

Thanks for your help,
Yusuf




More information about the openslide-users mailing list