Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt websocket program not compiling
Forum Updated to NodeBB v4.3 + New Features

Qt websocket program not compiling

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 1.2k 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.
  • D Offline
    D Offline
    dannykj
    wrote on last edited by
    #1

    I have been working with QT and Ubuntu(14.04) for the last 2 months. I am using QT Creator 3.0.1 which is based on Qt 5.2.1.Currently I am developing a websocket program. When I compile a sample program I get the following error
    /usr/bin/ld: cannot find -lQt5WebSockets

    I have installed the following libraries:
    libqt5webkit5
    libqt5webkit5-dev
    libqt5webkit5:i386
    Please guide me as to how to fix this problem. Thanks and regards

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by
      #2

      According to the documentation qwebsockets are only available starting from 5.3. What classes are you using?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dannykj
        wrote on last edited by
        #3

        In the sample program I am using QWebSocket only

        1 Reply Last reply
        0
        • T Offline
          T Offline
          t3685
          wrote on last edited by
          #4

          Try compiling using a newer version of Qt.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dannykj
            wrote on last edited by
            #5

            Thanks, that did it.

            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