Unable to compile: OpenSSL header missing
-
@kish1212 Hi and welcome!
First: do not put the description of your problem into the title!
Then you should provide more information. You even didn't say what project you're building!
Back to your problem: it looks like the project needs OpenSSL library and header files. You will need to download OpenSSL first. -
@jsulm i am building LAN Messenger which is a open source, my problem is not compiling and getting error is NOsuch file or directory
-
sure Jsulm
see below for .pro file
#-------------------------------------------------
LAN Messenger project file
#-------------------------------------------------
QT += core gui network xml widgets sql
unix: QT += multimedia
macx: QT += multimediawin32: TARGET = lmc
unix: TARGET = lan-messenger
macx: TARGET = "LAN-Messenger"
TEMPLATE = appINCLUDEPATH += ../../OpenSSL-Win32/include/openssl
LIBS += ../OpenSSL-Win32/lib/MinGW
RESOURCES = resource.qrc
SOURCES +=
usertreewidget.cpp
udpnetwork.cpp
transferwindow.cpp
transferlistview.cpp
tcpnetwork.cpp
strings.cpp
soundplayer.cpp
shared.cpp
settingsdialog.cpp
settings.cpp
network.cpp
netstreamer.cpp
messagingproc.cpp
messaging.cpp
message.cpp
mainwindow.cpp
main.cpp
lmc.cpp
imagepickeraction.cpp
imagepicker.cpp
historywindow.cpp
history.cpp
helpwindow.cpp
filemodelview.cpp
datagram.cpp
crypto.cpp
chatwindow.cpp
broadcastwindow.cpp
aboutdialog.cpp
xmlmessage.cpp
chathelper.cpp
theme.cpp
messagelog.cpp
updatewindow.cpp
webnetwork.cpp
userinfowindow.cpp
chatroomwindow.cpp
userselectdialog.cpp
subcontrols.cpp
trace.cpp
filemessagingproc.cpp
qmessagebrowser.cppHEADERS +=
usertreewidget.h
uidefinitions.h
udpnetwork.h
transferwindow.h
transferlistview.h
tcpnetwork.h
strings.h
soundplayer.h
shared.h
settingsdialog.h
settings.h
resource.h
network.h
netstreamer.h
messaging.h
message.h
mainwindow.h
lmc.h
imagepickeraction.h
imagepicker.h
historywindow.h
historytreewidget.h
helpwindow.h
filemodelview.h
chatwindow.h
chatdefinitions.h
broadcastwindow.h
history.h
stdlocation.h
definitions.h
datagram.h
crypto.h
aboutdialog.h
xmlmessage.h
chathelper.h
theme.h
messagelog.h
updatewindow.h
webnetwork.h
userinfowindow.h
chatroomwindow.h
userselectdialog.h
subcontrols.h
trace.h
qmessagebrowser.hFORMS +=
transferwindow.ui
settingsdialog.ui
mainwindow.ui
historywindow.ui
helpwindow.ui
chatwindow.ui
broadcastwindow.ui
aboutdialog.ui
updatewindow.ui
userinfowindow.ui
chatroomwindow.ui
userselectdialog.uiTRANSLATIONS +=
en_US.ts
ml_IN.ts
fr_FR.ts
de_DE.ts
tr_TR.ts
es_ES.ts
ko_KR.ts
bg_BG.ts
ro_RO.ts
ar_SA.ts
sl_SI.ts
pt_BR.ts
ru_RU.ts
it_IT.ts
sv_SE.tswin32: RC_FILE = lmcwin32.rc
macx: ICON = lmc.icnswin32-msvc* {
QMAKE_LFLAGS_RELEASE += /MAP
QMAKE_CFLAGS_RELEASE += /Zi
QMAKE_CFLAGS_RELEASE += /FAcs
QMAKE_CXXFLAGS_RELEASE += /Zi
QMAKE_CXXFLAGS_RELEASE += /FAcs
QMAKE_LFLAGS_RELEASE += /debug /opt:ref
}win32: {
CONFIG -= debug_and_release debug_and_release_target
LMCAPP_PATH = $$replace(OUT_PWD, lmc, lmcapp)
LIBS += -L$$LMCAPP_PATH -llmcapp
}
unix:!symbian: {
CONFIG(debug, debug|release) {
DESTDIR = ../debug
} else {
DESTDIR = ../release
}
LIBS += -L$$PWD/../../lmcapp/lib/ -llmcapp
}INCLUDEPATH += $$PWD/../../lmcapp/include
DEPENDPATH += $$PWD/../../lmcapp/includewin32-msvc*: LIBS += advapi32.lib # for GetUserNameW(...) in Helper::getLogonName(..)
win32: LIBS += -L$$PWD/../../openssl/lib/ -llibeay32
unix:!symbian: LIBS += -L$$PWD/../../openssl/lib/ -lcryptoINCLUDEPATH += $$PWD/../../openssl/include
DEPENDPATH += $$PWD/../../openssl/includeDISTFILES +=
../../../../../../../OpenSSL-Win32/bin/lmcapp.dllwin32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW/ -leay32
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW/ -leay32d
else:unix: LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW/ -leay32INCLUDEPATH += $$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW
DEPENDPATH += $$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW -
sure Jsulm
see below for .pro file
#-------------------------------------------------
LAN Messenger project file
#-------------------------------------------------
QT += core gui network xml widgets sql
unix: QT += multimedia
macx: QT += multimediawin32: TARGET = lmc
unix: TARGET = lan-messenger
macx: TARGET = "LAN-Messenger"
TEMPLATE = appINCLUDEPATH += ../../OpenSSL-Win32/include/openssl
LIBS += ../OpenSSL-Win32/lib/MinGW
RESOURCES = resource.qrc
SOURCES +=
usertreewidget.cpp
udpnetwork.cpp
transferwindow.cpp
transferlistview.cpp
tcpnetwork.cpp
strings.cpp
soundplayer.cpp
shared.cpp
settingsdialog.cpp
settings.cpp
network.cpp
netstreamer.cpp
messagingproc.cpp
messaging.cpp
message.cpp
mainwindow.cpp
main.cpp
lmc.cpp
imagepickeraction.cpp
imagepicker.cpp
historywindow.cpp
history.cpp
helpwindow.cpp
filemodelview.cpp
datagram.cpp
crypto.cpp
chatwindow.cpp
broadcastwindow.cpp
aboutdialog.cpp
xmlmessage.cpp
chathelper.cpp
theme.cpp
messagelog.cpp
updatewindow.cpp
webnetwork.cpp
userinfowindow.cpp
chatroomwindow.cpp
userselectdialog.cpp
subcontrols.cpp
trace.cpp
filemessagingproc.cpp
qmessagebrowser.cppHEADERS +=
usertreewidget.h
uidefinitions.h
udpnetwork.h
transferwindow.h
transferlistview.h
tcpnetwork.h
strings.h
soundplayer.h
shared.h
settingsdialog.h
settings.h
resource.h
network.h
netstreamer.h
messaging.h
message.h
mainwindow.h
lmc.h
imagepickeraction.h
imagepicker.h
historywindow.h
historytreewidget.h
helpwindow.h
filemodelview.h
chatwindow.h
chatdefinitions.h
broadcastwindow.h
history.h
stdlocation.h
definitions.h
datagram.h
crypto.h
aboutdialog.h
xmlmessage.h
chathelper.h
theme.h
messagelog.h
updatewindow.h
webnetwork.h
userinfowindow.h
chatroomwindow.h
userselectdialog.h
subcontrols.h
trace.h
qmessagebrowser.hFORMS +=
transferwindow.ui
settingsdialog.ui
mainwindow.ui
historywindow.ui
helpwindow.ui
chatwindow.ui
broadcastwindow.ui
aboutdialog.ui
updatewindow.ui
userinfowindow.ui
chatroomwindow.ui
userselectdialog.uiTRANSLATIONS +=
en_US.ts
ml_IN.ts
fr_FR.ts
de_DE.ts
tr_TR.ts
es_ES.ts
ko_KR.ts
bg_BG.ts
ro_RO.ts
ar_SA.ts
sl_SI.ts
pt_BR.ts
ru_RU.ts
it_IT.ts
sv_SE.tswin32: RC_FILE = lmcwin32.rc
macx: ICON = lmc.icnswin32-msvc* {
QMAKE_LFLAGS_RELEASE += /MAP
QMAKE_CFLAGS_RELEASE += /Zi
QMAKE_CFLAGS_RELEASE += /FAcs
QMAKE_CXXFLAGS_RELEASE += /Zi
QMAKE_CXXFLAGS_RELEASE += /FAcs
QMAKE_LFLAGS_RELEASE += /debug /opt:ref
}win32: {
CONFIG -= debug_and_release debug_and_release_target
LMCAPP_PATH = $$replace(OUT_PWD, lmc, lmcapp)
LIBS += -L$$LMCAPP_PATH -llmcapp
}
unix:!symbian: {
CONFIG(debug, debug|release) {
DESTDIR = ../debug
} else {
DESTDIR = ../release
}
LIBS += -L$$PWD/../../lmcapp/lib/ -llmcapp
}INCLUDEPATH += $$PWD/../../lmcapp/include
DEPENDPATH += $$PWD/../../lmcapp/includewin32-msvc*: LIBS += advapi32.lib # for GetUserNameW(...) in Helper::getLogonName(..)
win32: LIBS += -L$$PWD/../../openssl/lib/ -llibeay32
unix:!symbian: LIBS += -L$$PWD/../../openssl/lib/ -lcryptoINCLUDEPATH += $$PWD/../../openssl/include
DEPENDPATH += $$PWD/../../openssl/includeDISTFILES +=
../../../../../../../OpenSSL-Win32/bin/lmcapp.dllwin32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW/ -leay32
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW/ -leay32d
else:unix: LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW/ -leay32INCLUDEPATH += $$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW
DEPENDPATH += $$PWD/../../../../../../../OpenSSL-Win32/lib/MinGW@kish1212 said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
INCLUDEPATH += ../../OpenSSL-Win32/include/openssl
You need to adjust this line to match your OpenSSL installation.
Same for this line:LIBS += ../OpenSSL-Win32/lib/MinGW
-
@jsulm said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
LIBS += ../OpenSSL-Win32/lib/MinGW
I added this line but again i m getting the same error.. -
@jsulm said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
LIBS += ../OpenSSL-Win32/lib/MinGW
I added this line but again i m getting the same error.. -
@SGaist said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
Isn't this thread a duplicate of this one ?
@mrjj said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
@SGaist
yes it is.So, shall we put it down, then?
-
@SGaist said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
Isn't this thread a duplicate of this one ?
@mrjj said in Hi i am kishore i have project from github and i download the source and i m compiling i getting an error please find the below attachement and give the solution:
@SGaist
yes it is.So, shall we put it down, then?
[THREAD LOCKED: Duplicate of https://forum.qt.io/topic/100135/qt-lan-messenger-compiling-and-build-error/]