Package Details: photoqt 4.6-2

Git Clone URL: https://aur.archlinux.org/photoqt.git (read-only, click to copy)
Package Base: photoqt
Description: Fast and highly configurable image viewer with a simple and nice interface.
Upstream URL: http://photoqt.org/
Licenses: GPL2
Conflicts: photoqt-bin
Submitter: archtux
Maintainer: luspi
Last Packager: luspi
Votes: 106
Popularity: 0.27
First Submitted: 2013-08-11 21:50 (UTC)
Last Updated: 2024-09-02 23:54 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 13 Next › Last »

luspi commented on 2022-12-26 16:19 (UTC) (edited on 2022-12-26 16:19 (UTC) by luspi)

This issue appeared before, and it's a little puzzling. The only thing I was able to find is that it might be due to some portability issue from an older imagemagick version. What is the output of pacman -Qs magick on your system?

As a temporary workaround, you can switch from ImageMagick to GraphicsMagick by doing the following to changes in your PKGBUILD:

  • line 11: change imagemagick to graphicsmagick
  • line 28: change -DIMAGEMAGICK=ON -DGRAPHICSMAGICK=OFF to -DIMAGEMAGICK=OFF -DGRAPHICSMAGICK=ON

Agafron commented on 2022-12-24 18:31 (UTC)

@brunomiguel https://aur.archlinux.org/packages/photoqt?O=0#comment-880907

brunomiguel commented on 2022-12-22 22:25 (UTC)

I'm getting the same error as @Agafron, even with the second update for the PKGBUILD

Agafron commented on 2022-12-22 17:39 (UTC) (edited on 2022-12-22 18:41 (UTC) by Agafron)

[ 89%] Linking CXX executable photoqt
/usr/sbin/ld: CMakeFiles/photoqt.dir/cplusplus/imageprovider/loader/loadimage_magick.cpp.o: in function PQLoadImageMagick::load(QString, QSize, QSize&, bool)':</code> <br> <code>loadimage_magick.cpp:(.text+0x1b47): undefined reference toMagick::Image::rows() const'
/usr/sbin/ld: loadimage_magick.cpp:(.text+0x1b55): undefined reference to Magick::Image::columns() const'</code> <br> <code>/usr/sbin/ld: loadimage_magick.cpp:(.text+0x1c08): undefined reference toMagick::Geometry::Geometry(unsigned long, unsigned long, long, long)'
/usr/sbin/ld: loadimage_magick.cpp:(.text+0x315f): undefined reference to Magick::Geometry::Geometry(unsigned long, unsigned long, long, long)'</code> <br> <code>/usr/sbin/ld: CMakeFiles/photoqt.dir/cplusplus/imageprovider/loader/loadimage_magick.cpp.o: in functionPQLoadImageMagick::loadSize(QString)':
loadimage_magick.cpp:(.text+0x37df): undefined reference to Magick::Geometry::height() const'</code> <br> <code>/usr/sbin/ld: loadimage_magick.cpp:(.text+0x37f5): undefined reference toMagick::Geometry::width() const'
collect2: error: ld returned 1 exit status
make[2]: [CMakeFiles/photoqt.dir/build.make:1581: photoqt] Error 1
make[1]:
[CMakeFiles/Makefile2:113: CMakeFiles/photoqt.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().

system7 commented on 2022-12-22 09:52 (UTC)

It works, thank you for your work! Happy holidays!

luspi commented on 2022-12-22 09:19 (UTC)

@system7 and @Billli11

I updated the package with a patch fixing the build with the latest libraw. The same fix has been applied upstream for the next release.

system7 commented on 2022-12-21 15:46 (UTC)

Thank u!

Billli11 commented on 2022-12-20 23:06 (UTC) (edited on 2022-12-20 23:08 (UTC) by Billli11)

@system7

Seem like libraw 0.21.0-2 cause this.

You have to remove raw image support or downgrade libraw to 0.20.2-3 (0.21.0-1 not tested) to fix this until either libraw or photoqt fixed.

Add -DRAW=OFF to line 26 cmake command to disable raw support.

Here the patch

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,7 @@ prepare() {
   # To build PhotoQt with less features, add -Dxxxx=OFF to
   # the next line (where xxxx is the respective CMake option).
   # to use GraphicsMagick instead of ImageMagick add: -DIMAGEMAGICK=OFF -DGRAPHICSMAGICK=ON
-  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFREEIMAGE=OFF -DDEVIL=OFF -DPOPPLER=OFF -DIMAGEMAGICK=ON -DGRAPHICSMAGICK=OFF -DLIBVIPS=OFF -DVIDEO_MPV=OFF
+  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFREEIMAGE=OFF -DDEVIL=OFF -DPOPPLER=OFF -DIMAGEMAGICK=ON -DGRAPHICSMAGICK=OFF -DLIBVIPS=OFF -DVIDEO_MPV=OFF -DRAW=OFF

 }

system7 commented on 2022-12-20 20:43 (UTC)

Hello,

I have an error. I do not know how to solve it.

[ 58%] Building CXX object CMakeFiles/photoqt.dir/cplusplus/imageprovider/loader/loadimage_poppler.cpp.o
[ 59%] Building CXX object CMakeFiles/photoqt.dir/cplusplus/imageprovider/loader/loadimage_raw.cpp.o
/home/system7/.cache/yay/photoqt/src/photoqt-2.9.1/cplusplus/imageprovider/loader/loadimage_raw.cpp: In member function ‘QImage PQLoadImageRAW::load(QString, QSize, QSize&, bool)’:
/home/system7/.cache/yay/photoqt/src/photoqt-2.9.1/cplusplus/imageprovider/loader/loadimage_raw.cpp:60:24: error: ‘struct libraw_output_params_t’ has no member named ‘use_rawspeed’
   60 |     raw.imgdata.params.use_rawspeed = 1;
      |                        ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/photoqt.dir/build.make:1113: CMakeFiles/photoqt.dir/cplusplus/imageprovider/loader/loadimage_raw.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/photoqt.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: photoqt

Agafron commented on 2022-09-08 18:26 (UTC) (edited on 2022-09-08 18:41 (UTC) by Agafron)

@luspi
and switch the ON and OFF in the cmake call
its help! thanks!