Package Details: k2pdfopt 2.55-4

Git Clone URL: https://aur.archlinux.org/k2pdfopt.git (read-only, click to copy)
Package Base: k2pdfopt
Description: Tool for optimizing PDF/DJVU files for mobile e-readers and smartphones.
Upstream URL: http://www.willus.com/k2pdfopt
Keywords: convert djvu ebook kindle ocr pdf reflow
Licenses: GPL3
Submitter: FacuTuesca
Maintainer: gilcu3
Last Packager: gilcu3
Votes: 51
Popularity: 0.24
First Submitted: 2014-03-14 21:46 (UTC)
Last Updated: 2025-08-07 13:28 (UTC)

Dependencies (10)

Required by (0)

Sources (16)

Pinned Comments

gilcu3 commented on 2024-05-19 09:29 (UTC) (edited on 2024-05-28 15:03 (UTC) by gilcu3)

I just updated to package to the best of my abilities, still it is very buggy and only some functionality works. In my tests this is also the case with the debian package. If anyone is able to fix it please let me know. For the moment the only solution to get full functionality is to download the pre-built binary from willus.

PS: kudos to the debian developer for fixing the build with mupdf, currently it works on my end. Only tesseract support remains disabled.

Latest Comments

1 2 3 4 5 Next › Last »

shawny commented on 2025-08-06 23:46 (UTC)

Hi. I'm seeing the following build errors as of today;

==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 15.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: k2pdfopt-exit status 4

gilcu3 commented on 2024-10-29 09:59 (UTC)

@frankspace you are right, I was not looking at the correct version of the package. I think mujs should actually be a dependency, I will fix ASAP

frankspace commented on 2024-10-29 09:47 (UTC)

@gilcu3 I'm running Artix, which definitely has some weird quirks, but I'm pretty sure it's not an Artix thing here because that flag is actually found in the "mupdf.pc" file in the "Libs.private" line.

gilcu3 commented on 2024-10-29 08:58 (UTC)

@frankspace I tried finding where does that flag is set in the source, and could not find any reference. Can you provide more details on where does it appear and what is your environment?

frankspace commented on 2024-10-27 14:20 (UTC)

Compilation in a clean chroot fails for me unless mujs is installed, I'd get the following:

[100%] Linking C executable k2pdfopt
/usr/bin/ld: cannot find -lmujs: No such file or directory
collect2: error: ld returned 1 exit status

The compiled binary doesn't seem to link to anything in the mujs package, so I presume it's a makedep rather than a dependency. Still, I couldn't compile without it.

fredh commented on 2024-07-11 07:29 (UTC)

@gilcu3 apologies for the noise then, I'm using manjaro and somehow this never happened.

gilcu3 commented on 2024-07-08 14:27 (UTC)

@fredh As far I know patch is part of base-devel, therefore it does not need to be declared as a make dependency explicitly. If I am wrong please feel free to correct me.

fredh commented on 2024-07-08 10:16 (UTC)

I've had to install patch for the build to work, should it be added to the make dependencies?

gilcu3 commented on 2024-05-19 09:29 (UTC) (edited on 2024-05-28 15:03 (UTC) by gilcu3)

I just updated to package to the best of my abilities, still it is very buggy and only some functionality works. In my tests this is also the case with the debian package. If anyone is able to fix it please let me know. For the moment the only solution to get full functionality is to download the pre-built binary from willus.

PS: kudos to the debian developer for fixing the build with mupdf, currently it works on my end. Only tesseract support remains disabled.

tolik commented on 2022-11-12 04:48 (UTC)

I have the same problem as Dingisoul.