Package Details: pfstools 2.0.6-1

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.002903
First Submitted: 2006-11-15 06:01
Last Updated: 2017-03-26 17:14

Dependencies (23)

Required by (0)

Sources (2)

Latest Comments

stativ commented on 2017-03-26 17:12

Fixed.

@bartus: thank you for providing the patch.

stativ commented on 2017-03-26 15:29

Oh, I see. I always build packages in a clean chroot so it is built without opencv, hence I did not see any problem.

bartus commented on 2017-03-14 07:53

Got the same error as @dreleck. Figure out this was related to opencv2 should be listed as dependency of pfstools not opencv(current version in arch repo is 3.2).
Make some changes to 'pfsalign.cpp' for compatibility with opencv3.
http://pastebin.com/ZQQ1yhMj
It build fine, but I can't test it properly with some sample data.

stativ commented on 2017-02-25 15:25

Thanks, I updated it to 2.0.5 which builds fine here.

dreieck commented on 2017-02-22 14:41

Fails to build:

Scanning dependencies of target pfsalign
[100%] Building CXX object src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o
/var/tmp/yaourt-tmp-felics/aur-pfstools/src/pfstools-2.0.4/src/camera/pfsalign.cpp:46:42: fatal error: opencv2/nonfree/features2d.hpp: No such file or directory
#include <opencv2/nonfree/features2d.hpp>
^
compilation terminated.
make[2]: *** [src/camera/CMakeFiles/pfsalign.dir/build.make:63: src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2064: src/camera/CMakeFiles/pfsalign.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...


Although /usr/include/opencv2/features2d/features2d.hpp is present!, the source code seems to specify wrong path ("nonfree").

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.

All comments