Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.3.1, Qt Creator 4.4.1
-
None
-
Distributor ID: LinuxMint
Description: Linux Mint 18.1 Serena
Release: 18.1
Codename: serena
Description
Looks like there is similar? old closed bug
I have two versions or cmake installed. One in /usr/bin the other newer version in /usr/local/bin.
My bash env PATH has /usr/local/bin before /usr/bin. Building cmake project from teminal works fine
Now when I open Qt Creator and open cmake CMakeList.txt file and check environment its variable PATH I see /usr/bin is always inserted before /usr/local/bin
Now in my cmake project file I have find_package looking for protobuf explicitly looking for 3.3.4 which I build my self and it is installed in /usr/local
There is also older version of protobuf installed in /usr
Looks like find package finds proper /usr/local/lib version of protobuf but protoc found is in /usr/bin which is older (2.6) and not in /usr/local/bin (3.3.4)
when removing CMakeList.txt.user and reopening it always puts /usr/bin path first. I can change it manually in Qt Creator PATHS. But if another team member will open it he might have problem with out explicitly adjusting Qt Creator PATH
in toolkints -> cmake I have default cmake pointing to /usr/local/bin/cmake. But now cmake find packages are finding lib in /use/local/lib and binary in /usr/bin which is a problem
Attachments
Issue Links
- relates to
-
QTCREATORBUG-19354 Run configuration misses PATH to Qt
- Closed
For Gerrit Dashboard: QTCREATORBUG-18714 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
208632,7 | ProjectExplorer: Do not prepend compiler path to PATH everywhere! | 4.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
208633,3 | QtSupport: Do not prepend QT_HOST_BINS to PATH | 4.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |