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. (Partial - Solved)Error while building.
Forum Updated to NodeBB v4.3 + New Features

(Partial - Solved)Error while building.

Scheduled Pinned Locked Moved General and Desktop
12 Posts 3 Posters 2.6k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Without more information, it's pretty much Crystal Ball debugging. Got any spaces in your paths (project itself, library etc.) ?

    Can you share your pro file ?

    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
    • V Offline
      V Offline
      vpwal
      wrote on last edited by
      #3

      hi ..
      Because i am using Qt with MSVS 10 there is no .pro file by default as it creates in Qt Creator.
      I have added my lib using references of MSVS 10.

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

        Then how are you handling your Qt project ? The Visual Studio AddIn ?

        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
        • V Offline
          V Offline
          vpwal
          wrote on last edited by
          #5

          Hii.

          when i make a new project using Qt 4.8 add ins with MSVS 10 then i found there is no .pro file in my source directory.
          in order to get .pro file.then there is an option of creating .pro file in MSVS 10 menu "Qt" -->create basic .pro file.

          after creating my .pro file it shows me the following..

          ----------------------------------------------------

          This file is generated by the Qt Visual Studio Add-in.

          ------------------------------------------------------

          @TEMPLATE = app
          TARGET = AudioTest
          DESTDIR = ../Win32/Debug
          QT += core gui multimedia
          CONFIG += debug console
          DEFINES += QT_LARGEFILE_SUPPORT QT_DLL QT_MULTIMEDIA_LIB
          INCLUDEPATH += .
          ./GeneratedFiles/Debug
          LIBS += -L"../"
          -l/
          -l$(INHERIT)/
          -llibmpg123-0
          PRECOMPILED_HEADER = StdAfx.h
          DEPENDPATH += .
          MOC_DIR += ./GeneratedFiles/debug
          OBJECTS_DIR += debug
          UI_DIR += ./GeneratedFiles
          RCC_DIR += ./GeneratedFiles
          HEADERS += ./mpg123.h
          ./Audio.h
          ./ReadWrite.h
          SOURCES += ./Audio.cpp
          ./main.cpp
          ./ReadWrite.cpp@

          my another question why does .pro not create itself when we use Qt add-ins with MSVS10
          Thanks.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vpwal
            wrote on last edited by
            #6

            Seems no help after providing .pro ?

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kumararajas
              wrote on last edited by
              #7

              There can be plenty of reasons for your problem.

              • Not having enough permission rights for the user
              • VS path not set properly

              May be you can try clean the solution, see the build output related to your error while building. If the clean is successful, you might think off building the solution again.

              --Kumar

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vpwal
                wrote on last edited by
                #8

                Hi.
                Thanks for reply friend..

                [quote author="kumararajas" date="1417155897"]There can be plenty of reasons for your problem.

                • Not having enough permission rights for the user
                • VS path not set properly

                May be you can try clean the solution, see the build output related to your error while building. If the clean is successful, you might think off building the solution again.[/quote]

                the first two points you have said not an issue form me because i have made many projects without considering these issues.

                second thing is i did clean and rebuild my project at least 30 times again and again but encountering the same problem,even i have checked into references section where i added my libs No problem at all.

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

                  Since you are using the VS-AddIn you get a VS project (that you can also generate from the pro file)

                  @HEADERS += ./mpg123.h @

                  mpg123.h doesn't belong here, you should rather have the path to in in an INCLUDEPATH += statement

                  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
                    #10

                    Still the same error ?

                    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
                    • V Offline
                      V Offline
                      vpwal
                      wrote on last edited by
                      #11

                      yes same error

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vpwal
                        wrote on last edited by
                        #12

                        Problem is solved when i build in Qt Creator. *

                        Thanks.

                        *but still with Visual Studio 10.

                        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