Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator resolving symlinks in paths
Forum Updated to NodeBB v4.3 + New Features

Qt Creator resolving symlinks in paths

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 935 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    paulf
    wrote on last edited by
    #1

    I'm using Qt Creator with an existing build system. In this system we have separate source and build directories. The build directory tree has symlinks to the source directories. In fact there are symlinks everwhere, there's also a symlink added to the source directory back to the build directory. I've set up my Qt Project in the build directory, mainly because our build process generates a lot of source code .

    This mostly works well, but when I click on a build error it generally opens the source file via a symlinked build directory path [unless it is already open via the git path]. I can edit and navigate the file OK. However the git integration no longer works and I have a yellow triangle in the top toolbar saying that the file is outside of any project.

    So I end up with something like

    build_dir/platform/symlink/component/subcomponent/source.c
    

    Is there any way to get Creator to use the canonical name when opening the file?

    jsulmJ 1 Reply Last reply
    0
    • P paulf

      I'm using Qt Creator with an existing build system. In this system we have separate source and build directories. The build directory tree has symlinks to the source directories. In fact there are symlinks everwhere, there's also a symlink added to the source directory back to the build directory. I've set up my Qt Project in the build directory, mainly because our build process generates a lot of source code .

      This mostly works well, but when I click on a build error it generally opens the source file via a symlinked build directory path [unless it is already open via the git path]. I can edit and navigate the file OK. However the git integration no longer works and I have a yellow triangle in the top toolbar saying that the file is outside of any project.

      So I end up with something like

      build_dir/platform/symlink/component/subcomponent/source.c
      

      Is there any way to get Creator to use the canonical name when opening the file?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @paulf said in Qt Creator resolving symlinks in paths:

      I've set up my Qt Project in the build directory,

      Really?!
      Do you mean you put your whole project including source code into build directory?
      Or do I miss something.
      The setup you're describing sounds complicated.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • P Offline
        P Offline
        paulf
        wrote on last edited by
        #3

        I mean that when I initially created the project, the "Import Existing Project" directory was the build directory.

        Yes the build system is very complex. It's CMake based, but the CMake files were written to replace an equally complex Make+Perl based system.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved