Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18714

Qt Creator env PATH variable always forces /usr/bin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 4.5.0-rc1
    • 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

      Looks like there is similar? old closed bug

      QTCREATORBUG-7038

      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

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hunger Tobias Hunger
            oxoocoffee Robert J. Gebis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes