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. auto complete not working for cross compiler
Forum Updated to NodeBB v4.3 + New Features

auto complete not working for cross compiler

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 670 Views 2 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.
  • V Offline
    V Offline
    voltamund
    wrote on last edited by
    #1

    I have installed Qt Creator 4.3.0-rc1 on Linux to test the improved cmake support. I use a simple cmake project for testing. There are 2 kits set up in Qt Creator, a default one to compile for the local Linux machine and another one to cross compile for the Raspberry Pi. The project successfully builds for both kits and I can also do remote debugging on the Raspberry Pi. I have set up the cross compilers (C++/C) and a sysroot for the Raspberry Pi kit.
    Although the project builds, code completion does not work for system headers if the Raspberry Pi kit is selected, e.g.
    #include <stdio.h>
    As soon as the Raspberry Pi kit (cross compiler) is selected, the include gets a red underline (no such file or directory). Also code completion does not work for printf.
    Code completion only works for functions and classes that are defined in the project. If I select the Desktop kit everything works as expected.
    Is there something that must be configured in addition so that code completion also works for a kit that uses a cross compiler?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Could be a bug, not sure.

      Are you using default code model or clang code model (plugin) in Qt Creator?

      (Z(:^

      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