Fixed issues with Reading and Writing TIF images in convert.c to avoid segmentation...
[openjpeg.git] / README.linux
1 Release Notes
2 --------------
3 This version of the library has been tested under the following OS:
4 - RedHat Linux 9.0
5
6 You should be able to link progams with the -lopenjpeg option after the library is compiled and installed. 
7 You can also statically link with libopenjpeg.a.
8 If you use a really old version of gcc and it chokes on the CRs in the file, you can type 'make dos2unix'
9 to run all of the files through dos2unix which converts CRLF to LF.  This no longer appears to be required
10 for RedHat 7.3 or 9.
11
12 Please let us know how this works for you under other Linux distributions or any other *nix.
13
14 Installation
15 ------------
16 Note: You will need to have root privileges in order to install the library in
17 /usr/include and /usr/lib directories.
18 The installation process is as simple as this : 
19 1) Enter the OpenJPEG directory
20 2) Build the distribution : 
21 make
22 make install
23 3) Clean all files produced during the build process
24 make clean
25
26 Simple codec compilation
27 ------------------------
28 Once you've built the library, you might want to test it with a basic codec. To do this, go to the codec directory and use one of the following commands to build an encoder and decoder respectively:
29
30 gcc convert.c image_to_j2k.c -o image_to_j2k -lopenjpeg -I ../libopenjpeg/ -lm -ltiff
31 gcc convert.c j2k_to_image.c -o j2k_to_image -lopenjpeg -I ../libopenjpeg/ -lm -ltiff
32
33 You should add '-L..' to those lines if you did not use the 'install' target (and the 'clean' target neither...).