Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. unable to build a example program (Echo Plugin Example ) in qt
Forum Updated to NodeBB v4.3 + New Features

unable to build a example program (Echo Plugin Example ) in qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.8k Views
  • 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.
  • srikanthS Offline
    srikanthS Offline
    srikanth
    wrote on last edited by
    #1

    am trying to build the (Echo Plugin Example) program in qt , but unable to build the file ,
    i think there is problem with my pro file , but don't know how can i fix this .

    tools/echoplugin/echowindow/echointerface.h
    tools/echoplugin/echowindow/echowindow.cpp
    tools/echoplugin/echowindow/echowindow.h
    tools/echoplugin/plugin/echoplugin.cpp
    tools/echoplugin/plugin/echoplugin.h
    tools/echoplugin/echowindow/main.cpp
    tools/echoplugin/echoplugin.pro
    tools/echoplugin/echowindow/echowindow.pro
    tools/echoplugin/plugin/plugin.pro

    this example contains this files i created all .cpp and .h file in a required folder with the help of example

    but confused to do qmake so did qmake at (tools/echoplugin ) this path , and a error is showing when i tries to build the file
    1>plugin\echoplugin.h(15): error : Undefined interface

    please help me to get out from this

    i think there is a problem with qmake , i observed in example there are 3 .pro files
    but am generating 1 .pro file at (tools/echoplugin ) this path

    (sorry for my english), any help is appreciated.

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @srikanth

      You should open tools/echoplugin/echoplugin.pro pro file

      --Alles ist gut.

      srikanthS 1 Reply Last reply
      0
      • RatzzR Ratzz

        @srikanth

        You should open tools/echoplugin/echoplugin.pro pro file

        srikanthS Offline
        srikanthS Offline
        srikanth
        wrote on last edited by
        #3

        @Ratzz that file is looks like this when i qmake it

        TEMPLATE = app
        TARGET =
        DEPENDPATH += . echowindow plugin
        INCLUDEPATH += .

        Input

        HEADERS += echowindow/echointerface.h
        echowindow/echowindow.h
        plugin/echoplugin.h
        SOURCES += echowindow/echowindow.cpp echowindow/main.cpp plugin/echoplugin.cpp

        but actually in example file this is be like this

        TEMPLATE = subdirs
        SUBDIRS = echowindow
        plugin

        and i didn't have the remaining two . pro files how can i build this example file please help me

        1 Reply Last reply
        0
        • RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by
          #4

          Here is the exact same zip file (entire sample )

          --Alles ist gut.

          srikanthS 1 Reply Last reply
          0
          • RatzzR Ratzz

            Here is the exact same zip file (entire sample )

            srikanthS Offline
            srikanthS Offline
            srikanth
            wrote on last edited by
            #5

            @Ratzz but where can i build that file ,
            according to my understand ,we have to do two things to build the program
            1, qmake -project ( to generate .pro file)
            2,qmake -t vcapp ( to create a project on visual studio)

            now i need to know where i have to use this command qmake -t vcapp

            1 Reply Last reply
            0
            • RatzzR Offline
              RatzzR Offline
              Ratzz
              wrote on last edited by Ratzz
              #6

              How are you building your project? Qt Creator ?
              There is a .pro file already?

              --Alles ist gut.

              srikanthS 1 Reply Last reply
              1
              • RatzzR Ratzz

                How are you building your project? Qt Creator ?
                There is a .pro file already?

                srikanthS Offline
                srikanthS Offline
                srikanth
                wrote on last edited by
                #7

                @Ratzz yeah already there is a .pro file , bu my question is how can i combine all the 2 projects

                am doing like this in echowindow folder am doing like this qmake -t vcapp

                and in plugin folder qmake -t vclib

                and in echoplugin folder qmake -t vcapp
                after doing this now struck here , what can i do now

                1 Reply Last reply
                0
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  go in tools/echoplugin call qmake (no arguments) then call nmake (if you use MSVC compiler) that will build everything.

                  The TEMPLATE = subdirs will take care of building all the subprojects

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  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