Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Linux, QtCreator and Qt5.9.6 compiling GNU C Libraries
Forum Updated to NodeBB v4.3 + New Features

Linux, QtCreator and Qt5.9.6 compiling GNU C Libraries

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
2 Posts 2 Posters 786 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
    MrNickless
    wrote on last edited by
    #1

    Hi,

    I have the following problem: I have installed a Modbus slave stack for Linux in my Qt5.9.6 in Ubuntu Linux.
    The Modbus slave stack has a pure C source code and mainly accesses GNU C libraries.

    Now I have the problem that the Modbus does not work as it should on the Yocto Rocko Linux.

    But already in QtCreator on Ubuntu the GNU C libraries are interpreted incorrectly by the code editor and some functions are underlined in red.

    For example for the Modbus slave stack the function mq_open from the mqueue.h library is important, but the function mq_open cannot be opened in the code editor and in the header mqueue.h this function mq_open is underlined red in the declaration with the error message: Expecting a declaration.

    Therefore my question: How can the GNU C libraries under Linux be correctly interpreted and compiled by the compiler, so that the Modbus stack works again?

    The Modbus stack worked with Qt4.72 on the ptx-Linux platform.

    Thanks in advance for replies.

    Translated with www.DeepL.com/Translator

    aha_1980A 1 Reply Last reply
    0
    • M MrNickless

      Hi,

      I have the following problem: I have installed a Modbus slave stack for Linux in my Qt5.9.6 in Ubuntu Linux.
      The Modbus slave stack has a pure C source code and mainly accesses GNU C libraries.

      Now I have the problem that the Modbus does not work as it should on the Yocto Rocko Linux.

      But already in QtCreator on Ubuntu the GNU C libraries are interpreted incorrectly by the code editor and some functions are underlined in red.

      For example for the Modbus slave stack the function mq_open from the mqueue.h library is important, but the function mq_open cannot be opened in the code editor and in the header mqueue.h this function mq_open is underlined red in the declaration with the error message: Expecting a declaration.

      Therefore my question: How can the GNU C libraries under Linux be correctly interpreted and compiled by the compiler, so that the Modbus stack works again?

      The Modbus stack worked with Qt4.72 on the ptx-Linux platform.

      Thanks in advance for replies.

      Translated with www.DeepL.com/Translator

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @MrNickless, welcome!

      From your description, the editor problem sounds again like a Clang Code Model problem. You can try to disable it with Help > About Plugins > Clang Code Model.

      That however, is completely unrelated to compile or run problems. Did I get it right that you can compile the code and it runs on the target, but has runtime problems? Which kind of problems?

      Regards

      Qt has to stay free or it will die.

      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