Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Not getting __QNX__ defined with my Qt Creator kit for QNX
Forum Updated to NodeBB v4.3 + New Features

Not getting __QNX__ defined with my Qt Creator kit for QNX

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 245 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.
  • R Offline
    R Offline
    Rich v
    wrote on last edited by Rich v
    #1

    I am using CMake and can configure/generate and compile just fine using Qt Creator 4.13. __ QNX__ is ultimately getting defined when I use the compiler for building but when I browse code the IDE doesn't believe that __ QNX__ is set. My code segments don't get highlighted and therefore some types aren't recognized, etc. Is there something I'm missing to be sure Qt Creator's syntax highlighting functionality is aware that __ QNX__ should be set to true? My understanding is that this should be discovered automatically, possibly when CMake does its test compiles?

    This pic shows what I mean about not highlighting correctly:
    d2d5bbf5-4b8f-4e2f-95d9-311c37bf25f8-image.png

    Also, here is the kit's CMake Configuration if that helps:
    3d57250c-4a55-4b32-b7ab-e231cf12663d-image.png

    Another data point: I found under Options->C++ ->Inspect C++ Code Model this output which implies that Qt Creator does know about __ QNX__ defined by the toolchain. So the lack of correct highlighting around the #ifdef sections still doesn't make sense.
    d2ac74dd-2549-4ccc-93e1-bd5215f29fd9-image.png

    Thanks!

    1 Reply Last reply
    0

    • Login

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