Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Creator on Windows and symlinks

    Tools
    2
    4
    3485
    Loading More Posts
    • 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
      tedmiddleton last edited by

      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 Reply Quote 0
      • T
        tobias.hunger last edited by

        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 Reply Quote 0
        • T
          tedmiddleton last edited by

          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 Reply Quote 0
          • T
            tedmiddleton last edited by

            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 Reply Quote 0
            • First post
              Last post