Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. problem with plugin building
Forum Updated to NodeBB v4.3 + New Features

problem with plugin building

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 3 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gutalin
    wrote on last edited by
    #1

    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 -d

    As you can see, I selected for QTC_SOURCE a path, wich certainly contains a Utils.so lib, what I am doing wrong ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The current error is that wizardpage.h is not found. You should check your include paths.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • G Offline
        G Offline
        Gutalin
        wrote on last edited by
        #3

        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

        jsulmJ 1 Reply Last reply
        0
        • G Gutalin

          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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Gutalin Did you check where exactly this header file is located?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Gutalin
            wrote on last edited by
            #5

            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

            jsulmJ 1 Reply Last reply
            0
            • G Gutalin

              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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • G Offline
                G Offline
                Gutalin
                wrote on last edited by
                #7

                @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?

                jsulmJ 1 Reply Last reply
                0
                • G Gutalin

                  @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?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by jsulm
                  #8

                  @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.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved