Unsolved problem with plugin building
-
Hello everyone, glad to meet you on this forum,
I have a problem with plugin compilation on ubuntu, once I try to build a plugin using a script below, I've got a message:
"fatal error: utils/wizardpage.h: No such file or directory
#include <utils/wizardpage.h>
^~~~~~~~~~~~~~~~~~~~
Script for compilation:
#!/bin/bash
set -e
export QTC_BUILD=~/Qt5.11.1/Tools/QtCreator_4.7
export QTC_SOURCE=~/sources/qt-creator-src-4.7.1/src/libs
QMAKE_PATH=~/Qt5.11.1/5.11.1/gcc_64/bin
TOOLS_ROOT=~/sources/tools$QMAKE_PATH/qmake -r CONFIG+=system-qtcreator $TOOLS_ROOT/tools.pro
make -dAs you can see, I selected for QTC_SOURCE a path, wich certainly contains a Utils.so lib, what I am doing wrong ?
-
Hi and welcome to devnet,
The current error is that
wizardpage.h
is not found. You should check your include paths. -
INCLUDEPATH was in .pro file
INCLUDEPATH+=~/sources/qt-creator-src-4.7.1/
INCLUDEPATH+=~/sources/qt-creator-src-4.7.1/src/
it should take wizardpage.h from there -
@Gutalin Did you check where exactly this header file is located?
-
yes, it is located in /home/sources/qt-creator-src-4.7.1/src/libs/utils/wizardpage.h
why should I specify the whole path ? It should find the path by itsef because the right folder is selected -
@Gutalin said in problem with plugin building:
/home/sources/qt-creator-src-4.7.1/src/libs/utils/wizardpage.h
Take a closer look at this location: you do not add it to INCLUDEPATH
-
@jsulm said in problem with plugin building:
n: you do not add it to INCLUDEPAT
even if I specify the whole path
INCLUDEPATH+=~/sources/qt-creator-src-4.7.1/src/libs/utils/
it doesn't change anything
could you please help me, what I'm doing wrong? -
@Gutalin Not the whole path, only ~/sources/qt-creator-src-4.7.1/src/libs
Take a look at how the header file is included:#include <utils/wizardpage.h>
So, "utils" is already part of the include, no need to have it in INCLUDEPATH.