LimeReport Forum
General Category | Основное => Discussion | Обсуждение => Topic started by: paradise on July 11, 2017, 08:53:56 am
-
It is not possible to attach the LimeReport library to the project ( compiler mvsc 2013, qt v. 5.5.0). What is the problem? Project and error screen in attachments.
Не получается присоединить к проекту библиотеку LimeReport. В чем проблема? Проект и скрин ошибки во вложениях.
-
error screen
-
The problem in the your pro file.
Проблема в вашем pro файле.
If you change the next lines all will be ok.
Если вы измените следующие строчки все будет хорошо.
In the your pro file:
В вашем pro файле:
INCLUDEPATH += $$PWD/lib/include
LIBS += $$PWD/lib/ -llimereport
DEPENDPATH += $$PWD/lib/include
win32:CONFIG(release, debug|release): LIBS += $$PWD/lib/ -llimereport
else:win32:CONFIG(debug, debug|release): LIBS += $$PWD/lib/ -llimereport
else:unix: LIBS += $$PWD/lib/ -llimereport
should be:
должно быть:
INCLUDEPATH += $$PWD/lib/include
DEPENDPATH += $$PWD/lib/include
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/ -llimereport
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/ -llimereport
else:unix: LIBS += -L$$PWD/lib/ -llimereport
-
Thank you! The project was built, only now when the project is started in Debug mode, the following error is displayed.
Tried as written here - http://limereport.ru/forum/index.php?topic=137.msg980#msg980 did not help
-
You should have two limereport libraries, one for debugging and one for release mode.
You can put it in separate folders for example: release and debug.
Then use next config in the your pro file.
INCLUDEPATH += $$PWD/lib/include
DEPENDPATH += $$PWD/lib/include
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/release -llimereport
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/debug -llimereport