Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using cmake with statically linked Qt (Linux embedded EGLFS)
Forum Updated to NodeBB v4.3 + New Features

Using cmake with statically linked Qt (Linux embedded EGLFS)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 514 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.
  • M Offline
    M Offline
    Maxnet
    wrote on last edited by
    #1

    I have written a Qt application that uses CMake as build system, and runs under a minimal custom Linux distribution (EGLFS QPA platform).
    Works fine when dynamically linked to Qt. But when I build Qt statically, and just try to compile my application (without making any changes to build script) I get:

    CMake Error:
      Error evaluating generator expression:
    
        $<IN_LIST:Qt5::QDebugMessageServiceFactory,$<TARGET_PROPERTY:QT_PLUGINS>;$<TARGET_PROPERTY:QT_PLUGINS_qmltooling>>
    
      Expression did not evaluate to a known generator expression
    
    
    CMake Error:
      Error evaluating generator expression:
    
        $<IN_LIST:Qt5::QEglFSEmulatorIntegrationPlugin,$<TARGET_PROPERTY:QT_PLUGINS>;$<TARGET_PROPERTY:QT_PLUGINS_egldeviceintegrations>>
    
      Expression did not evaluate to a known generator expression
    
    
    CMake Error:
      Error evaluating generator expression:
    
        $<IN_LIST:Qt5::QDebugMessageServiceFactory,$<TARGET_PROPERTY:QT_PLUGINS>;$<TARGET_PROPERTY:QT_PLUGINS_qmltooling>>
    
      Expression did not evaluate to a known generator expression
    
    
    CMake Error:
      Error evaluating generator expression:
    
        $<IN_LIST:Qt5::QEglFSEmulatorIntegrationPlugin,$<TARGET_PROPERTY:QT_PLUGINS>;$<TARGET_PROPERTY:QT_PLUGINS_egldeviceintegrations>>
    
      Expression did not evaluate to a known generator expression
    
    
    CMake Error:
      Error evaluating generator expression:
    
        $<IN_LIST:Qt5::QDebugMessageServiceFactory,$<TARGET_PROPERTY:QT_PLUGINS>;$<TARGET_PROPERTY:QT_PLUGINS_qmltooling>>
    
      Expression did not evaluate to a known generator expression
    
    
    CMake Error:
      Error evaluating generator expression:
    
        $<IN_LIST:Qt5::QEglFSEmulatorIntegrationPlugin,$<TARGET_PROPERTY:QT_PLUGINS>;$<TARGET_PROPERTY:QT_PLUGINS_egldeviceintegrations>>
    
      Expression did not evaluate to a known generator expression
    

    Is there any documentation on what modifications needs to be done in CMakelists.txt to get this to work with a static Qt library?
    Only documentation on the Qt site is for qmake projects.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Maxnet
      wrote on last edited by
      #2

      In case somebody else stumbles over this:

      Problem seems to be limited to older versions of CMake (like 3.10.2 which comes with Ubuntu 18.04 LTS)
      With newer CMake it does work properly.

      1 Reply Last reply
      2

      • Login

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