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. Unknown type name QSslSocket, Qt 5.7.1
Forum Updated to NodeBB v4.3 + New Features

Unknown type name QSslSocket, Qt 5.7.1

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 267 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.
  • Z Offline
    Z Offline
    zhangxinyang
    wrote on last edited by
    #1

    I tried to install Qt 5.7.1 in Ubuntu and implememt Qt executable in Arm, and I included #include <QSslSocket> in my code, but when I declared QSslSocket in .h code, it shows unknown type name QSslSocket.

    I added QT += core network and QT += printsupport in .pro file, and when I install qt-everywhere-opensource-src-5.7.1, my build file is:
    ./configure -xplatform arm-linux-gnueabihf-g++
    -opensource
    -confirm-license
    -shared
    -skip qtandroidextras
    -skip qtdeclarative
    -skip qtmacextras
    -skip qtx11extras
    -skip qtwinextras
    -verbose
    -no-gif
    -no-mtdev
    -no-xcb
    -qt-freetype
    -fontconfig
    -no-harfbuzz
    -no-xinput2
    -no-xcb-xlib
    -no-pulseaudio
    -no-alsa
    -no-cups
    -no-iconv
    -no-icu
    -no-eglfs
    -openssl
    -no-dbus
    -prefix $ZYNQ_QT_INSTALL
    make -j4
    sudo make install
    but it still cannot work.

    Could someone help me with this issue, Thanks in advance.

    jsulmJ 1 Reply Last reply
    0
    • Z zhangxinyang

      I tried to install Qt 5.7.1 in Ubuntu and implememt Qt executable in Arm, and I included #include <QSslSocket> in my code, but when I declared QSslSocket in .h code, it shows unknown type name QSslSocket.

      I added QT += core network and QT += printsupport in .pro file, and when I install qt-everywhere-opensource-src-5.7.1, my build file is:
      ./configure -xplatform arm-linux-gnueabihf-g++
      -opensource
      -confirm-license
      -shared
      -skip qtandroidextras
      -skip qtdeclarative
      -skip qtmacextras
      -skip qtx11extras
      -skip qtwinextras
      -verbose
      -no-gif
      -no-mtdev
      -no-xcb
      -qt-freetype
      -fontconfig
      -no-harfbuzz
      -no-xinput2
      -no-xcb-xlib
      -no-pulseaudio
      -no-alsa
      -no-cups
      -no-iconv
      -no-icu
      -no-eglfs
      -openssl
      -no-dbus
      -prefix $ZYNQ_QT_INSTALL
      make -j4
      sudo make install
      but it still cannot work.

      Could someone help me with this issue, Thanks in advance.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @zhangxinyang Did you try a complete rebuild after modifying the pro file (delete build folder, run qmake, build)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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