Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qmake absence: configure kiwix-desktop : ERROR (None: command not found) #504

Open
asashnov opened this issue Nov 20, 2021 · 3 comments
Open

Comments

@asashnov
Copy link
Contributor

asashnov commented Nov 20, 2021

kiwix-build da011c1

Steps to reproduce:

On clean Fedora 34 trying to build Kiwix-desktop with the following commands:

sudo dnf install virtualenv ninja-build meson patch
wget https://github.com/kiwix/kiwix-build/archive/refs/heads/master.zip
unzip master.zip
cd kiwix-build-master
virtualenv -p python3 ./
source bin/activate
pip install .
hash -r
export SKIP_BIG_MEMORY_TEST=1
kiwix-build --target-platform native_dyn kiwix-desktop

Actual result:

build libkiwix (native_dyn):
  configure libkiwix : OK (4.6s)
  compile libkiwix : ..OK (88.3s)
  test libkiwix : OK (7.4s)
  install libkiwix : OK (0.3s)
build kiwix-desktop (native_dyn):
  configure kiwix-desktop : ERROR
run command 'None PREFIX=/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL  /home/test/kiwix-build-master/SOURCE/kiwix-desktop '
current directory is '/home/test/kiwix-build-master/BUILD_native_dyn/kiwix-desktop'
env is :
  SHELL : '/bin/bash'
  SESSION_MANAGER : 'local/unix:@/tmp/.ICE-unix/1538,unix/unix:/tmp/.ICE-unix/1538'
  COLORTERM : 'truecolor'
  HISTCONTROL : 'ignoredups'
  XDG_MENU_PREFIX : 'gnome-'
  HISTSIZE : '1000'
...
  QT_SELECT : '5-64'
  PKG_CONFIG_PATH : ':/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib64/pkgconfig'
  LD_LIBRARY_PATH : ':/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib:/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib64'
  QMAKE_CXXFLAGS : '-I/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/include '
  CPPFLAGS : '-I/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/include '
  QMAKE_LFLAGS : '-L/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib -L/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib64 '
  LDFLAGS : '-L/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib -L/home/test/kiwix-build-master/BUILD_native_dyn/INSTALL/lib64 '
/bin/sh: line 1: None: command not found


Stopping build due to errors

Additional details

(kiwix-build-master) [test@fedora kiwix-build-master]$ python --version
Python 3.9.7
(kiwix-build-master) [test@fedora kiwix-build-master]$ whereis qmake
qmake:
(kiwix-build-master) [test@fedora kiwix-build-master]$ which qmake
/usr/bin/which: no qmake in (/home/test/kiwix-build-master/bin:/home/test/.local/bin:/home/test/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)

Seems there is no run time dependency to qmake, it could be installed earlier:

(kiwix-build-master) [test@fedora kiwix-build-master]$ kiwix-build --target-platform native_dyn kiwix-desktop
WARNING: qmake command not found.
[INSTALL PACKAGES]
 - automake : NEEDED
 - libtool : NEEDED
 - cmake : NEEDED
 - git : SKIP
 - subversion : NEEDED
 - ccache : NEEDED
 - pkgconf-pkg-config : SKIP
 - gcc-c++ : NEEDED
 - gettext-devel : NEEDED
 - qt5-qtbase-devel : NEEDED
 - qt5-qtsvg : NEEDED
 - zlib-devel : NEEDED
 - qt5-qtwebengine-devel : NEEDED
 - xz-devel : NEEDED
 - libuuid-devel : NEEDED
 - libmicrohttpd-devel : NEEDED
 - aria2 : NEEDED
sudo dnf install automake libtool cmake subversion ccache gcc-c++ gettext-devel qt5-qtbase-devel qt5-qtsvg zlib-devel qt5-qtwebengine-devel xz-devel libuuid-devel libmicrohttpd-devel aria2
Last metadata expiration check: 0:03:08 ago on Sat 20 Nov 2021 08:06:19 AM EST.
Dependencies resolved.

Proposed solution

At least, in the output above make this WARNING => FATAL (stop the process):

WARNING: qmake command not found.

Or just just install qmake-qt5 with the bunch of other packages installed after this "qmake command not found" warning (in this case, we don't need this warning at all).

PS. on Fedora 34 qmake is called 'qmake-qt5' which can be detected by kiwixbuild/buildenv.py already.

@kelson42
Copy link
Contributor

@ashu-sharma07 How do you plan to fix it?

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@stale stale bot removed the stale label Jun 26, 2022
@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants