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. How can I include libssh in windows ?
Forum Updated to NodeBB v4.3 + New Features

How can I include libssh in windows ?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 4.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.
  • I Offline
    I Offline
    iskenderoguz
    wrote on last edited by
    #1

    I installed libssh on my computer. But I can not include header files. In linux I typed

    @#include <libssh/libssh.h>@
    but in windows I get
    @C:\Users\asd\Desktop\Multimedia\Multimedia\mainwindow.h:7: error: C1083: Cannot open include file: 'libssh.h': No such file or directory@
    How can I include libssh to my Qt project in windows?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You are probably missing an INCLUDEPATH statement for Windows that points to your libssh installation folder.

      Something like:
      @
      win32 {
      INCLUDEPATH += C:/Path_to/libssh/
      }@

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        iskenderoguz
        wrote on last edited by
        #3

        Thank you. I can add libssh to my Project. But now I type @ssh_new();@ to create new ssh session and Qt applicaton crashed while opening ?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I'd say that your application can't find the libssh dlls.

          Go to the Run part of the Project Panel and update the PATH environment variable by adding the path to the libssh dlls

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - 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