LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: paradise on July 11, 2017, 08:53:56 am

Title: It is not possible to attach the LimeReport library to the project
Post 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. В чем проблема? Проект и скрин ошибки во вложениях.
Title: error screen
Post by: paradise on July 11, 2017, 09:06:50 am
error screen
Title: Re: It is not possible to attach the LimeReport library to the project
Post by: Arin Alex on July 11, 2017, 11:17:55 am
The problem in the your pro file.
Проблема в вашем pro файле.
If you change the next lines all will be ok.
Если вы измените следующие строчки все будет хорошо. 
In the your pro file:
В вашем pro файле:
Code: [Select]
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:
должно быть:
Code: [Select]
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


Title: Re: It is not possible to attach the LimeReport library to the project
Post by: paradise on July 11, 2017, 01:21:43 pm
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
Title: Re: It is not possible to attach the LimeReport library to the project
Post by: Arin Alex on July 11, 2017, 02:11:19 pm
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.
Code: [Select]
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