Package Details: translatelocally-git r512.1d0d382-1

Git Clone URL: https://aur.archlinux.org/translatelocally-git.git (read-only, click to copy)
Package Base: translatelocally-git
Description: Fast and secure translation on your local machine, powered by marian and Bergamot.
Upstream URL: https://translatelocally.com
Licenses: MIT
Submitter: Dheart
Maintainer: Dheart
Last Packager: Dheart
Votes: 2
Popularity: 0.000360
First Submitted: 2021-05-03 15:36 (UTC)
Last Updated: 2025-08-11 20:42 (UTC)

Latest Comments

1 2 3 Next › Last »

yochananmarqos commented on 2025-08-23 15:44 (UTC) (edited on 2025-08-23 15:44 (UTC) by yochananmarqos)

@Dheart: It's using Qt5 as it finds that first. If you add the QT_VERSION_MAJOR='6' Cmake flag, then it won't matter if users have Qt5 programs installed.

Dheart commented on 2025-08-23 07:51 (UTC) (edited on 2025-08-23 07:52 (UTC) by Dheart)

Do you have qt5-tools installed? Do you have any qt5 dependencies? I have seen this before, but I am not sure what causes it. Basically cmake tries to build against qt5 and not qt6, as TranslateLocally supports both. I am not sure how to force cmake to use one or the other though.

dheart@adjudicator /usr/lib/cmake % pacman -Qo ./Qt5LinguistTools/Qt5LinguistToolsConfig.cmake
/usr/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake is owned by qt5-tools 5.15.17+kde+r3-2
dheart@adjudicator /usr/lib/cmake % pacman -Qo ./Qt6LinguistTools/Qt6LinguistToolsConfig.cmake
/usr/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake is owned by qt6-tools 6.9.1-2

I am guessing you have some incomplete qt5-tools installation?

Mr.Smith1974 commented on 2025-08-23 06:32 (UTC)

==> Starting pkgver()...
==> Sources are ready.
==> Making package: translatelocally-git r512.1d0d382-1 (Сб 23 авг 2025 09:29:12)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
-- The CXX compiler identification is GNU 14.3.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Building translateLocally-v0.0.2+1d0d382
-- Found LibArchive: /usr/lib/libarchive.so (found version "3.8.1")
Linking to libarchive /usr/lib/libarchive.so
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /usr/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5LinguistTools"
  with any of the following names:

    Qt5LinguistToolsConfig.cmake
    qt5linguisttools-config.cmake

  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
  set "Qt5LinguistTools_DIR" to a directory containing one of the above
  files.  If "Qt5LinguistTools" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:98 (find_package)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().

Dheart commented on 2025-08-11 20:43 (UTC)

Many thanks @yochananmarqos, i've updated the package so it now builds.

Apologies for not doing it earlier, i would also need to update the submodules so that they build with modern compiler. Unfortunately the upstream modules have gone abandonware and i don't have the time to update them often.

yochananmarqos commented on 2025-08-11 18:17 (UTC)

@Mr.Smith1974: It is currently failing to build, but for different reasons.

In your case, it's detecting Qt5 first instead of Qt6 and is erroneously looking for qt5-tools. Build in a clean chroot to avoid that.

The first issue is due to changes with Cmake >=4.0.0:

CMake Error at 3rd_party/bergamot-translator/3rd_party/marian-dev/src/3rd_party/sentencepiece/CMakeLists.txt:15 (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!

It still fails using the aforementioned Cmake flag due to changes in GCC 15.1.1.

@Dheart: This will build using gcc14:

build() {
  cmake -B build -S translateLocally \
    -DCMAKE_C_COMPILER='gcc-14' \
    -DCMAKE_CXX_COMPILER='g++-14' \
    -DCMAKE_POLICY_VERSION_MINIMUM='3.5' \
    -DCMAKE_BUILD_TYPE='RelWithDebInfo' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -Wno-dev
  cmake --build build
}

Mr.Smith1974 commented on 2025-08-11 17:01 (UTC)

==> Starting build()...
-- The CXX compiler identification is GNU 15.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Building translateLocally-v0.0.2+1d0d382
-- Found LibArchive: /usr/lib/libarchive.so (found version "3.8.1")
Linking to libarchive /usr/lib/libarchive.so
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /usr/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5LinguistTools"
  with any of the following names:

    Qt5LinguistToolsConfig.cmake
    qt5linguisttools-config.cmake

  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
  set "Qt5LinguistTools_DIR" to a directory containing one of the above
  files.  If "Qt5LinguistTools" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:98 (find_package)


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

yochananmarqos commented on 2024-05-12 14:09 (UTC)

@Dheart: Thanks. Please remove the groups array, that's only for my personal use. See Preserve modified packages.

Dheart commented on 2024-05-12 09:34 (UTC)

@yochananmarqos I finally updated the PKGBUILD, thank you for the fixes!

yochananmarqos commented on 2023-12-09 20:04 (UTC) (edited on 2023-12-09 20:05 (UTC) by yochananmarqos)

@nmset: Use my PKGBUILD I linked below for now.

nmset commented on 2023-12-09 20:00 (UTC)

A quick note.

Build fails with clang version 16.0.6

and succeeds with gcc (GCC) 13.2.1 20230801.

With clang, build error occurs on line 221 of 3rd_party/bergamot-translator/3rd_party/marian-dev/src/3rd_party/sentencepiece/src/trainer_interface.cc

with message Integer value -1 is outside the valid range of values [0, 255] for this enumeration type.