Package Details: diffimg 2.0.1-1

Git Clone URL: (read-only)
Package Base: diffimg
Description: Simple image comparison tool
Upstream URL:
Licenses: GPL2
Submitter: artemklevtsov
Maintainer: None
Last Packager: dracorp
Votes: 5
Popularity: 0.007357
First Submitted: 2012-02-03 23:40
Last Updated: 2015-06-14 13:35

Latest Comments

frankspace commented on 2017-11-20 00:33

I've managed to get something that ALMOST works for the current 2.2.0 version, although it requires the "qwt-qt4" package. I based it on dracorp's beta PKGBUILD.

The problem is, the bundled perceptualdiff requires opencv2, and for the life of me I can't figure out how to get cmake to see the right files (or to make use of the "perceptualdiff-git" package). No matter what I do, compilation fails trying to build perceptualdiff/CMakeFiles/PerceptualDiff.dir/OpenCVImageLoader.o, complaining that opencv2/imgproc/imgproc.hpp doesn't exist. I tried a few ways to point explicitly to that file but if I do that, it eventually tells me that the core.hpp file referred to therein doesn't exist. I simply don't understand enough of cmake to get this to work. (I even temporarily uninstalled "qwt" and "opencv" just to be sure compilation wasn't accidentally picking up something it shouldn't.)

Here is the best PKGBUILD that I've managed, including a bunch of commented-out stuff that I tried and it didn't work.

Someone more competent and knowledgeable than I am is necessary, I'm afraid.

dracorp commented on 2017-07-04 19:57

I've disowned package because I'm going to vacation. I'll back for 3 weeks.

dracorp commented on 2017-06-25 21:04

I don't know well cmake and I don't have idea how to link with opencv2-opt-2.4.13 instead of opencv-3.2.0:
Maybe someone want to adopts?

fuan_k commented on 2017-06-24 16:06

Can't build?

../3rdparty/perceptualdiff/lib/libperceptualdiff.a(OpenCVImageLoader.o): In function `OpenCVImageLoader::MatToRGBAImage(cv::Mat const&)':
OpenCVImageLoader.cpp:(.text+0x2e4): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
OpenCVImageLoader.cpp:(.text+0x2f5): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
../3rdparty/perceptualdiff/lib/libperceptualdiff.a(OpenCVImageLoader.o): In function `OpenCVImageLoader::ReadFromFile(char const*)':
OpenCVImageLoader.cpp:(.text+0x3ee): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
../3rdparty/perceptualdiff/lib/libperceptualdiff.a(OpenCVImageLoader.o): In function `OpenCVImageLoader::WriteToFile(RGBAImage*, char const*)':
OpenCVImageLoader.cpp:(.text+0x930): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
OpenCVImageLoader.cpp:(.text+0x985): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile.apps.Release:172: release/diffimg] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-user/aur-diffimg/src/diffimg-2.0.1/build'
make[1]: *** [Makefile.apps:34: release] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-user/aur-diffimg/src/diffimg-2.0.1/build'
make: *** [Makefile:72: sub-apps-pro-make_default-ordered] Error 2

JohnRobson commented on 2016-07-26 05:24

==> Starting build()...
/usr/lib/qt/mkspecs/features/qt_config.prf:3: Missing ] terminator [found /]
/usr/lib/qt/mkspecs/features/default_pre.prf:13: defined(function, type): unexpected type [var].
/usr/lib/qt/mkspecs/features/default_pre.prf:65: Unknown test function: cache
/usr/lib/qt/mkspecs/features/default_pre.prf:66: Unknown test function: cache
Project ERROR: addExclusiveBuilds() requires at least two arguments
==> ERROR: A failure occurred in build().
==> ERROR: Makepkg was unable to build diffimg.

dracorp commented on 2013-02-23 11:37

Program diffimg (and the man page) has been renamed as DiffImg because it conflicts with graphviz.

dracorp commented on 2012-11-14 07:58

error: failed to commit transaction (conflicting files)
diffimg: /usr/bin/diffimg exists in filesystem
diffimg: /usr/share/man/man1/diffimg.1.gz exists in filesystem

$ LC_ALL=C pacman -Qo `which diffimg`
/usr/bin/diffimg is owned by graphviz 2.28.0-10

Please, corect this. Maybe rename the filename?