Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. Build not successful for a non QT project
Forum Updated to NodeBB v4.3 + New Features

Build not successful for a non QT project

Scheduled Pinned Locked Moved Qt Contribution
15 Posts 2 Posters 5.8k 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.
  • M Offline
    M Offline
    mishraab
    wrote on last edited by
    #4

    Hi SGaist,

    As I am new to QT so I am sending all the steps I followed before building the project. Please tell me if somewhere I did something wrong. These steps will help you to narrow down the cause of the problem.

    Steps I followed:

    I have all the source and header files so,

    Step1. New Project -> Import Project -> Import Existing Project <Choose Project Name as "Demo"> -> <location "C:\Documents\TXX" > and then finish.
    path "C:\Documents\TXX" contains all my header files and source files.

    Step2. Now I have files named Demo.files, Demo.includes, Demo.config and Demo.creator in location "C:\Documents\TXX".

    Step3. Now to generate .pro file, hence I opened the Command Prompt (QT 5.3 for Desktop(MingW 4.8 32 bit)) and jumped into location "C:\Documents\TXX", and generated ".pro file and make files" by using commands:
    1. qmake -project => TXX.pro got generated in the same location.

               2. qmake -o Makefile TXX.pro => Makefile, Makefile.Release and Makefile.debug got generated in same location.
    

    Step4. I modified my .pro file as :
    TEMPLATE = app => modified to => TEMPLATE = lib (since I want .dll file to be generated)
    TARGET = TXX
    INCLUDEPATH += {I tried it with both Absoulte and Relative paths but no benefit}.
    CONFIG += build_all {just for experiment but it has no side effect} HEADERS += <path to all header files inside TXX>
    SOURCES += <path to all source files inside TXX>

    Step5. I also explicitly tried to add path into qt explorer but no benfit;
    tools->options-> under C++ sections -> File Naming tab -> search paths : I added the same path to ORMutex.h => no benefit.

    When I try to build/rebuild the project, I get some warnings followed by one error.
    Warnings: overriding/ignoring recipe/old recipe for targer release/.o files in file "Makefile.release".
    Error: 'ORmutex.h' no such file or directory, However when I hover down my cursor over ORmutex,h where error had come, I can see the location of the header file that means file is present there.

    What could be the cause of the issue.
    Please analyse.

    Thanks and Best Regards,
    Abhishek

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

      Can you show your pro file content ?

      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
      0
      • M Offline
        M Offline
        mishraab
        wrote on last edited by
        #6

        @
        TEMPLATE = lib
        TARGET = STT
        INCLUDEPATH += path to XXT folder <I tried with relative path also>
        CONFIG += build_all

        Input

        HEADERS += swtdus_swtools/stt/aeneasversion.h
        swtdus_swtools/sttdecoder_3gfw/sttdecoder_3gfw.h
        <other header files>
        SOURCES += swtdus_swtools/baselibs/src/orexception.cpp
        swtdus_swtools/baselibs/src/ormutex.cpp
        <other source files>
        @

        Thanks !!

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

          Are you using the unix notation for all your 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
          0
          • M Offline
            M Offline
            mishraab
            wrote on last edited by
            #8

            INCLUDEPATH += C:/Users/mishraab/Documents/XXT/ I am using this notation, I had tried with black slash also.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mishraab
              wrote on last edited by
              #9

              header and source paths ate automatically generated.

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

                [quote author="mishraab" date="1418285012"]header and source paths ate automatically generated.[/quote]

                What do you mean by that ?

                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
                0
                • M Offline
                  M Offline
                  mishraab
                  wrote on last edited by
                  #11

                  When we generate .pro file using command : "qmake -project", the path to all header files and source files got copied to .pro file automatically.
                  I followed the same notation (for path) in my INCLUDEPATH variable.

                  I was trying to say this. What could be the problem ?? any idea?

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

                    Something's not clear:
                    You have

                    @C:\prj\ormut.cpp:@

                    and

                    @swtdus_swtools/baselibs/src/orexception.cpp@

                    Are these files in the same folder ?

                    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
                    0
                    • M Offline
                      M Offline
                      mishraab
                      wrote on last edited by
                      #13
                      1. C:\prj\ormut.cpp: where is this file?

                      Are you talking about ormutex.cpp ???? in swtdus_swtools/baselibs/src directory, i have 2 files ormutex.cpp and orexception.cpp; in the same folder.

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

                        [quote author="mishraab" date="1418107574"]
                        similar 7-8 warnings and 1 error:
                        @
                        C:\prj\ormut.cpp: 15: error: ormutex.h: No such file or directory
                        #include "ormutex.h" // class ORMutex
                        ^
                        @
                        Thanks in advance.[/quote]

                        That one

                        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
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #15

                          Yes, that's clear. The question is: where is that file and ormutex.h exactly located ?

                          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
                          0

                          • Login

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