Bug 400480 - cargo --verbose install qrep fails on Kubuntu 20.04
Summary: cargo --verbose install qrep fails on Kubuntu 20.04
Status: REPORTED
Alias: None
Product: rust-qt-binding-generator
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-30 12:37 UTC by Gregor Mi
Modified: 2022-12-17 09:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Mi 2018-10-30 12:37:11 UTC
Compilation fails with this output:

   Compiling qrep v0.1.0
     Running `rustc --crate-name build_script_build build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=2cbc50f7b723e61a -C extra-filename=-2cbc50f7b723e61a --out-dir /tmp/cargo-installU74dNH/release/build/qrep-2cbc50f7b723e61a -L dependency=/tmp/cargo-installU74dNH/release/deps --extern rust_qt_binding_generator=/tmp/cargo-installU74dNH/release/deps/librust_qt_binding_generator-557c8a974e43d155.rlib --cap-lints allow`
     Running `/tmp/cargo-installU74dNH/release/build/qrep-2cbc50f7b723e61a/build-script-build`
error: failed to compile `qrep v0.1.0`, intermediate artifacts can be found at `/tmp/cargo-installU74dNH`

Caused by:
  failed to run custom build command for `qrep v0.1.0`
process didn't exit successfully: `/tmp/cargo-installU74dNH/release/build/qrep-2cbc50f7b723e61a/build-script-build` (exit code: 255)
--- stderr
running: "qmake" "-query" "QT_VERSION"
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
qmake exited with status code: 1
Comment 1 Jos van den Oever 2018-10-30 20:07:27 UTC
Can you run

qmake -query QT_VERSION

and report the output?

Does

 /usr/lib/x86_64-linux-gnu/qt4/bin/qmake

exist?

It seems that you might have qmake from Qt4 installed. 

Which version of Qt do you have installed?
Comment 2 Gregor Mi 2018-10-30 20:26:07 UTC
/usr/lib/x86_64-linux-gnu/qt4/bin/qmake does not exist.

I have Qt5 installed.

I run $ qmake -query QT_VERSION
as soon as I am on that machine again.
Comment 3 Justin Zobel 2022-12-02 01:22:47 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-17 05:14:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Gregor Mi 2022-12-17 09:21:01 UTC
I am not sure if this is an error of rust-qt-binding-generator but maybe from the qgrep package.

This is my output on Kubuntu 20.04

$ cargo --verbose install qrep
    Updating crates.io index
  Installing qrep v0.1.0
error: failed to compile `qrep v0.1.0`, intermediate artifacts can be found at `/tmp/cargo-installx3wyxV`

Caused by:
  failed to select a version for the requirement `spmc = "^0.2.2"`
  candidate versions found which didn't match: 0.3.0
  location searched: crates.io index
  required by package `qrep v0.1.0`


$ qmake -query QT_VERSION
qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory