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. add resources command not work
Forum Updated to NodeBB v4.3 + New Features

add resources command not work

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 334 Views 1 Watching
  • 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.
  • Y Offline
    Y Offline
    YuriyRusinov
    wrote on 27 Oct 2024, 14:12 last edited by
    #1

    Hello colleagues!

    I try to compile project on Ubuntu linux 18, I have installed everywhere for Qt, but if I launch cmake then I have got error

    -- Using Qt  ()
    list of plugins suffix;cfapi;xattr
    discovery suffix
    <project_dir>/src/libsync/vfs/suffix
    <project_dir>src/libsync/vfs/suffix suffix
    -- Added vfsPlugin without tests: suffix
    discovery cfapi
    <project_dir>/src/libsync/vfs/cfapi
    <project_dir>/src/libsync/vfs/cfapi cfapi
    -- Added vfsPlugin without tests: cfapi
    discovery xattr
    <project_dir>/src/libsync/vfs/xattr
    <project_dir>/src/libsync/vfs/xattr xattr
    -- Added vfsPlugin without tests: xattr
    CMake Error at src/gui/CMakeLists.txt:60 (qt_add_resources):
      Unknown CMake command "qt_add_resources".
    

    CMakeLists.txt on 60 line is

    if (NOT DEFINED PACKAGE)
        set(PACKAGE "${LINUX_PACKAGE_SHORTNAME}-client")
    endif()
    
    set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
    
    include(ECMCoverageOption)
    
    if(NOT CRASHREPORTER_EXECUTABLE)
        set(CRASHREPORTER_EXECUTABLE "${APPLICATION_EXECUTABLE}_crash_reporter")
    endif()
    

    Which way I have to fix this error?

    P 1 Reply Last reply 27 Oct 2024, 14:31
    0
    • Y YuriyRusinov
      27 Oct 2024, 14:12

      Hello colleagues!

      I try to compile project on Ubuntu linux 18, I have installed everywhere for Qt, but if I launch cmake then I have got error

      -- Using Qt  ()
      list of plugins suffix;cfapi;xattr
      discovery suffix
      <project_dir>/src/libsync/vfs/suffix
      <project_dir>src/libsync/vfs/suffix suffix
      -- Added vfsPlugin without tests: suffix
      discovery cfapi
      <project_dir>/src/libsync/vfs/cfapi
      <project_dir>/src/libsync/vfs/cfapi cfapi
      -- Added vfsPlugin without tests: cfapi
      discovery xattr
      <project_dir>/src/libsync/vfs/xattr
      <project_dir>/src/libsync/vfs/xattr xattr
      -- Added vfsPlugin without tests: xattr
      CMake Error at src/gui/CMakeLists.txt:60 (qt_add_resources):
        Unknown CMake command "qt_add_resources".
      

      CMakeLists.txt on 60 line is

      if (NOT DEFINED PACKAGE)
          set(PACKAGE "${LINUX_PACKAGE_SHORTNAME}-client")
      endif()
      
      set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
      
      include(ECMCoverageOption)
      
      if(NOT CRASHREPORTER_EXECUTABLE)
          set(CRASHREPORTER_EXECUTABLE "${APPLICATION_EXECUTABLE}_crash_reporter")
      endif()
      

      Which way I have to fix this error?

      P Offline
      P Offline
      Pl45m4
      wrote on 27 Oct 2024, 14:31 last edited by
      #2

      @YuriyRusinov

      Hi,

      what Qt version are you using?

      Ubuntu linux 18

      Why such old Ubuntu?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        YuriyRusinov
        wrote on 27 Oct 2024, 16:21 last edited by
        #3

        Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu, Unsuccessfully attemption for update.

        1 Reply Last reply
        0
        • C Online
          C Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 27 Oct 2024, 17:28 last edited by Christian Ehrlicher
          #4

          This cmake macro is not available for such an ancient Qt version.

          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

          1/4

          27 Oct 2024, 14:12

          • Login

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