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. Linking Open SSL and lTelegramQt5
Qt 6.11 is out! See what's new in the release blog

Linking Open SSL and lTelegramQt5

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.4k 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.
  • md2012M Offline
    md2012M Offline
    md2012
    wrote on last edited by md2012
    #1

    Hello dear developers
    Well i have found Telegram social network binding in the github :
    LINK
    when i want to get compile out of the TestApp which is ready to compile in there i get these errors :

    :-1: error: cannot find -lssl
    :-1: error: cannot find -lcrypto
    :-1: error: cannot find -lTelegramQt5
    collect2.exe:-1: error: error: ld returned 1 exit status
    

    i found out that the first 2 error are there because of OpenSSL so i downloaded the
    Win32 OpenSSL v1.1.0f and installed it under default directory in C and added

    win32{
        LIBS += -LC:/OpenSSL-Win32/lib
        INCLUDEPATH += C:/OpenSSL-Win32/include
    }
    

    to the pro file but no luck at solving the problem.
    Pro file :

    QT += core gui widgets network
    CONFIG += c++11
    
    TEMPLATE = app
    
    INCLUDEPATH += F:\Users\MeHrAnM.D\Desktop\telegram-qt-master\TelegramQt
    
    win32{
        LIBS += -LC:/OpenSSL-Win32/lib
        INCLUDEPATH += C:/OpenSSL-Win32/include
    }
    
    LIBS += -lssl -lcrypto -lz
    LIBS += -L$$OUT_PWD/../TelegramQt
    LIBS += -lTelegramQt$${QT_MAJOR_VERSION}
    
    TARGET = testApp
    TEMPLATE = app
    
    SOURCES += main.cpp\
        MainWindow.cpp \
        CContactModel.cpp \
        CContactsFilterModel.cpp \
        CChatInfoModel.cpp \
        CMessageModel.cpp
    
    HEADERS  += MainWindow.hpp \
        CContactModel.hpp \
        CContactsFilterModel.hpp \
        CChatInfoModel.hpp \
        CMessageModel.hpp
    
    FORMS    += MainWindow.ui
    
    RESOURCES += \
        resources.qrc
    
    OTHER_FILES += CMakeLists.txt
    
    

    Any Idea guys?

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

      Hi,

      Downgrad OpenSSL, the 1.1.0 version broke API/ABI compatibility. There's a new backend in the work to support it though.

      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
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Also, make sure you are using a version of OpenSSL that was built with the same compiler as your Qt version as well as architecture.

        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
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved