diff options
author | dan miller | 2007-10-18 08:19:20 +0000 |
---|---|---|
committer | dan miller | 2007-10-18 08:19:20 +0000 |
commit | 3a4b53077d1eac0512a11496341ba31dd7d6e57d (patch) | |
tree | 6fe95f1ceafa8b84a89c6524f0c5ab998122bf2c /libraries/openjpeg-libsl/README.msvc | |
parent | Add gryc's patch to run commands in a shutdown_commands.txt file when the sim... (diff) | |
download | opensim-SC-3a4b53077d1eac0512a11496341ba31dd7d6e57d.zip opensim-SC-3a4b53077d1eac0512a11496341ba31dd7d6e57d.tar.gz opensim-SC-3a4b53077d1eac0512a11496341ba31dd7d6e57d.tar.bz2 opensim-SC-3a4b53077d1eac0512a11496341ba31dd7d6e57d.tar.xz |
putting openjpeg-libsl source in /libraries; updating binaries
Diffstat (limited to '')
-rw-r--r-- | libraries/openjpeg-libsl/README.msvc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libraries/openjpeg-libsl/README.msvc b/libraries/openjpeg-libsl/README.msvc new file mode 100644 index 0000000..fc9ea89 --- /dev/null +++ b/libraries/openjpeg-libsl/README.msvc | |||
@@ -0,0 +1,40 @@ | |||
1 | How to compile the library under MS VC++ 6.0 | ||
2 | -------------------------------------------- | ||
3 | |||
4 | The library comes in two versions : | ||
5 | - a static library that can be linked against any C/C++ program | ||
6 | - a Dynamic Link Library (Windows DLL) that can be used in any C/C++ program and in most interpreted languages (e.g. VB, C#, ...). | ||
7 | |||
8 | In order to compile the library version *or* the DLL version, you will have to : | ||
9 | |||
10 | 1) Open the MSVC workspace named LibOpenJPEG.dsw | ||
11 | 2) Set the choosen target as the active project, that means : | ||
12 | a) Go to the Menu 'Build -> Set Active Configuration' | ||
13 | b) Choose one of the following configuration : | ||
14 | - DllOpenJPEG - Win32 Release => creates a DLL in release mode named OpenJPEG.dll | ||
15 | - DllOpenJPEG - Win32 Debug => creates a DLL in debug mode named OpenJPEGd.dll | ||
16 | - LibOpenJPEG - Win32 Release => creates a static library in release mode named LibOpenJPEG.lib | ||
17 | - LibOpenJPEG - Win32 Debug => creates a static library in debug mode named LibOpenJPEGd.lib | ||
18 | 3) Build the project : Menu -> Build -> Rebuild All | ||
19 | |||
20 | The build process will create a directory named 'dist' that will contain all you need in order to use the library. | ||
21 | |||
22 | Simple codec compilation | ||
23 | ------------------------ | ||
24 | |||
25 | 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 projects to build an encoder and decoder respectively: | ||
26 | - image_to_j2k.dsw | ||
27 | - j2k_to_image.dsw | ||
28 | |||
29 | IMPORTANT NOTE : | ||
30 | ---------------- | ||
31 | |||
32 | The encoder and decoder samples are configured to use the static version of the library. A link to the LibOpenJPEG static project is included in these projects so that you can build both a codec and the library in a single pass. | ||
33 | |||
34 | However, you MUST NOTE that in order to use LibOpenJPEG as a static library in your program, you NEED to add the following compiler directive to your project : OPJ_STATIC | ||
35 | Look at the menu 'Project -> Settings -> C/C++ tab -> preprocessor definition' to see how this is configured. | ||
36 | When using OpenJPEG as a DLL, this compiler directive MUST NOT be used. | ||
37 | |||
38 | |||
39 | |||
40 | |||