imgbrd-grabber icon indicating copy to clipboard operation
imgbrd-grabber copied to clipboard

Unknown CMake command "qt_create_translation"

Open 09eragera09 opened this issue 2 years ago • 3 comments

Steps to reproduce

  1. Git clone latest
  2. Do ./build.sh

Expected behavior

Grabber should compile successfully and without issues

Context

Running ./build.sh causes the script to crash, with the error of

CMake Error at gui-qml/languages/CMakeLists.txt:14 (qt_create_translation): Unknown CMake command "qt_create_translation".

System information

  • OS: Ubuntu 20.04.4 LTS
  • Grabber version: Git clone as of 14/07/2022 00:00 IST

Output and Error logs attached CMakeError.log CMakeOutput.log

09eragera09 avatar Jul 13 '22 20:07 09eragera09

Strange, this function should be installed with Qt by the build.sh script here:

apt-get install -qq "qtbase5-dev" "qtscript5-dev" "qtmultimedia5-dev" "qtdeclarative5-dev" "qttools5-dev" "qttools5-dev-tools"

Could it be that the Qt CMake files are in another package? 🤔

Bionus avatar Jul 14 '22 13:07 Bionus

As far as I can tell, they have all been successfully installed and are already the latest version.

image

09eragera09 avatar Jul 14 '22 16:07 09eragera09

I had this issue, solved it with qmake --version which indicated to me that my Anaconda environment actually was overwriting my system installed version.

mstraughan86 avatar Jul 26 '22 04:07 mstraughan86

I had this issue, solved it with qmake --version which indicated to me that my Anaconda environment actually was overwriting my system installed version.

How did you solve it from that command? It give me this but, don't understand what to do next. QMake version 3.1 Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu

RustyHorns avatar Oct 23 '22 16:10 RustyHorns