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

How to provide missing build dependencies #8

Open
PetrGlad opened this issue May 20, 2018 · 0 comments
Open

How to provide missing build dependencies #8

PetrGlad opened this issue May 20, 2018 · 0 comments

Comments

@PetrGlad
Copy link

// I'd prefer to edit a Wiki page for that but that does not seem to work. Maybe extending README would be an option. So I am documenting it here for now.

During build with QT enabled cargo may complain about Qt modules missing, e.g.:

--- stderr
thread 'main' panicked at 'QT5 was not found using pkg-config: `"pkg-config" "--libs" "--cflags" "Qt5Core Qt5Gui Qt5Qml Qt5Quick Qt5Svg"` did not exit successfully: exit code: 1
--- stderr
Package Qt5Svg was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Svg.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Svg' found
', /home/petr/.cargo/git/checkouts/qml-rust-717654f352823f1d/3316f54/build.rs:119:23
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Here, in Debian-like Linuxes you should install libqt5svg5-dev package.

Generally if you see "Perhaps you should add the directory containing Qt5Svg.pc " you can look up the package containing that file with apt-file like

apt-file search Qt5Svg.pc

And install a package that provides the file. Normally there's only choice and it is one of Qt5's -dev packages.
Note that apt-file is not installed in Ubuntu by default. If you do not have it yet then sudo apt install apt-file; sudo apt update.

This answer on AskUbuntu provided hints on apt-file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant