Paths in conan_paths.cmake changed in conan 2.1.0, results cmake error when cmake project in QtCreator
-
This problem do not exist in conan 2.0.9,
but in conan 2.1.0, '/' changes to '\'General Messages in QtCreator 12.0.2:
[cmake] CMake Error at D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/conan-dependencies/conan_paths.cmake:2 (list):
[cmake] Syntax error in cmake code at
[cmake]
[cmake] D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/conan-dependencies/conan_paths.cmake:2
[cmake]
[cmake] when parsing string
[cmake]
[cmake] D:\build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug\conan-dependencies\build\conan
[cmake]
[cmake] Invalid character escape '\S'.
[cmake] Call Stack (most recent call first):
[cmake] D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/.qtc/package-manager/auto-setup.cmake:188 (include)
[cmake] D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/.qtc/package-manager/auto-setup.cmake:192 (qtc_auto_setup_conan)
[cmake] CMakeLists.txt:31 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake]
[cmake] CMake process exited with exit code 1.
[cmake]
[cmake] Elapsed time: 00:03.change '\' to '/', then do cmake can fix this problem.
This is a problem of conan or cmake-conan?
Thanks in advance.
-
This problem do not exist in conan 2.0.9,
but in conan 2.1.0, '/' changes to '\'General Messages in QtCreator 12.0.2:
[cmake] CMake Error at D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/conan-dependencies/conan_paths.cmake:2 (list):
[cmake] Syntax error in cmake code at
[cmake]
[cmake] D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/conan-dependencies/conan_paths.cmake:2
[cmake]
[cmake] when parsing string
[cmake]
[cmake] D:\build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug\conan-dependencies\build\conan
[cmake]
[cmake] Invalid character escape '\S'.
[cmake] Call Stack (most recent call first):
[cmake] D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/.qtc/package-manager/auto-setup.cmake:188 (include)
[cmake] D:/build-Repos-Desktop_Qt_6_6_2_MSVC2019_64bit-Debug/.qtc/package-manager/auto-setup.cmake:192 (qtc_auto_setup_conan)
[cmake] CMakeLists.txt:31 (project)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[cmake]
[cmake] CMake process exited with exit code 1.
[cmake]
[cmake] Elapsed time: 00:03.change '\' to '/', then do cmake can fix this problem.
This is a problem of conan or cmake-conan?
Thanks in advance.
This was fixed in Qt Creator 13 by doing the
\
to/
conversion on Qt Creator side. See https://bugreports.qt.io/browse/QTCREATORBUG-30326It's a one liner, but if you use Qt Creator 12 you'll have to patch your Qt Creator installation like in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/538496
-
This was fixed in Qt Creator 13 by doing the
\
to/
conversion on Qt Creator side. See https://bugreports.qt.io/browse/QTCREATORBUG-30326It's a one liner, but if you use Qt Creator 12 you'll have to patch your Qt Creator installation like in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/538496
@cristian-adam Thanks for help!
-
This was fixed in Qt Creator 13 by doing the
\
to/
conversion on Qt Creator side. See https://bugreports.qt.io/browse/QTCREATORBUG-30326It's a one liner, but if you use Qt Creator 12 you'll have to patch your Qt Creator installation like in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/538496
@cristian-adam I am currently on Qt Creator 13.0.0 and I am getting the same issue
-
@cristian-adam I am currently on Qt Creator 13.0.0 and I am getting the same issue
@iexavl The update code is there. Qt Creator 13 shouldn't have this issue.
Make sure that you delete your build directory and try again. If that doesn't work, then debug the
<build-dir>/.qtc/package-manager/auto-setup.cmake
.It's not rocket science 😀
-
@iexavl The update code is there. Qt Creator 13 shouldn't have this issue.
Make sure that you delete your build directory and try again. If that doesn't work, then debug the
<build-dir>/.qtc/package-manager/auto-setup.cmake
.It's not rocket science 😀
@cristian-adam Hail the savior. I hit clean under the build tab in Qt Creator and thought that would be enough, and it possibly would be, but I am connected remotely to another computer with remote desktop on windows, and there was apparently some sort of permission issue when attempting to touch anything in that folder. Never had that happen before and I am just beyond delighted it happened at the exact fateful place where I would waste 3 hours trying to figure out what's going on.
-
@cristian-adam Hail the savior. I hit clean under the build tab in Qt Creator and thought that would be enough, and it possibly would be, but I am connected remotely to another computer with remote desktop on windows, and there was apparently some sort of permission issue when attempting to touch anything in that folder. Never had that happen before and I am just beyond delighted it happened at the exact fateful place where I would waste 3 hours trying to figure out what's going on.
@iexavl right. I guess the
<build-dir>/.qtc/package-manager/auto-setup.cmake
could be recreated when doing a clean, so that an update could be delivered.Would you make a suggestion at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512 ?
-
@iexavl right. I guess the
<build-dir>/.qtc/package-manager/auto-setup.cmake
could be recreated when doing a clean, so that an update could be delivered.Would you make a suggestion at https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512 ?
@cristian-adam Ah. So that was the problem than. I suppose I really should have just taken a look there. I made the suggestion, thanks for the help.