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. New install, Problems compiling some examples
Forum Updated to NodeBB v4.3 + New Features

New install, Problems compiling some examples

Scheduled Pinned Locked Moved Solved General and Desktop
19 Posts 3 Posters 5.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.
  • W Offline
    W Offline
    wazza
    wrote on last edited by
    #3

    I have visual studio 2013 installed I also installed 2017rc last night to see if the issue was there

    jsulmJ 1 Reply Last reply
    0
    • W wazza

      I have visual studio 2013 installed I also installed 2017rc last night to see if the issue was there

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

      @wazza This error message says that it cannot find a path:
      "
      C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
      cl -BxC:\Qt\5.8\msvc2013_64\bin\qmake.exe -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -E -Za ........\5.8\msvc2013_64\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h
      The system cannot find the path specified."
      Can you check all mentioned paths - whether they exist? For example: does C:\Qt\Tools\QtCreator\bin\jom.exe exist?

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

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wazza
        wrote on last edited by
        #5

        C:\Qt\Tools\QtCreator\bin\jom.exe Exists in the path
        C:\Qt\5.8\msvc2013_64\bin\qmake.exe Exsits
        \5.8\msvc2013_64\mkspecs\features\data\dummy.cpp Exsits
        moc_predefs.h is the only file that i cant find !

        jsulmJ 1 Reply Last reply
        0
        • W wazza

          C:\Qt\Tools\QtCreator\bin\jom.exe Exists in the path
          C:\Qt\5.8\msvc2013_64\bin\qmake.exe Exsits
          \5.8\msvc2013_64\mkspecs\features\data\dummy.cpp Exsits
          moc_predefs.h is the only file that i cant find !

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

          @wazza What about "cl" - the compiler?

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

          W 1 Reply Last reply
          0
          • jsulmJ jsulm

            @wazza What about "cl" - the compiler?

            W Offline
            W Offline
            wazza
            wrote on last edited by
            #7

            @jsulm HI jsulm I think you might have it!
            I can't find cl.exe for visual studio 2013 I have it for 2012 and 2017
            I selected c++ in the modified instal for 2013 but it's just not there
            do you have an idea on how to get it in there I might have to reinstall

            jsulmJ 1 Reply Last reply
            0
            • W wazza

              @jsulm HI jsulm I think you might have it!
              I can't find cl.exe for visual studio 2013 I have it for 2012 and 2017
              I selected c++ in the modified instal for 2013 but it's just not there
              do you have an idea on how to get it in there I might have to reinstall

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

              @wazza C++ tools are not installed by default. I think you need to start the installer again and select C++.

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

              W 1 Reply Last reply
              0
              • jsulmJ jsulm

                @wazza C++ tools are not installed by default. I think you need to start the installer again and select C++.

                W Offline
                W Offline
                wazza
                wrote on last edited by wazza
                #9

                @jsulm I have reinstalled msvs2012, and it installed it in a file that is labelled
                Microsoft Visual Studio 12.0\VC\bin that was there previously but I had assumed was an
                older studio, so cl.exe is there! we are back to square 1

                jsulmJ 1 Reply Last reply
                0
                • W wazza

                  @jsulm I have reinstalled msvs2012, and it installed it in a file that is labelled
                  Microsoft Visual Studio 12.0\VC\bin that was there previously but I had assumed was an
                  older studio, so cl.exe is there! we are back to square 1

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

                  @wazza Che3ck the Kit in QtCreator you're using: are there any warnings/errors?

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

                  W 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @wazza Che3ck the Kit in QtCreator you're using: are there any warnings/errors?

                    W Offline
                    W Offline
                    wazza
                    wrote on last edited by
                    #11

                    @jsulm when I first installed qt the only kit warning was for the cdb.exe debugger and I just pointed it to the debugger yesterday

                    jsulmJ 1 Reply Last reply
                    0
                    • W wazza

                      @jsulm when I first installed qt the only kit warning was for the cdb.exe debugger and I just pointed it to the debugger yesterday

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

                      @wazza One moment: didn't you install Qt for VC2013 and not 2012? If so then you need VC2013 compiler.

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

                      W 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @wazza One moment: didn't you install Qt for VC2013 and not 2012? If so then you need VC2013 compiler.

                        W Offline
                        W Offline
                        wazza
                        wrote on last edited by
                        #13

                        @jsulm Yes it is installed qt for VC2013 I have installed VC2013 with the c++ cl.exe it is just installed in a path labelled C:\Program Files (x86)\Micrsoft Visual Studio 12.0\VC\bin the 12.0 is the version number of VC2013 as 2013 spand two versions 11.0 and 12.0

                        jsulmJ 1 Reply Last reply
                        0
                        • W wazza

                          @jsulm Yes it is installed qt for VC2013 I have installed VC2013 with the c++ cl.exe it is just installed in a path labelled C:\Program Files (x86)\Micrsoft Visual Studio 12.0\VC\bin the 12.0 is the version number of VC2013 as 2013 spand two versions 11.0 and 12.0

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

                          @wazza OK, I saw "I have reinstalled msvs2012".
                          Can you create a simple console project in QtCreator and try to build it (without changing anything)?

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

                          W 2 Replies Last reply
                          1
                          • jsulmJ jsulm

                            @wazza OK, I saw "I have reinstalled msvs2012".
                            Can you create a simple console project in QtCreator and try to build it (without changing anything)?

                            W Offline
                            W Offline
                            wazza
                            wrote on last edited by wazza
                            #15

                            @jsulm yes sorry about that, yes I can do simple console application and it builds and runs without a problem
                            (well except for a missing ; my bad ) also other c++ applications in the examples are ok as well and I have noticed the ones that are not building and giving problems are some of the QML and data visualisation examples
                            i have built some of the qml examples and the build ok

                            1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @wazza OK, I saw "I have reinstalled msvs2012".
                              Can you create a simple console project in QtCreator and try to build it (without changing anything)?

                              W Offline
                              W Offline
                              wazza
                              wrote on last edited by
                              #16

                              @jsulm I have uninstalled everything and just installed VC2015 and then installed qt5.8 MSVS2015 and the examples build and run without issues. it was a whole day operation! but thank you for all the help and the questions you asked helped me to understand the way QT works.

                              mrjjM 1 Reply Last reply
                              0
                              • W wazza

                                @jsulm I have uninstalled everything and just installed VC2015 and then installed qt5.8 MSVS2015 and the examples build and run without issues. it was a whole day operation! but thank you for all the help and the questions you asked helped me to understand the way QT works.

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by mrjj
                                #17

                                @wazza said in New install, Problems compiling some examples:

                                Understand the way QT works.

                                Actually its not really related to Qt but how DLLS works.
                                a DLL contains code, both functions, and classes.
                                To use the classes from another app, then both app and DLL should be compiled with
                                somewhat THE SAME compiler as else it cannot use these classes at all.

                                So that is why
                                Qt2015 MUSt be with VS 2015 compiler
                                or
                                Qt mingw must be with mingw compiler
                                and that Qt 20143 do not work with Vs 2015 :)

                                W 1 Reply Last reply
                                1
                                • mrjjM mrjj

                                  @wazza said in New install, Problems compiling some examples:

                                  Understand the way QT works.

                                  Actually its not really related to Qt but how DLLS works.
                                  a DLL contains code, both functions, and classes.
                                  To use the classes from another app, then both app and DLL should be compiled with
                                  somewhat THE SAME compiler as else it cannot use these classes at all.

                                  So that is why
                                  Qt2015 MUSt be with VS 2015 compiler
                                  or
                                  Qt mingw must be with mingw compiler
                                  and that Qt 20143 do not work with Vs 2015 :)

                                  W Offline
                                  W Offline
                                  wazza
                                  wrote on last edited by
                                  #18

                                  @mrjj I was using QT2013 with VS2013 as I have had vs2013 and vs2012 installed on this machine for over 3 years I used the online installer and it installed qt5.8MSVS2013 kit I had the c++ compiler package installed on both VS packages and I do believe that is where the issues were orriganating. the issue was resolved once I uninstalled the VS packages and Qt I the installed VS2015 with C++ and the offline Qt installer for 5.8 MSVS2015.
                                  when I referred to how qt works I meant how the build process works with the packages his questions forced me to look under the hood so to speak

                                  mrjjM 1 Reply Last reply
                                  1
                                  • W wazza

                                    @mrjj I was using QT2013 with VS2013 as I have had vs2013 and vs2012 installed on this machine for over 3 years I used the online installer and it installed qt5.8MSVS2013 kit I had the c++ compiler package installed on both VS packages and I do believe that is where the issues were orriganating. the issue was resolved once I uninstalled the VS packages and Qt I the installed VS2015 with C++ and the offline Qt installer for 5.8 MSVS2015.
                                    when I referred to how qt works I meant how the build process works with the packages his questions forced me to look under the hood so to speak

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #19

                                    @wazza
                                    Ok :)
                                    I didnt know that "2013 spands two versions 11.0 and 12.0"
                                    Thats good info.

                                    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