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. Error: Compiling legacy Souce code
Forum Updated to NodeBB v4.3 + New Features

Error: Compiling legacy Souce code

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
44 Posts 6 Posters 10.9k Views 2 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.
  • R Offline
    R Offline
    robrob
    wrote on 25 Feb 2018, 16:03 last edited by
    #3

    Hi koahnig,
    Thank you for the reply.
    "You gat a pretty old Qt creator version, I suggest to upgrade to version 4.5"

    Sorry the QtCreator version was 4.5.0 intead of 2.5.0.
    When I used this version there were lot of error related to header files missing. The application used headers file that are not supported by the Creator 4.5.0. I looked at these header and they are not user header but the part the IDE package, I think. This why I am looking for Creator version that created the project back in 2011.

    "The most important is that what the actual Qt library version was used for your application. Was it Qt 3 or Qt 4? I do not think that Qt 5 was already in place around there."

    It is hard to tell which Qt version. I think it is Qt 4.7.4 and MINGW530_32. I agree, it wasn't Qt 5.

    "Which is the Qt lib version you are using now?"
    I am trying different QtCreator and see if the error disappreaded. This morning, I tried QtCreator 2.3.0 which its About DialogBox info show that is based on Qt 4.7.4 and it was built on 31/08/2018. So I installed Qt 4.7.4 and I compiled the project using the creator 2.5.0.
    This time all the error related to missing header file disappeared.
    I got only:
    Warning message : Qt: Untested Windows version 6.2 detected!
    and Error messages:

    **g++: ../Build/debug/libsa430dbg.a: No such file or directory

    g++: C:/Qt/4.7.4/lib/libqwtd.a: No such file or directory**

    It seems to me that this Creator version has the built in header files and this is why there is no error related to missing header or maybe I did spoke too soon.

    The other two error, I haven't the slight clue.
    Any idea?

    A K 2 Replies Last reply 25 Feb 2018, 16:57
    0
    • R robrob
      25 Feb 2018, 16:03

      Hi koahnig,
      Thank you for the reply.
      "You gat a pretty old Qt creator version, I suggest to upgrade to version 4.5"

      Sorry the QtCreator version was 4.5.0 intead of 2.5.0.
      When I used this version there were lot of error related to header files missing. The application used headers file that are not supported by the Creator 4.5.0. I looked at these header and they are not user header but the part the IDE package, I think. This why I am looking for Creator version that created the project back in 2011.

      "The most important is that what the actual Qt library version was used for your application. Was it Qt 3 or Qt 4? I do not think that Qt 5 was already in place around there."

      It is hard to tell which Qt version. I think it is Qt 4.7.4 and MINGW530_32. I agree, it wasn't Qt 5.

      "Which is the Qt lib version you are using now?"
      I am trying different QtCreator and see if the error disappreaded. This morning, I tried QtCreator 2.3.0 which its About DialogBox info show that is based on Qt 4.7.4 and it was built on 31/08/2018. So I installed Qt 4.7.4 and I compiled the project using the creator 2.5.0.
      This time all the error related to missing header file disappeared.
      I got only:
      Warning message : Qt: Untested Windows version 6.2 detected!
      and Error messages:

      **g++: ../Build/debug/libsa430dbg.a: No such file or directory

      g++: C:/Qt/4.7.4/lib/libqwtd.a: No such file or directory**

      It seems to me that this Creator version has the built in header files and this is why there is no error related to missing header or maybe I did spoke too soon.

      The other two error, I haven't the slight clue.
      Any idea?

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 25 Feb 2018, 16:57 last edited by
      #4

      Hi @robrob,

      once again: Qt Creator has nothing todo with the header files needed for building your application.

      Important it the Qt version. And as @koahnig already said, you can use an older Qt version together with a newer Qt Creator. E.g. I'm using Qt Creator 4.5 together with Qt 4.8.2 and Qt 5.9.4 on Windows 7.

      Which Windows version are you using?

      Qt has to stay free or it will die.

      R 2 Replies Last reply 25 Feb 2018, 20:58
      4
      • R robrob
        25 Feb 2018, 16:03

        Hi koahnig,
        Thank you for the reply.
        "You gat a pretty old Qt creator version, I suggest to upgrade to version 4.5"

        Sorry the QtCreator version was 4.5.0 intead of 2.5.0.
        When I used this version there were lot of error related to header files missing. The application used headers file that are not supported by the Creator 4.5.0. I looked at these header and they are not user header but the part the IDE package, I think. This why I am looking for Creator version that created the project back in 2011.

        "The most important is that what the actual Qt library version was used for your application. Was it Qt 3 or Qt 4? I do not think that Qt 5 was already in place around there."

        It is hard to tell which Qt version. I think it is Qt 4.7.4 and MINGW530_32. I agree, it wasn't Qt 5.

        "Which is the Qt lib version you are using now?"
        I am trying different QtCreator and see if the error disappreaded. This morning, I tried QtCreator 2.3.0 which its About DialogBox info show that is based on Qt 4.7.4 and it was built on 31/08/2018. So I installed Qt 4.7.4 and I compiled the project using the creator 2.5.0.
        This time all the error related to missing header file disappeared.
        I got only:
        Warning message : Qt: Untested Windows version 6.2 detected!
        and Error messages:

        **g++: ../Build/debug/libsa430dbg.a: No such file or directory

        g++: C:/Qt/4.7.4/lib/libqwtd.a: No such file or directory**

        It seems to me that this Creator version has the built in header files and this is why there is no error related to missing header or maybe I did spoke too soon.

        The other two error, I haven't the slight clue.
        Any idea?

        K Offline
        K Offline
        koahnig
        wrote on 25 Feb 2018, 17:24 last edited by
        #5

        @robrob said in Error: Compiling legacy Souce code:

        I got only:
        Warning message : Qt: Untested Windows version 6.2 detected!

        What is that?

        I recommend that you are installing Qt creator with online installer from there either commercial or open source version.

        The online installer forces you to use the newest version of Qt creator. With the online installer you should be able to install also older Qt lib versions with the correct compiler version. At least you will have something which should work.

        AFAIK you should be able to install Qt 4.7 and recompile. Typically all is setup correctly.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        2
        • A aha_1980
          25 Feb 2018, 16:57

          Hi @robrob,

          once again: Qt Creator has nothing todo with the header files needed for building your application.

          Important it the Qt version. And as @koahnig already said, you can use an older Qt version together with a newer Qt Creator. E.g. I'm using Qt Creator 4.5 together with Qt 4.8.2 and Qt 5.9.4 on Windows 7.

          Which Windows version are you using?

          R Offline
          R Offline
          robrob
          wrote on 25 Feb 2018, 20:58 last edited by
          #6

          Hi Koahnig,
          Thank you for the reply.

          I am suing Window10 64-bit.

          R 1 Reply Last reply 25 Feb 2018, 21:02
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 25 Feb 2018, 21:00 last edited by
            #7

            Hi,

            This version of Windows wasn’t even in development when 4.7 was released.

            You should consider using 4.8.7 which is the latest and last of the Qt 4 series if you can’t upgrade to Qt 5.

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

            R 1 Reply Last reply 25 Feb 2018, 21:33
            1
            • R robrob
              25 Feb 2018, 20:58

              Hi Koahnig,
              Thank you for the reply.

              I am suing Window10 64-bit.

              R Offline
              R Offline
              robrob
              wrote on 25 Feb 2018, 21:02 last edited by
              #8

              Sorry, I meant to say hi aha_1980

              1 Reply Last reply
              0
              • A aha_1980
                25 Feb 2018, 16:57

                Hi @robrob,

                once again: Qt Creator has nothing todo with the header files needed for building your application.

                Important it the Qt version. And as @koahnig already said, you can use an older Qt version together with a newer Qt Creator. E.g. I'm using Qt Creator 4.5 together with Qt 4.8.2 and Qt 5.9.4 on Windows 7.

                Which Windows version are you using?

                R Offline
                R Offline
                robrob
                wrote on 25 Feb 2018, 21:16 last edited by
                #9

                @aha_1980

                Important it the Qt version. And as @koahnig already said, you can use an older Qt version together with a newer Qt Creator. E.g. I'm using Qt Creator 4.5 together with Qt 4.8.2 and Qt 5.9.4 on Windows 7.

                How do you set Qt Creator to work with one or more Qt version ?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 25 Feb 2018, 21:17 last edited by
                  #10

                  Hi,

                  You setup the Kits, then you can choose which one you want to use with your project.

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

                  R 1 Reply Last reply 25 Feb 2018, 21:30
                  2
                  • S SGaist
                    25 Feb 2018, 21:17

                    Hi,

                    You setup the Kits, then you can choose which one you want to use with your project.

                    R Offline
                    R Offline
                    robrob
                    wrote on 25 Feb 2018, 21:30 last edited by
                    #11

                    Hi SGaist and thank you for the reply.

                    You setup the Kits, then you can choose which one you want to use with your project.

                    Is it by going to Option -->Qt4 --->Qt version tab---> add
                    then choose the qmake relative the wanted Qt version.

                    1 Reply Last reply
                    0
                    • S SGaist
                      25 Feb 2018, 21:00

                      Hi,

                      This version of Windows wasn’t even in development when 4.7 was released.

                      You should consider using 4.8.7 which is the latest and last of the Qt 4 series if you can’t upgrade to Qt 5.

                      R Offline
                      R Offline
                      robrob
                      wrote on 25 Feb 2018, 21:33 last edited by
                      #12

                      @SGaist

                      You should consider using 4.8.7
                      Does this version include these header files https://doc.qt.io/archives/3.3/headers.html?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 25 Feb 2018, 21:34 last edited by
                        #13

                        If your Qt version is not already listed then yes, first add it and then create a Kit using it.

                        Take a look at the Qt Creator documentation on the subject.

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

                        R 1 Reply Last reply 25 Feb 2018, 22:02
                        2
                        • S SGaist
                          25 Feb 2018, 21:34

                          If your Qt version is not already listed then yes, first add it and then create a Kit using it.

                          Take a look at the Qt Creator documentation on the subject.

                          R Offline
                          R Offline
                          robrob
                          wrote on 25 Feb 2018, 22:02 last edited by
                          #14

                          @SGaist
                          About The Qt Creator version and the Qt version. When I pressed Help-->About Qt Creator to see which version I have the following for version 2.3.0:
                          "Version 2.3.0 based on Qt 4.7.4 (32bits)"
                          This made me believe that this version of Qt Creator work only with Qt 4.7.4. Am I got it wrong ?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 25 Feb 2018, 22:07 last edited by
                            #15

                            Yes you are wrong.

                            As already explained, Qt Creator is an IDE. What you see in the about box just tells you the version of Qt used to build Q Creator and that you would have to use if you were to build a plugin to be used by that version of Qt Creator.

                            It doesn’t matter for the various versions of Qt you want to use to build your applications/libraries.

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

                            R 2 Replies Last reply 25 Feb 2018, 22:12
                            2
                            • S SGaist
                              25 Feb 2018, 22:07

                              Yes you are wrong.

                              As already explained, Qt Creator is an IDE. What you see in the about box just tells you the version of Qt used to build Q Creator and that you would have to use if you were to build a plugin to be used by that version of Qt Creator.

                              It doesn’t matter for the various versions of Qt you want to use to build your applications/libraries.

                              R Offline
                              R Offline
                              robrob
                              wrote on 25 Feb 2018, 22:12 last edited by
                              #16

                              @SGaist
                              Thank you SGaist for clearing this up of my mind , that's one confusion out of the way!

                              1 Reply Last reply
                              0
                              • S SGaist
                                25 Feb 2018, 22:07

                                Yes you are wrong.

                                As already explained, Qt Creator is an IDE. What you see in the about box just tells you the version of Qt used to build Q Creator and that you would have to use if you were to build a plugin to be used by that version of Qt Creator.

                                It doesn’t matter for the various versions of Qt you want to use to build your applications/libraries.

                                R Offline
                                R Offline
                                robrob
                                wrote on 25 Feb 2018, 22:26 last edited by
                                #17

                                @SGaist

                                For example if i use the following in my file

                                #include <QMessageBox>
                                #include <QColor>
                                #include <QColorDialog>
                                #include <QUrl>
                                #include <QDesktopServices>

                                Does the Qt contain these header file or where they live because they are not user defined header?

                                A 1 Reply Last reply 26 Feb 2018, 07:10
                                0
                                • R robrob
                                  25 Feb 2018, 22:26

                                  @SGaist

                                  For example if i use the following in my file

                                  #include <QMessageBox>
                                  #include <QColor>
                                  #include <QColorDialog>
                                  #include <QUrl>
                                  #include <QDesktopServices>

                                  Does the Qt contain these header file or where they live because they are not user defined header?

                                  A Offline
                                  A Offline
                                  aha_1980
                                  Lifetime Qt Champion
                                  wrote on 26 Feb 2018, 07:10 last edited by
                                  #18

                                  @robrob said in Error: Compiling legacy Souce code:

                                  Does the Qt contain these header file or where they live because they are not user defined header?

                                  Yeah, they are part of Qt, and also the corresponding shared libraries.

                                  You can easily find them by looking into your Qt installation directory.

                                  Qt has to stay free or it will die.

                                  R 1 Reply Last reply 26 Feb 2018, 12:34
                                  0
                                  • A aha_1980
                                    26 Feb 2018, 07:10

                                    @robrob said in Error: Compiling legacy Souce code:

                                    Does the Qt contain these header file or where they live because they are not user defined header?

                                    Yeah, they are part of Qt, and also the corresponding shared libraries.

                                    You can easily find them by looking into your Qt installation directory.

                                    R Offline
                                    R Offline
                                    robrob
                                    wrote on 26 Feb 2018, 12:34 last edited by
                                    #19

                                    Thanks guys for the help.
                                    I think now I understand the principle of Qt and Qt Creator.
                                    So the build process doesn't generate error related to legacy include files.
                                    However there is error which I don't have a clue what is about.
                                    Below is the output of the compiler:

                                    Running build steps for project SA430Gui...
                                    Configuration unchanged, skipping qmake step.
                                    Starting: "C:\Qt\qtcreator-2.2.0\mingw\bin\mingw32-make.exe"
                                    c:\qt\4.7.4\bin\qmake.exe -spec c:\Qt\4.7.4\mkspecs\win32-g++ -o Makefile ..\Src\SA430Gui.pro
                                    Qt: Untested Windows version 6.2 detected!
                                    Qt: Untested Windows version 6.2 detected!
                                    Qt: Untested Windows version 6.2 detected!
                                    Qt: Untested Windows version 6.2 detected!
                                    Qt: Untested Windows version 6.2 detected!
                                    Qt: Untested Windows version 6.2 detected!
                                    Qt: Untested Windows version 6.2 detected!
                                    C:/Qt/qtcreator-2.2.0/mingw/bin/mingw32-make -f Makefile.Debug
                                    mingw32-make[1]: Entering directory C:/Users/rabmerab/Documents/Qt projects/SA430.Gui1/V2.0/SA430Gui-build-desktop' g++ -mthreads -Wl,-subsystem,windows -o debug\SA430GuiDbg.exe object_script.SA430GuiDbg.Debug -L"c:\Qt\4.7.4\lib" -lmingw32 -lqtmaind debug\Manifest_res.o ../Build/debug/libsa430dbg.a C:/Qt/qwt-6.0.0/lib/libqwtd.a -lQtXmld4 -lQtGuid4 -lQtCored4 mingw32-make[1]: Leaving directory C:/Users/rabmerab/Documents/Qt projects/SA430.Gui1/V2.0/SA430Gui-build-desktop'
                                    g++: ../Build/debug/libsa430dbg.a: No such file or directory
                                    g++: C:/Qt/qwt-6.0.0/lib/libqwtd.a: No such file or directory
                                    mingw32-make[1]: *** [debug\SA430GuiDbg.exe] Error 1
                                    mingw32-make: *** [debug] Error 2
                                    The process "C:\Qt\qtcreator-2.2.0\mingw\bin\mingw32-make.exe" exited with code 2.
                                    Error while building project SA430Gui (target: Desktop)
                                    When executing build step 'Make'

                                    END of Compiler output.
                                    The two errors are highlighted in bold font
                                    There is no much information why it failed.

                                    The config part (from the SA430GUI.pro) are below:

                                    CONFIG(debug, debug|release){
                                    LIBS += ../Build/debug/libsa430dbg.a
                                    LIBS += C:/Qt/qwt-6.0.0/lib/libqwtd.a
                                    TARGET = SA430GuiDbg
                                    }else{
                                    LIBS += ../Build/release/libsa430.a
                                    LIBS += C:/Qt/qwt-6.0.0/lib/libqwt.a
                                    TARGET = SA430Gui
                                    }

                                    Just to remind that this an open source code that was given to me. It is a legacy code (2011).

                                    In desperate help please!
                                    NB: I don't mind sharing the source code with anyone who want to look at it.

                                    jsulmJ 1 Reply Last reply 26 Feb 2018, 12:41
                                    0
                                    • R robrob
                                      26 Feb 2018, 12:34

                                      Thanks guys for the help.
                                      I think now I understand the principle of Qt and Qt Creator.
                                      So the build process doesn't generate error related to legacy include files.
                                      However there is error which I don't have a clue what is about.
                                      Below is the output of the compiler:

                                      Running build steps for project SA430Gui...
                                      Configuration unchanged, skipping qmake step.
                                      Starting: "C:\Qt\qtcreator-2.2.0\mingw\bin\mingw32-make.exe"
                                      c:\qt\4.7.4\bin\qmake.exe -spec c:\Qt\4.7.4\mkspecs\win32-g++ -o Makefile ..\Src\SA430Gui.pro
                                      Qt: Untested Windows version 6.2 detected!
                                      Qt: Untested Windows version 6.2 detected!
                                      Qt: Untested Windows version 6.2 detected!
                                      Qt: Untested Windows version 6.2 detected!
                                      Qt: Untested Windows version 6.2 detected!
                                      Qt: Untested Windows version 6.2 detected!
                                      Qt: Untested Windows version 6.2 detected!
                                      C:/Qt/qtcreator-2.2.0/mingw/bin/mingw32-make -f Makefile.Debug
                                      mingw32-make[1]: Entering directory C:/Users/rabmerab/Documents/Qt projects/SA430.Gui1/V2.0/SA430Gui-build-desktop' g++ -mthreads -Wl,-subsystem,windows -o debug\SA430GuiDbg.exe object_script.SA430GuiDbg.Debug -L"c:\Qt\4.7.4\lib" -lmingw32 -lqtmaind debug\Manifest_res.o ../Build/debug/libsa430dbg.a C:/Qt/qwt-6.0.0/lib/libqwtd.a -lQtXmld4 -lQtGuid4 -lQtCored4 mingw32-make[1]: Leaving directory C:/Users/rabmerab/Documents/Qt projects/SA430.Gui1/V2.0/SA430Gui-build-desktop'
                                      g++: ../Build/debug/libsa430dbg.a: No such file or directory
                                      g++: C:/Qt/qwt-6.0.0/lib/libqwtd.a: No such file or directory
                                      mingw32-make[1]: *** [debug\SA430GuiDbg.exe] Error 1
                                      mingw32-make: *** [debug] Error 2
                                      The process "C:\Qt\qtcreator-2.2.0\mingw\bin\mingw32-make.exe" exited with code 2.
                                      Error while building project SA430Gui (target: Desktop)
                                      When executing build step 'Make'

                                      END of Compiler output.
                                      The two errors are highlighted in bold font
                                      There is no much information why it failed.

                                      The config part (from the SA430GUI.pro) are below:

                                      CONFIG(debug, debug|release){
                                      LIBS += ../Build/debug/libsa430dbg.a
                                      LIBS += C:/Qt/qwt-6.0.0/lib/libqwtd.a
                                      TARGET = SA430GuiDbg
                                      }else{
                                      LIBS += ../Build/release/libsa430.a
                                      LIBS += C:/Qt/qwt-6.0.0/lib/libqwt.a
                                      TARGET = SA430Gui
                                      }

                                      Just to remind that this an open source code that was given to me. It is a legacy code (2011).

                                      In desperate help please!
                                      NB: I don't mind sharing the source code with anyone who want to look at it.

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 26 Feb 2018, 12:41 last edited by
                                      #20

                                      @robrob said in Error: Compiling legacy Souce code:

                                      g++: ../Build/debug/libsa430dbg.a: No such file or directory
                                      g++: C:/Qt/qwt-6.0.0/lib/libqwtd.a: No such file or directory

                                      This looks ugly :-)
                                      Especially LIBS += C:/Qt/qwt-6.0.0/lib/libqwt.a is really, well, bad.
                                      Do you have these files in this directories?

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

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        robrob
                                        wrote on 26 Feb 2018, 12:53 last edited by
                                        #21

                                        Especially LIBS += C:/Qt/qwt-6.0.0/lib/libqwt.a is really, well, bad.
                                        Do you have these files in this directories?

                                        I searched for them and I couldn't find any.
                                        Also the folder C:\Qt\qwt-600 doesn't have lib subfolder.
                                        Strange is it?

                                        K 1 Reply Last reply 26 Feb 2018, 13:35
                                        0
                                        • R robrob
                                          26 Feb 2018, 12:53

                                          Especially LIBS += C:/Qt/qwt-6.0.0/lib/libqwt.a is really, well, bad.
                                          Do you have these files in this directories?

                                          I searched for them and I couldn't find any.
                                          Also the folder C:\Qt\qwt-600 doesn't have lib subfolder.
                                          Strange is it?

                                          K Offline
                                          K Offline
                                          koahnig
                                          wrote on 26 Feb 2018, 13:35 last edited by koahnig
                                          #22

                                          @robrob

                                          qwt is an externally library based on Qt. You need to download and compile yourself separately.
                                          I guess you can use a newer version, but you need to try.

                                          Vote the answer(s) that helped you to solve your issue(s)

                                          R 1 Reply Last reply 26 Feb 2018, 14:44
                                          4

                                          12/44

                                          25 Feb 2018, 21:33

                                          topic:navigator.unread, 32
                                          • Login

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