COMP: adding trunk/codec/compat to the list of directories
[openjpeg.git] / README.osx
1
2 # **************************************************
3 # NOTE : This README is obsolete. We strongly
4 # recommend using the cmake tool (see README.cmake)
5 # to build openJPEG.
6 # **************************************************
7
8
9 Release Notes
10 --------------
11 This version of the library has been tested under OSX 10.3 using gcc 3.3.
12
13 While the makefiles will make a .dylib and a .a, it is recommended to simply staticly link with the .a file.
14
15 Installation
16 ------------
17 Note: You will need to have root privileges in order to install the library in
18 /usr/include and /usr/lib directories.
19 The installation process is as simple as this : 
20 1) Enter the OpenJPEG directory
21 2) Build the distribution : 
22 make osx
23 make osxinstall
24 3) Clean all files produced during the build process
25 make osxclean
26
27 Simple codec compilation
28 ------------------------
29 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 either use the provided Makefile or use one of the following commands to build an encoder and decoder respectively:
30
31 gcc index.c convert.c image_to_j2k.c -o image_to_j2k -lopenjpeg -I ../libopenjpeg/ -lm -ltiff
32 gcc index.c convert.c j2k_to_image.c -o j2k_to_image -lopenjpeg -I ../libopenjpeg/ -lm -ltiff
33
34 You should add '-L..' to those lines if you did not use the 'install' target (and the 'clean' target neither...).