QuasarApp / Qt-Secret

Simple encryption library supporting RSA and AES algorithms.
https://quasarapp.ddns.net:3031/docs/QuasarApp/Qt-Secret/latest/index.html
GNU Lesser General Public License v3.0
243 stars 69 forks source link

cannot find -lQt-Secret1, cannot find -lQtBigInt6 #73

Closed DmitryDemidov80 closed 4 years ago

DmitryDemidov80 commented 4 years ago

Hi! I downloaded src Qt-Secret, git submodule update --init --recursive, etc... I included in my .pro-file include($$PWD/Qt-Secret/src/Qt-Secret.pri) but get errors: cannot find -lQt-Secret1 and cannot find -lQtBigInt6

I try to build Qt-Secret-GUI.pro but get same error

MinGW, Qt 5.14.2 What i'm doing wrong? Thanks!

EndrII commented 4 years ago

It looks like Qt-Secret is not built. You can show me your PRO files?

example of project structure:

Main Pro File :

TEMPLATE = subdirs
CONFIG += ordered

SUBDIRS += \
           Qt-Secret \
           MyProject \

You MyProject.pro

 CONFIG += c++11

SOURCES += \
        main.cpp \

include($$PWD/../src/Qt-Secret.pri)

For more information see :

DmitryDemidov80 commented 4 years ago

I don't have the main .pro-file

My .pro-file: ` QT += core gui serialport network CONFIG += c++17 VERSION = 2.0.0 DEFINES += APP_VERSION=\\"$$VERSION\\" greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TEMPLATE = app DEFINES += QT_DEPRECATED_WARNINGS QMAKE_LFLAGS_RELEASE += -static -static-libgcc

include($$PWD/Qt-Secret/src/Qt-Secret.pri)

include(Logger/Logger.pri) include(QtXlsx/src/xlsx/qtxlsx.pri) include(updater_app/updater_app.pri)

TARGET = myapp DESTDIR = ../qtbin/myapp

SOURCES += here *.cpp

HEADERS += here *.h

FORMS += here all forms `

I try to build for example Qt-Secret-GUI.pro but failed. OS: Windows 10 64 bit,

Should I have a main .pro-file?

EndrII commented 4 years ago

I still think that you will need main.pro, since this is the most convenient way to assemble all system components from a single file.

DmitryDemidov80 commented 4 years ago

Thanks!

EndrII commented 4 years ago

do you manage to build Qt-Secret (main project) from QtCreator? If you have problems, then they will arise when using main.pro. Write and show the build log, we will solve your problems.

DmitryDemidov80 commented 4 years ago

Yes, i can build Qt-Secret from Qt Creator. I have to remanage project to create MainProject.pro-file and add Qt-Secret and my project as subdirs.

EndrII commented 4 years ago

Right. If this solves your problem, please close this issue.