LNK1104: cannot open file 'tomcryptd.lib' in QT creator

Viewed 16

So, I'm trying to run this example program in qt using the tomcrypt library and when I tried to build the project the compiler threw this error: LNK1104: cannot open file 'tomcryptd.lib', I added the tomcrypt library using the "Add library" interface and these are the contents of the .pro file:

QT -= gui

CONFIG += c++17 console
CONFIG -= app_bundle

#You can make your code fail to compile if it uses deprecated APIs.
#In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        main.cpp

TRANSLATIONS += \
    ProjectM2_en_US.ts
CONFIG += lrelease
CONFIG += embed_translations

#Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../libraries/libtomcrypt/lib/ -ltomcrypt
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../libraries/libtomcrypt/lib/ -ltomcryptd

INCLUDEPATH += $$PWD/../../libraries/libtomcrypt/include
DEPENDPATH += $$PWD/../../libraries/libtomcrypt/include

I have tried searching for solutions but so far, I have not found one that worked for me. I'll be really thankful if anyone has a solution for my problem

0 Answers
Related