README.Cygwin (pfstools-2.1.0.tgz) | : | README.Cygwin (pfstools-2.2.0.tgz) | ||
---|---|---|---|---|
pfstools can be compiled under Windows from the cygwin | pfstools can be compiled under Windows from the cygwin | |||
environment. You can download cygwin from: http://www.cygwin.com/ | environment. You can download cygwin from: http://www.cygwin.com/ | |||
You may need to install X window client to use pfsview or | ==================================================== | |||
pfsglview. Possibly a better alternative is to use a natively compiled | How to compile and install? | |||
version of pfsview: | ==================================================== | |||
This instruction was tested in August of 2021 with cygwin 3.2.0. | ||||
1. Install 64-bit version of cygwin from https://cygwin.com/index.html | ||||
2. Select the following cygwin packages: | ||||
git | ||||
gcc-g++ | ||||
make | ||||
cmake | ||||
perl | ||||
zlib-devel | ||||
libilmbase-devel | ||||
libilmimf-devel | ||||
libnetpbm-devel | ||||
libMagick-devel (IMPORTANT: must be version 6. pfstools is incompatible with ver | ||||
sion 7.) | ||||
libtiff-devel | ||||
libgsl-devel | ||||
libexif-devel | ||||
libfftw3-devel | ||||
libopencv-devel | ||||
libraw | ||||
Install the latest non-test release of each package. | ||||
The list does not include Qt and OpenGL packages so that pfsview will not be com | ||||
piled. As pfsview is rather awkward to use using an X window client, it is recom | ||||
mended to use a native win32 version instead, as explained in Step 7. | ||||
3. Open cygwin terminal and clone the latest version of pfstools: | ||||
git clone https://git.code.sf.net/p/pfstools/git pfstools | ||||
Alternatively, you can compile from a prepackaged ZIP file, though the version m | ||||
ay not be a bit outdated. | ||||
4. Using the cygwin terminal, create "build" directory and run cmake: | ||||
cd pfstools | ||||
mkdir build | ||||
cd build | ||||
cmake ../ | ||||
Ignore warnings about missing OpenGL, Qt and Matlab compiler. Do not set MATLAB_ | ||||
MEX as the precompiled files will be installed in step 6. | ||||
5. Make and install: | ||||
make install | ||||
6. Matlab interface comes precompiled in the "pfstools_matlab" directory. Add th | ||||
is directory to the matlab path. | ||||
7. For pfsview image viewer, unzip the win32 version of pfstools, which can be d | ||||
ownloaded from: | ||||
https://sourceforge.net/projects/pfstools/files/pfstools_visual_studio_incomplet e/ | https://sourceforge.net/projects/pfstools/files/pfstools_visual_studio_incomplet e/ | |||
Check README file for the complete list of dependencies. | into "C:\Program Files (x86)\pfstools". Then, create a symbolic link (from Cygwi | |||
n terminal): | ||||
ln -s "/cygdrive/c/Program Files (x86)/pfstools/bin/pfsview.exe" /usr/local/bin/ | ||||
pfsview | ||||
Repeat step 4 to install pfsv after the precompiled pfsview has been installed. | ||||
7. Test that everything works. | ||||
- In cygwin: | ||||
pfsin <any_image.hdr> | pfsview | ||||
- In matlab: | ||||
pfs_test_shell | ||||
I = pfs_read_image( '<any_image>.hdr' ); | ||||
pfsview( I ); | ||||
You can download some HDR images from: | ||||
OpenEXR library must be build from sources since no cygwin development | https://sourceforge.net/projects/pfstools/files/hdr_images/ | |||
package is available. Sources can be downloaded from | ||||
http://www.openexr.com/. It is recommended to use cmake to compile | ||||
OpenEXR. | ||||
End of changes. 3 change blocks. | ||||
4 lines changed or deleted | 82 lines changed or added |