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. Headers in /usr/include don't match what Qt Creator is showing
Qt 6.11 is out! See what's new in the release blog

Headers in /usr/include don't match what Qt Creator is showing

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 527 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.
  • J Offline
    J Offline
    JCalhoun
    wrote on last edited by
    #1

    The SDL2 headers on my machine in

    /usr/include/SDL2
    

    differ from the ones that Qt Creator is displaying (and trying to compile against).

    Is there a cache of some sort that Qt uses? Is there an include_directories I need to add to override?

    I'm new to linux programming in general, Qt Creator specifically. I've done my best though to scour the web for a solution.

    Christian EhrlicherC 1 Reply Last reply
    0
    • J JCalhoun

      The SDL2 headers on my machine in

      /usr/include/SDL2
      

      differ from the ones that Qt Creator is displaying (and trying to compile against).

      Is there a cache of some sort that Qt uses? Is there an include_directories I need to add to override?

      I'm new to linux programming in general, Qt Creator specifically. I've done my best though to scour the web for a solution.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @JCalhoun said in Headers in /usr/include don't match what Qt Creator is showing:

      differ from the ones that Qt Creator is displaying (and trying to compile against).

      QtCreator is an IDE, not a compiler.
      You most likely add an include path with your other SDL includes.

      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
      • J Offline
        J Offline
        JCalhoun
        wrote on last edited by
        #3

        I understand. I used QtCreator to create the CMake file - when I click Build it invokes the compiler....

        Perhaps then this is more of a question regarding CMake files then (I realize QtCreator acts as a kind of UI for editing the CMake text file).

        While I manually added the correct include directory to the CMake file, there still seems to be some kind of opaque place where CMake is getting /usr/includes/ that does not correspond with either the versions of the headers I see on disk or the explicit path I specified in include_directories().

        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