Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Error: #include <QLocalSocket> and #include <qlocalsocket.h> not found
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Error: #include <QLocalSocket> and #include <qlocalsocket.h> not found

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 5.6k Views 1 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.
  • McLionM Offline
    McLionM Offline
    McLion
    wrote on last edited by
    #1

    Hi

    On both includes
    #include <QLocalSocket>
    #include <qlocalsocket.h>
    I get a "No such file or directory" when trying to compile and run on windows. Funny enough, when cross-compiled on linux, there is no error.
    When I hover over it with the mouse it correctly shows me the class message with F1 as well as the path on the header file.
    Strange as well, if I open the localfortuneclient demo, it compiles and runs (on windows) and I don't really see the difference.

    What am I doing wrong?
    I have to add that I am rather new to QT.
    Thanks

    I'd like to add what I am trying to achieve. Maybe there is a good How-To somewhere.
    I have a daemon that acts as Unix Domain Sockets Server that I need to communicate with.
    The server is up and running and I now need to have QT as client and connect to the server and communicate with it.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Hi,

      Could you post your .pro file? Maybe you forget to add QT += network in it?

      BR,

      1 Reply Last reply
      0
      • McLionM Offline
        McLionM Offline
        McLion
        wrote on last edited by
        #3

        That was it!
        Thanks a lot. I now have:
        QT += core gui network

        Cheers,
        McL

        1 Reply Last reply
        0
        • W Offline
          W Offline
          Woody
          wrote on last edited by
          #4

          Please add [SOLVED] to the title;)

          So we know it's solved;)

          File not found. Nobody leave the room!

          1 Reply Last reply
          0
          • McLionM Offline
            McLionM Offline
            McLion
            wrote on last edited by
            #5

            I looked for a forum function to set this thread as solved, to no avail.
            I'll do it as you suggested.
            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