Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error: expected unqualified-id before '<' token [build] 2 | <RCC> [build] | ^

error: expected unqualified-id before '<' token [build] 2 | <RCC> [build] | ^

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 174 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.
  • E Offline
    E Offline
    Evan3.14
    wrote on last edited by
    #1

    When I compile a qt-cpp project with cmake, i add resources to the executable file with resource.qrc, but cmake raise the error:"error: expected unqualified-id before '<' token
    [build] 2 | <RCC>
    [build] | ^"

    the content of my resource.qrc is below:

    <RCC>

    <qresource prefix="images">
    <file>images/comics_2.png</file>
    </qresource>
    <qresource prefix="icons">
    <file>icons/download.ico</file>
    <file>icons/start.png</file>
    <file>icons/start.ico</file>
    <file>icons/site_logo.png.icon.ico</file>
    </qresource>

    </RCC>

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Please show your CMakeLists.txt. Did you enable CMAKE_AUTORCC?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved