# AUTORCC

**URL:** https://discourse.cmake.org/t/autorcc/2179
**Category:** Usage
**Created:** [November 16, 2020, 12:28pm UTC](https://discourse.cmake.org/t/autorcc/2179 "2020-11-16T12:28:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Smirnov\_Kirill\_Contr](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@Smirnov\_Kirill\_Contr](https://discourse.cmake.org/u/Smirnov_Kirill_Contr)
#### Post date: [November 16, 2020, 12:28pm UTC](https://discourse.cmake.org/t/autorcc/2179/1 "2020-11-16T12:28:04Z")

</div>

Hello

There is a project on Qt5.6.2 / CMake

![image002.png](https://discourse.cmake.org/uploads/default/original/1X/184d3e324dd2ca5575ada8816bcb904240e42262.png)

With CMake 3.9.2 on windows and CMake 3.10.2 on Linux project builds with no problem

Automatic MOC, UIC and RCC for target SomeLibrary

When CMake was updated to 3.18.4 (on Windows) build started failing

Automatic MOC and UIC for target SomeLibrary

Apparently RCC never was called for SomeLibrary with new CMake

Why could that happen?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 16, 2020, 3:34pm UTC](https://discourse.cmake.org/t/autorcc/2179/2 "2020-11-16T15:34:40Z")

</div>

I believe the autogen mechanism only reports for tools that it finds are necessary for a build. So without a `.qrc` file in `SomeLibrary`'s sources, it doesn’t mention that it is doing so. Is there a `.qrc` file in the source list for it?

---

<div class="post-metadata">

### Author: ![Smirnov\_Kirill\_Contr](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@Smirnov\_Kirill\_Contr](https://discourse.cmake.org/u/Smirnov_Kirill_Contr)
#### Post date: [November 17, 2020, 6:25am UTC](https://discourse.cmake.org/t/autorcc/2179/3 "2020-11-17T06:25:22Z")

</div>

Yes, surely qrc files are passed as a sources and they are processed with autorcc on CMake 3.9.2

But when I try same project with CMake 3.18.4 autorcc doesn’t work for some reason

I wonder could older Qt version (5.6.2) be the issue here?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 17, 2020, 1:11pm UTC](https://discourse.cmake.org/t/autorcc/2179/4 "2020-11-17T13:11:02Z")

</div>

That sounds like a regression to me. Please file an issue with a test case that reproduces the issue (a link to the full project would be sufficient if it is available, but stripping it down to the bare minimum would help a lot in focusing in on the problem.

Heads up @brad.king

---

<div class="post-metadata">

### Author: ![Smirnov\_Kirill\_Contr](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/8dc957/32.png) [@Smirnov\_Kirill\_Contr](https://discourse.cmake.org/u/Smirnov_Kirill_Contr)
#### Post date: [November 18, 2020, 2:33pm UTC](https://discourse.cmake.org/t/autorcc/2179/5 "2020-11-18T14:33:05Z")

</div>

Finally I was able to isolate(not solve) the problem: it happens when We are trying to use specific AUTOGEN\_BUILD\_DIR

In the attachment there is simple recreation of a problem

Only update CMakeLists.txt with proper PROJECTS\_ROOT variable

PS. Qt version has nothing to do with the problem

PPS. QtCreator(4.13+) although has some issues with CMake versions older then 3.14 (more info here: [https://www.qt.io/blog/qt-creator-4.13-released](https://www.qt.io/blog/qt-creator-4.13-released))

![image001.jpg](https://discourse.cmake.org/uploads/default/original/1X/02ee2a37f8858b76edaff1adb236f719bd9cd709.jpeg)

[autorcctest.7z](https://discourse.cmake.org/uploads/short-url/aQUXxnhZe6xhfLaWfVLlfuC4uDr.7z) (3.6 KB)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 18, 2020, 4:26pm UTC](https://discourse.cmake.org/t/autorcc/2179/6 "2020-11-18T16:26:06Z")

</div>

Thanks. I’ve filed it as [https://gitlab.kitware.com/cmake/cmake/-/issues/21455](https://gitlab.kitware.com/cmake/cmake/-/issues/21455)
