Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
Qt Creator 4.3.0
-
Running Ubuntu 14.04.3 with QtCreator 4.3.0. I have a Linaro AARCH64 cross compiler toolchain and want to use QtCreator to build and deploy my application. On the host machine, my home directory is a symlink - i.e. the real folder is at /export/Home/overlord and there is a /home/overlord symlink that points to it.Running Ubuntu 14.04.3 with QtCreator 4.3.0. I have a Linaro AARCH64 cross compiler toolchain and want to use QtCreator to build and deploy my application. On the host machine, my home directory is a symlink - i.e. the real folder is at /export/Home/overlord and there is a /home/overlord symlink that points to it.
Description
If I create a new CMake project using the new project wizard and use a symlink in my project directory then the the resulting CMake files have a mix of symlinks and canonical paths and the Remote Directory in the Run Settings is not calculated correctly. Instead of using only the path given in the QtCreatorDeployment.txt file it has that path with the relative path between the symlink and canonical path appended. Since the Remote Directory is not an editable field it becomes impossible to deploy the executable to the target.
This behavior also occurs if instead of creating a new cmake project I open an existing CMakeLists.txt that has not been used in QtCreator before.
The very non-obvious work around is to change the build directory in Build Settings to use the canonical path instead of the symlink path. The only way we found the issue was examining the QtCreator source code-this line of code is where the issue is apparent:
It appears that the relativeFilePath method on that line does not calculate the relative path correctly if the build dir uses a symlink and executable path does not, which is what appears to have happened in this case.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-15758 Subdirs projects within a path containing a symbolic link produce warning.
- Closed
-
QTCREATORBUG-15897 internal parsing of pro/pri files seems to be errorprone with symlinks in the project path
- Closed