Ask Your Question
0

libjpg vs libjpg8, libpng vs libpng12, etc

asked 2019-09-24 23:05:24 -0500

Martian gravatar image

I've seen differing recommendations on which graphics format libs to use when building OpenCV 4.x These are the differing versions:

libjpg vs libjpg8 vs libjpg9

libpng vs libpng12

libtiff vs libtiff5

libjasper vs libjasper1

I tried the usual searches without much luck. Are there inherent differences between the numbered and non-numbered versions of the libraries?

edit retag flag offensive close merge delete

Comments

Here is link: libpng12libjpglibjasper1libtiff5 These are for linux and pc.

supra56 gravatar imagesupra56 ( 2019-09-25 03:52:04 -0500 )edit

Print getBuildInformation (or cmake output) and you will get library version

Media I/O:
    ZLib:                        optimized zlibstaticd.lib (ver 1.2.11)
    JPEG:                        build-libjpeg-turbo (ver 2.0.2-62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         optimized libpng16_static.lib debug libpng16_staticd.lib (ver 1.6.36)
    TIFF:                        build (ver 42 - 4.0.10)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 2.3.0)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YE
LBerger gravatar imageLBerger ( 2019-09-25 03:55:22 -0500 )edit

@Martian. If you sudo apt-get update && sudo apt-get upgrade -y. It will automatically upgraded new libraries

supra56 gravatar imagesupra56 ( 2019-09-25 03:59:59 -0500 )edit

@supra56: I don't remember the context at the moment, but there was some case where installing a numbered version of a file meant that it would stay at that level, and not be upgraded. Versus the 'generic' version, that would be updated/upgraded when newer versions were available. Maybe that was in context of some CUDA libraries, but I thought perhaps that would apply here as well.

Martian gravatar imageMartian ( 2019-09-25 06:23:29 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-09-25 07:10:10 -0500

supra56 gravatar image

Try this:

sudo apt-get update && sudo apt-get upgrade -y.
sudo apt-get install libpng-dev libpng12-0 libjpeg-turbo-2.0.3 -y
sudo apt-get install libtiff5_4.0.3-12.3+deb8u9_armhf.deb

For PC:

sudo apt-get install -y libtiff5_4.0.3-12.3+deb8u9_amd64.deb
sudo apt-get install -y libjasper1_1.900.1-debian1-2.5debian9.0.0+5_amd64.deb

The word dev is for Ubuntu

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-09-24 23:05:24 -0500

Seen: 228 times

Last updated: Sep 25 '19