Resnow,
first you must have installed the CMAKE program. Try 'cmake --version' to test whether it exists
on your system.
If not, you must download it from
Calling 'configure' is useless, because CMAKE does not know 'configure'.
You can use the following shell script 'cmake-openjpeg.sh' for a test installation:
```
#!/bin/sh
cmake -DBUILD_DOC:bool=off -DBUILD_PKGCONFIG_FILES:bool=on -DCMAKE_BUILD_TYPE:string="Release" -DBUILD_JAVA:bool=off
-DBUILD_SHARED_LIBS:bool=on -DCMAKE_INSTALL_PREFIX=/usr/local/opj2 ..
If you have a '/usr/lib64' directory you should add '-DOPENJPEG_INSTALL_LIB_DIR=lib64'
```
1. tar xvf openjpeg-xyz.tar.gz
2. cd openjpeg-xyz
3. mkdir BUILD
4. cp FROM_ANYWHERE/cmake-openjpeg.sh .
5. cd BUILD
6. cp ../cmake-openjpeg.sh .
7. ./cmake-openjpeg.sh
8. In case there is no error:
make
9. In case there is no error:
Then you can inspect '/usr/local/opj2' to see what has been installed.
Usually you can find in the LIB/LIB64 directory a 'pkgconfig' directory.
CMAKE does NOT know the command 'make uninstall'. Therefore you
you should either use a separate directory e.g. '/usr/local/opj2' ; or inspect
I have a slackware64 system. So I use the directory '/usr/local/opj2' and have
added the line '/usr/local/opj2/lib64' in the file '/etc/ld.so.conf'.
winfried