Package Details: pfstools 2.0.4-2

Git Clone URL: https://aur.archlinux.org/pfstools.git (read-only)
Package Base: pfstools
Description: Set of command line programs for reading, writing and manipulating high-dynamic range (HDR) images
Upstream URL: http://pfstools.sourceforge.net/
Licenses: LGPL2.1
Conflicts: pfscalibration, pfstmo
Provides: pfscalibration, pfstmo
Submitter: None
Maintainer: stativ
Last Packager: stativ
Votes: 35
Popularity: 0.323640
First Submitted: 2006-11-15 06:01
Last Updated: 2016-02-21 12:20

Dependencies (19)

Required by (1)

Sources (1)

Latest Comments

theodore commented on 2016-02-01 16:26

Hi I am trying to build pfstools with Matlab support but I am getting the following error:

Scanning dependencies of target pfs_transform_colorspace
[ 43%] Building CXX object src/matlab/CMakeFiles/pfs_transform_colorspace.dir/pfs_transform_colorspace.cpp.o
[ 44%] Generating moc_main.cxx
[ 44%] Generating moc_pfsview_widget.cxx
[ 45%] Building CXX object src/hdrhtml/CMakeFiles/pfsouthdrhtml.dir/hdrhtml.cpp.o
Scanning dependencies of target pfsview
[ 45%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/main.cpp.o
Unknown MEX argument '-O3'.
src/matlab/CMakeFiles/pfs_transform_colorspace.dir/build.make:62: recipe for target 'src/matlab/CMakeFiles/pfs_transform_colorspace.dir/pfs_transform_colorspace.cpp.o' failed
make[2]: *** [src/matlab/CMakeFiles/pfs_transform_colorspace.dir/pfs_transform_colorspace.cpp.o] Error 255
CMakeFiles/Makefile2:1389: recipe for target 'src/matlab/CMakeFiles/pfs_transform_colorspace.dir/all' failed
make[1]: *** [src/matlab/CMakeFiles/pfs_transform_colorspace.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 46%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/pfsview_widget.cpp.o
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/pfsview/pfsview_widget.cpp: In function ‘void mapFrameToImage(pfs::Array2D*, pfs::Array2D*, pfs::Array2D*, QImage*, float, float, RGBClippingMethod, LumMappingMethod, InfNaNTreatment, NegativeTreatment)’:
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/pfsview/pfsview_widget.cpp:353:92: warning: iteration 256u invokes undefined behavior [-Waggressive-loop-optimizations]
lutPixFloor[257+p+1] = getInverseMapping( mappingMethod, p_left, minValue, maxValue );
^
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/pfsview/pfsview_widget.cpp:351:23: note: containing loop
for( int p = 0; p < 257; p++ ) {
^
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/pfsview/pfsview_widget.cpp: In function ‘void mapFrameToImage(pfs::Array2D*, pfs::Array2D*, pfs::Array2D*, QImage*, float, float, RGBClippingMethod, LumMappingMethod, InfNaNTreatment, NegativeTreatment)’:
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/pfsview/pfsview_widget.cpp:353:92: warning: iteration 256u invokes undefined behavior [-Waggressive-loop-optimizations]
lutPixFloor[257+p+1] = getInverseMapping( mappingMethod, p_left, minValue, maxValue );
^
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/pfsview/pfsview_widget.cpp:351:23: note: containing loop
for( int p = 0; p < 257; p++ ) {
^
[ 47%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/luminancerange_widget.cpp.o
[ 47%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/histogram.cpp.o
[ 47%] Linking CXX executable pfsouthdrhtml
[ 47%] Built target pfsouthdrhtml
[ 48%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/resources.cpp.o
[ 49%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/moc_main.cxx.o
[ 49%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/moc_pfsview_widget.cxx.o
[ 50%] Building CXX object src/pfsview/CMakeFiles/pfsview.dir/moc_luminancerange_widget.cxx.o
[ 51%] Linking CXX executable pfsview
[ 51%] Built target pfsview
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

I have set correctly the path to Matlab root by -DMATLAB_ROOT=/home/theodore/matlab/r2015b/

Also another issue is that if I try to build it without Matlab, support I get the following error:

Scanning dependencies of target pfsalign
[ 90%] Building CXX object src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o
/home/theodore/package_builds/pfstools/src/pfstools-2.0.4/src/camera/pfsalign.cpp:46:42: fatal error: opencv2/nonfree/features2d.hpp: No such file or directory
compilation terminated.
src/camera/CMakeFiles/pfsalign.dir/build.make:62: recipe for target 'src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o' failed
make[2]: *** [src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o] Error 1
CMakeFiles/Makefile2:2026: recipe for target 'src/camera/CMakeFiles/pfsalign.dir/all' failed
make[1]: *** [src/camera/CMakeFiles/pfsalign.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 91%] Building CXX object src/tmo/mantiuk08/CMakeFiles/pfstmo_mantiuk08.dir/display_function.cpp.o
[ 92%] Linking CXX executable pfstmo_ferradans11
[ 92%] Built target pfstmo_ferradans11
[ 93%] Building CXX object src/tmo/mantiuk08/CMakeFiles/pfstmo_mantiuk08.dir/display_size.cpp.o
[ 93%] Building CXX object src/tmo/mantiuk08/CMakeFiles/pfstmo_mantiuk08.dir/cqp/cqpminimizer.cpp.o
[ 94%] Building CXX object src/tmo/mantiuk08/CMakeFiles/pfstmo_mantiuk08.dir/cqp/initial_point.cpp.o
[ 95%] Building CXX object src/tmo/mantiuk08/CMakeFiles/pfstmo_mantiuk08.dir/cqp/mg_pdip.cpp.o
[ 95%] Linking CXX executable pfstmo_mantiuk08
[ 95%] Built target pfstmo_mantiuk08
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

which I guess it means that it is not compatible with Opencv 3.1 that I have installed. Any ideas how I can bypass these errors?

Thanks.

stativ commented on 2015-12-08 20:48

@Morn: that would help if I run git add at all. To explain – I use a bunch of oneliners (https://bitbucket.org/stativ/scripts/src/tip/shell/?at=default) one of which generates .SRCINFO, adds it, does commit and pushes the changes all at once. One just must not forget to add other changes. Well, time to change "git commit" to "git commit -a" ;-)

Morn commented on 2015-12-08 15:01

@stativ: Just use "git add -u" next time, then you cannot forget to add the PKGBUILD. :-)

stativ commented on 2015-12-07 21:30

Morn: thanks, fixed now. Somehow I forgot to add the updated PKGBUILD to commit.

Morn commented on 2015-12-06 12:16

Does not work because the PKGBUILD still says 2.0.3, not 2.0.4.

stativ commented on 2015-09-14 20:20

It should build fine now. There was a problem building octave support that was automatically enabled if the octave was found. Now it is explicitly disabled to avoid any issues.

sebafroh commented on 2015-09-02 13:53

Version 2.0.3 does break compilation with Errors. Trying to update PKGBUILD to actual version 2.0.4, but with same result (but another reason):

/tmp/yaourt-tmp-sebastian/aur-pfstools/src/pfstools-2.0.4/src/octave/pfsput.cpp:181:60: error: no match for call to '(octave_value) (int)'
std::string tagValue = tags.contents( itTag )(0).string_value();
^
src/octave/CMakeFiles/pfsput.mkoct.dir/build.make:60: recipe for target 'src/octave/pfsput.oct' failed
make[2]: *** [src/octave/pfsput.oct] Error 1
CMakeFiles/Makefile2:1555: recipe for target 'src/octave/CMakeFiles/pfsput.mkoct.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfsput.mkoct.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

stativ commented on 2015-04-11 14:41

It seems the new version (2.0.2) builds fine without any workaround.

yousry commented on 2015-04-08 06:07

Adding the lib path LD_LIBRARY_PATH=./src/pfs/libpfs.a
to the cmake build script should fix the problem.

yousry commented on 2015-04-08 05:59

I get the following error message with makepkg:

Linking CXX static library libpfs.a
[ 8%] Built target pfs
Scanning dependencies of target pfstransform_colorspace.cpp
[ 9%] Generating pfstransform_colorspace.oct
/usr/bin/ld: cannot find -lpfs
collect2: error: ld returned 1 exit status
src/octave/CMakeFiles/pfsread.cpp.dir/build.make:51: recipe for target 'src/octave/pfsread.oct' failed
make[2]: *** [src/octave/pfsread.oct] Error 1
CMakeFiles/Makefile2:1491: recipe for target 'src/octave/CMakeFiles/pfsread.cpp.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfsread.cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lpfs
collect2: error: ld returned 1 exit status
src/octave/CMakeFiles/pfsclose.cpp.dir/build.make:51: recipe for target 'src/octave/pfsclose.oct' failed
make[2]: *** [src/octave/pfsclose.oct] Error 1
CMakeFiles/Makefile2:1351: recipe for target 'src/octave/CMakeFiles/pfsclose.cpp.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfsclose.cpp.dir/all] Error 2
/usr/bin/ld: cannot find -lpfs
collect2: error: ld returned 1 exit status
src/octave/CMakeFiles/pfsopen.cpp.dir/build.make:51: recipe for target 'src/octave/pfsopen.oct' failed
make[2]: *** [src/octave/pfsopen.oct] Error 1
CMakeFiles/Makefile2:1421: recipe for target 'src/octave/CMakeFiles/pfsopen.cpp.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfsopen.cpp.dir/all] Error 2
/usr/bin/ld: cannot find -lpfs
collect2: error: ld returned 1 exit status
src/octave/CMakeFiles/pfsget.cpp.dir/build.make:51: recipe for target 'src/octave/pfsget.oct' failed
make[2]: *** [src/octave/pfsget.oct] Error 1
CMakeFiles/Makefile2:1386: recipe for target 'src/octave/CMakeFiles/pfsget.cpp.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfsget.cpp.dir/all] Error 2
/usr/bin/ld: cannot find -lpfs
collect2: error: ld returned 1 exit status
src/octave/CMakeFiles/pfsput.cpp.dir/build.make:51: recipe for target 'src/octave/pfsput.oct' failed
make[2]: *** [src/octave/pfsput.oct] Error 1
CMakeFiles/Makefile2:1456: recipe for target 'src/octave/CMakeFiles/pfsput.cpp.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfsput.cpp.dir/all] Error 2
/usr/bin/ld: cannot find -lpfs
collect2: error: ld returned 1 exit status
src/octave/CMakeFiles/pfstransform_colorspace.cpp.dir/build.make:51: recipe for target 'src/octave/pfstransform_colorspace.oct' failed
make[2]: *** [src/octave/pfstransform_colorspace.oct] Error 1
CMakeFiles/Makefile2:1526: recipe for target 'src/octave/CMakeFiles/pfstransform_colorspace.cpp.dir/all' failed
make[1]: *** [src/octave/CMakeFiles/pfstransform_colorspace.cpp.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

All comments