2 How to build and install openjpeg binaries
3 ==========================================
5 UNIX/LINUX similar systems
6 --------------------------
8 1) Using configure tools
11 ./configure [--prefix=/path]
24 Binaries are located in the 'bin' directory.
26 If 'configure' does not work on your system please
27 call './bootstrap.sh'.
29 If 'configure' does not find a library or header file,
30 or to see available configure options, please try
33 Note: if Doxygen is found on your system, a target 'docs'
34 will automatically be created in 'doc/Makefile'. To build
35 the documentation (it will create an 'html' directory):
39 2) Using cmake (see www.cmake.org)
53 Binaries are located in the 'bin' directory.
55 Main available cmake flags:
56 * To specify the install path: '-DCMAKE_INSTALL_PREFIX=/path'
57 * To build the shared libraries: '-DBUILD_SHARED_LIBS:bool=on'
58 * To build the example codec: '-DBUILD_EXAMPLES:bool=on' (default is actually 'ON')
59 * To build the JPWL binaries: '-DBUILD_JPWL:bool=on'
60 * To build the JP3D binaries: '-DBUILD_JP3D:bool=on'
61 * To build the doxygen documentation: '-DBUILD_DOCUMENTATION:bool=on'
62 * To enable testing (and automatic result upload to http://my.cdash.org/index.php?project=OPENJPEG):
63 cmake . -DBUILD_TESTING:BOOL=ON -DJPEG2000_CONFORMANCE_DATA_ROOT:PATH=/path/to/your/JPEG2000/test/files
66 Note : JPEG2000 test files are available here : http://www.crc.ricoh.com/~gormish/jpeg2000conformance/
68 3) Manually using Makefile.nix:
69 - Manually edit the config.nix file
70 - Manually create an opj_config.h file from opj_config.h.in.user
71 and edit this opj_config.h
72 - Then : (if 'WITH_JPWL' and/or 'WITH_JP3D' are defined in config.nix)
73 make -f Makefile.nix all
74 make -f Makefile.nix install
75 make -f Makefile.nix clean
76 make -f Makefile.nix uninstall
77 - If neither 'WITH_JPWL' nor 'WITH_JP3D' is defined in config.nix
78 and you want to clean/compile/install/uninstall JPWL/JP3D:
79 call the respective target in the respective directory.
84 The same building procedures as above will soon be available for MACOSX.
85 The xcode project file has also to be updated.
86 Right now, the CMake procedure is the only one working. Please refer to instructions above.
87 If it does not work, try adding the following flag to the cmake command :
88 '-DCMAKE_OSX_ARCHITECTURES:STRING=i386'
93 If you're using cygwin, the same procedures as for Unix should work. Otherwise:
95 1) Using cmake to generate project files
97 Use the cmake procedure above with the '-G <generator-name>' flag to generate the project
98 files for the IDE you are using. Type 'cmake --help' for available generators on your platform.
100 2) Using the provided project files
102 These files are obsolete and will be updated soon.