Export to GitHub

openjpeg - issue #33

Compile Error on Kubuntu 64 Revision 570


Posted on May 26, 2010 by Swift Kangaroo

What steps will reproduce the problem? 1. Checkout Sourcecode Revision 570 on Kubuntu 64 2. Compile & Install Library 3. cd ./codec; gcc convert.c image_to_j2k.c -o image_to_j2k -lopenjpeg -I ../libopenjpeg/ -lm -ltiff

What is the expected output? What do you see instead? Should compile right, but gives ~20 errors about undefined references, e.g.: convert.c:(.text+0x87c8): undefined reference to `png_create_read_struct'

What version of the product are you using? On what operating system? 2.x Revision 570

Please provide any additional information below. Standard installation Kubuntu 10.04 x86_64 gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Linux version 2.6.32-22-generic

usr@MPC0:/usr/lib64$ ls /usr/lib64 | grep jpeg libjpeg.a libjpeg.la libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0 liblavjpeg-1.9.so.0 liblavjpeg-1.9.so.0.0.0 libmjpegutils-1.9.so.0 libmjpegutils-1.9.so.0.0.0 libopenjpeg-2.1.3.0.so libopenjpeg-2.1.4.0.so libopenjpeg.a libopenjpeg.so.2

please feel free to contact me over wolfgang.brehm@brehm-rv.de for more information

Comment #1

Posted on May 26, 2010 by Swift Kangaroo

I am beginning to trace down the error... the png.h is not included in this release. a change in convert.c to explicitly include /usr/include/libpng/png.h doesn't work either. there IS a header for png in /usr/include/libpng/ I do not know what exactly is wrong, but clearly the png.h is referenced wrong.

Comment #2

Posted on Oct 5, 2010 by Happy Rabbit

PNG and TIFF support are optional starting r636. So it should not fail to build anymore. But maybe you won't get png input/output if it does not find the libraries.

In your command line : I think there is a '-lpng' missing

Status: Fixed

Labels:
Type-Defect Priority-Medium