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 on Windows and symlinks
QtWS25 Last Chance

Qt Creator on Windows and symlinks

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 3.8k 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.
  • T Offline
    T Offline
    tedmiddleton
    wrote on last edited by
    #1

    Has anyone else noticed that Qt creator doesn't seem to play nicely with windows symlinks (not junctions - symlinks created with the mklink command)? I can't get qt creator to save files (.cpp files) pointed to by symlinks. qmake seems to be a-ok - I can build files well enough. Qt creator can open the source files, but it can't save them - it complains that the disk is full (and it isn't). Notepad++ and other text editors seem to be able to open and save files pointed to by these symlinks, but not Qt creator?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Did you "file a bug report":https://bugreports.qt-project.org/ ?

      I am not aware of ever reading about this before, which could mean that this broke recently or that nobody ever uses symlinks on windows:-)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tedmiddleton
        wrote on last edited by
        #3

        bq. Did you file a bug report [bugreports.qt-project.org] ?

        No - but I'll do that now.

        bq. I am not aware of ever reading about this before, which could mean that this broke recently or that nobody ever uses symlinks on windows:-)

        I think that's exactly the issue - Microsoft has never exposed a gui interface for creating and maintaining symlinks and junctions.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tedmiddleton
          wrote on last edited by
          #4

          I've had a closer look at this, and I think the problem was actually my symlinks, not Qt Creator. I had specified my symlinks as pointing to

          \Users\ted\Documents\source\qml\somefile.qml

          rather than

          c:\Users\ted\Documents\source\qml\somefile.qml

          I can't quite explain why this worked in notepad++ but not qt creator. I think the problem is that if the process's current working directory is on the same drive (c:), it dereferences properly, but if it's on a different drive, it won't. I tried it again and I was able to get notepad++ to fail. I rewrote the symlinks with the drive letter in them, and Qt creator works just fine now.

          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