Linking Open SSL and lTelegramQt5



  • 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?


  • Lifetime Qt Champion

    Hi,

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


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.