<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">Thank you for the tips.<br style="" class=""><br style="" class="">I have updated command based on your suggestion as following:<br style="" class=""><br style="" class="">./configure --enable-dependency-tracking --prefix=/home/justin/local/bin/openslide PKG_CONFIG_PATH=/home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib/pkgconfig:/home/justin/local/bin/tiff/lib/pkgconfig OPENJPEG2_LIBS=-L/home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib<br style="" class=""><br style="" class="">The reason for adding OPENJPEG2_LIBS is without this flag it shows following error messages.<br style="" class=""><br style="" class="">...<br style="" class=""> CCLD src/libopenslide.la<br style="" class="">/usr/bin/ld: skipping incompatible /home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib/libopenjp2.so when searching for -lopenjp2<br style="" class="">/usr/bin/ld: cannot find -lopenjp2<br style="" class="">collect2: ld returned 1 exit status<br style="" class="">make[1]: *** [src/libopenslide.la] Error 1<br style="" class="">...<br style="" class=""><br style="" class="">So I looked at the details of error using ld –lopenjp2 --verbose, and it displayed followings:<br style="" class=""><br style="" class="">attempt to open /usr/x86_64-linux-gnu/lib64/libopenjp2.so failed<br style="" class="">attempt to open /usr/x86_64-linux-gnu/lib64/libopenjp2.a failed<br style="" class="">attempt to open /usr/local/lib64/libopenjp2.so failed<br style="" class="">attempt to open /usr/local/lib64/libopenjp2.a failed<br style="" class="">attempt to open /lib64/libopenjp2.so failed<br style="" class="">attempt to open /lib64/libopenjp2.a failed<br style="" class="">attempt to open /usr/lib64/libopenjp2.so failed<br style="" class="">attempt to open /usr/lib64/libopenjp2.a failed<br style="" class="">attempt to open /usr/x86_64-linux-gnu/lib/libopenjp2.so failed<br style="" class="">attempt to open /usr/x86_64-linux-gnu/lib/libopenjp2.a failed<br style="" class="">attempt to open /usr/local/lib/libopenjp2.so failed<br style="" class="">attempt to open /usr/local/lib/libopenjp2.a failed<br style="" class="">attempt to open /lib/libopenjp2.so failed<br style="" class="">attempt to open /lib/libopenjp2.a failed<br style="" class="">attempt to open /usr/lib/libopenjp2.so failed<br style="" class="">attempt to open /usr/lib/libopenjp2.a failed<br style="" class="">ld: cannot find -lopenjp2<br style="" class=""><br style="" class="">I found 'libopenjp2.so' is under /home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib, so I added it.<br style="" class=""><br style="" class="">However, when I do make followed by the command<br style="" class="">./configure --enable-dependency-tracking --prefix=/home/justin/local/bin/openslide PKG_CONFIG_PATH=/home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib/pkgconfig:/home/justin/local/bin/tiff/lib/pkgconfig OPENJPEG2_LIBS=-L/home/justin/local/bin/openjpeg-2.1.0-Linux-i386/lib<br style="" class=""><br style="" class="">I have got following erros <br style="" class=""> CC src/src_libopenslide_la-openslide-vendor-ventana.lo<br style="" class=""> CCLD src/libopenslide.la<br style="" class=""> CC tools/tools_openslide_show_properties-openslide-tools-common.o<br style="" class=""> CC tools/tools_openslide_show_properties-openslide-show-properties.o<br style="" class=""> CCLD tools/openslide-show-properties<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_setup_decoder'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_create'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_set_default_decoder_parameters'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_destroy_codec'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_set_error_handler'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_create_decompress'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_destroy'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_set_read_function'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_decode'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_set_user_data_length'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_set_user_data'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_image_destroy'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_set_warning_handler'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_read_header'<br style="" class="">collect2: ld returned 1 exit status<br style="" class="">make[1]: *** [tools/openslide-show-properties] Error 1<br style="" class=""><br style="" class=""><br style="" class="">It is same error that I have got before. <br style="" class="">So, I run 'make --debug=v' then I have got following details. <br style="" class=""><br style="" class=""> ..... omitted .....<br style="" class=""><br style="" class=""> Pruning file `src/openslide-features.h'.<br style="" class=""> Pruning file `/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stdbool.h'.<br style="" class=""> Pruning file `/usr/include/stdint.h'.<br style="" class=""> Pruning file `/usr/include/bits/wchar.h'.<br style="" class=""> Considering target file `tools/openslide-tools-common.h'.<br style="" class=""> Finished prerequisites of target file `tools/openslide-tools-common.h'.<br style="" class=""> No commands for `tools/openslide-tools-common.h' and no prerequisites actually changed.<br style="" class=""> No need to remake target `tools/openslide-tools-common.h'.<br style="" class=""> Pruning file `config.h'.<br style="" class=""> Finished prerequisites of target file `tools/tools_openslide_show_properties-openslide-tools-common.o'.<br style="" class=""> Must remake target `tools/tools_openslide_show_properties-openslide-tools-common.o'.<br style="" class=""> CC tools/tools_openslide_show_properties-openslide-tools-common.o<br style="" class=""> Successfully remade target file `tools/tools_openslide_show_properties-openslide-tools-common.o'.<br style="" class=""> Considering target file `tools/tools_openslide_show_properties-openslide-show-properties.o'.<br style="" class=""> File `tools/tools_openslide_show_properties-openslide-show-properties.o' does not exist.<br style="" class=""> Considering target file `tools/openslide-show-properties.c'.<br style="" class=""> Finished prerequisites of target file `tools/openslide-show-properties.c'.<br style="" class=""> No need to remake target `tools/openslide-show-properties.c'.<br style="" class=""> Pruning file `tools/.dirstamp'.<br style="" class=""> Pruning file `tools/.deps/.dirstamp'.<br style="" class=""><br style="" class=""> ..... omitted .....<br style="" class=""><br style="" class=""> Pruning file `src/openslide.h'.<br style="" class=""> Pruning file `src/openslide-features.h'.<br style="" class=""> Pruning file `/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stdbool.h'.<br style="" class=""> Pruning file `/usr/include/stdint.h'.<br style="" class=""> Pruning file `/usr/include/bits/wchar.h'.<br style="" class=""> Pruning file `tools/openslide-tools-common.h'.<br style="" class=""> Finished prerequisites of target file `tools/tools_openslide_show_properties-openslide-show-properties.o'.<br style="" class=""> Must remake target `tools/tools_openslide_show_properties-openslide-show-properties.o'.<br style="" class=""> CC tools/tools_openslide_show_properties-openslide-show-properties.o<br style="" class=""> Successfully remade target file `tools/tools_openslide_show_properties-openslide-show-properties.o'.<br style="" class=""> Pruning file `src/libopenslide.la'.<br style="" class=""> Pruning file `tools/.dirstamp'.<br style="" class=""> Finished prerequisites of target file `tools/openslide-show-properties'.<br style="" class=""> Must remake target `tools/openslide-show-properties'.<br style="" class=""> CCLD tools/openslide-show-properties<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_setup_decoder'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_create'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_set_default_decoder_parameters'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_destroy_codec'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_set_error_handler'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_create_decompress'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_destroy'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_set_read_function'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_decode'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_set_user_data_length'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_stream_set_user_data'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_image_destroy'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_set_warning_handler'<br style="" class="">src/.libs/libopenslide.so: undefined reference to `opj_read_header'<br style="" class="">collect2: ld returned 1 exit status<br style="" class="">make[1]: *** [tools/openslide-show-properties] Error 1<br style="" class="">make[1]: Leaving directory `/home/justin/local/tools/slideAtlas/openslide-3.4.1'<br style="" class="">make: *** [all] Error 2<br style="" class=""><br style="" class="">Can you figure out why it happens?<br style="" class="">I will appreciate any suggestions.<br style="" class=""><br style="" class=""><br style="" class=""></div></body></html>