Open fireflyHunter opened 4 years ago
The good news is that 29 of the tests passed ;-)
Just kidding. You need to have libjpeg and libtiff. Without them, there are likely to be a lot of failures.
The good news is that 29 of the tests passed ;-)
Just kidding. You need to have libjpeg and libtiff. Without them, there are likely to be a lot of failures.
Thank you for your reply! As you instructed I installed libjpeg and libtiff in $HOME/local/bin. Then it still gives me same error info when I build leptonica. I checked that both libjpeg and libtiff is working fine. Should I specify path of libjpeg and libtiff when configuring leptonica build?
You need to make sure that your newly installed libraries are in directories that are in either the LDFLAGS list or the list of directories in the LD_LIBRARY_PATH environment variable. See the README.html file.
According to the README file
These libraries (and their shared versions) should be in /usr/lib. (If they're not, you can change the LDFLAGS variable in the makefile.) Additionally, for compilation, the following header files are assumed to be in /usr/include: jpeg: jconfig.h png: png.h, pngconf.h tiff: tiff.h, tiffio.h
I first tried to edit LDFLAG in the makefile, but I am not sure which makefile is it (there are /prog/Makefile and /prog/makefile.static), I only found LDFLAGS variable in /prog/makefile.static.
LDFLAGS += -L$(LIB_DIR) -L/usr/X11R6/lib -L$HOME/local/lib $(EXTRALIBS)
Then I add the dir to this variable and try make install but still fail (same 29 cases pass)
I also tried export LD_LIBRARY_PATH with local dir appended before ./configure, still no luck.
you will see in the README.html that you have 3 ways to build the library.
You can use the static makefiles (which you may need to edit depending on which I/O libraries you have). You run make-for-local first, then type make
Or using autoconf as you tried.
Or using cmake. See README for that as well. I'd recommend trying this. It should be able to tell you if it can't find libraries.
@fireflyHunter, could you solve your problem? Normally it is not necessary to install additional software in /usr/local
. Just make sure that the development packages for JPEG and TIFF which are provided by your Linux distribution are installed. There are other graphic libraries which can also be installed to support JPEG2000 and more formats.
Platform is x86_64 GNU/Linux.
After cloning the project from git I did following try to build it in the local directory. (without root access)
I first create a folder "local" under $HOME, then enter leptonica directory:
Then it shows the following when I run make check:
I tried different versions of leptonica, no luck. First few lines of test-suite.log are:
Anyone have solution on this?