QMake build script tools to manage cross platform project building and dependencies in development projects (also manages nsis installer, mac bundling...). Aims at providing Maven like dependencies management to C/C++ builds.
2
stars
4
forks
source link
[Feature Request] Improve visibility of error relative to missing pkg-config tool #14
from a fresh environment, install remaken (brew install remaken)
run init and profile commands
be sure to not have pkg-config installed
run qmake on a project with remaken deps that require the use of pkg-config (spdglog, xpcf,...).
The problem is that the command seems to have run without error.
When make is invoked to compile the project, the library's header files (e.g. xpcf) are not found, and this library is nowhere to be found on the compiler command line.
When looking more closely at the qmake command logs, we can see indications that something went wrong:
pkg-config is not found:
Project MESSAGE: ---- Processing spdlog 0.14.0 package ----
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
Although, the sh error is explanatory, time can be lost looking for what actually happened.
SUGGESTED SOLUTION
Handle the sh error,stop execution of qmake command and give an error message and instructions on how to resolve the issue (i.e. install pkg-config).
(Add a kind of brew doctor command to remaken to make some checks about the environement. But maybe here it's not relevant, becausepkg-config is maybe not needed if the project only uses conan dependencies, for example, right?)
PROBLEM
brew install remaken
)init
andprofile
commandspkg-config
installedqmake
on a project with remaken deps that require the use of pkg-config (spdglog, xpcf,...).The problem is that the command seems to have run without error.
When
make
is invoked to compile the project, the library's header files (e.g. xpcf) are not found, and this library is nowhere to be found on the compiler command line.When looking more closely at the qmake command logs, we can see indications that something went wrong:
pkg-config
is not found:Although, the
sh
error is explanatory, time can be lost looking for what actually happened.SUGGESTED SOLUTION
sh
error,stop execution of qmake command and give an error message and instructions on how to resolve the issue (i.e. installpkg-config
).brew doctor
command to remaken to make some checks about the environement. But maybe here it's not relevant, becausepkg-config
is maybe not needed if the project only usesconan
dependencies, for example, right?)CONFIGURATION OS: Ubuntu-22.04 remaken: 1.9.4 builddefs-qmake: 4.9.5