Qt using .dll in .dll

MNowator

I want to use one .dll file in another. But it seems like I'm doing something wrong with it. I have two library project ScaraControlGUI and ScaraLogic, and I want to use ScaraLogic into ScaraControlGUI, so I added appropriate lines in ScaraControlGUI's .pro file:

DEPENDPATH += . ../ScaraLogic
INCLUDEPATH += ../ScaraLogic
LIBS += -L../ScaraLogic/debug -lScaraLogic

And I receive:

scaralogic.h: No such file or directory

When I want to include this file. I'm sure that this file exist so I bet that I'm doing something wrong around .pro files.

What I'm doing wrong ? Adding ScaraControlGUI .dll to main executable project works fine like this.

Thanks in advace for help.

MNowator

I resolved my problem. My ScaraControlGUI subproject was building properly. Problem was in my main project ScaraControl and to solve this I needed to add LIBS and INCLUDEPATH too.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related