Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] How can I add a compiler?
Forum Updated to NodeBB v4.3 + New Features

[Solved] How can I add a compiler?

Scheduled Pinned Locked Moved Installation and Deployment
30 Posts 3 Posters 15.5k 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.
  • RelaR Rela

    Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

    I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

    O Offline
    O Offline
    onek24
    wrote on last edited by
    #20

    @Rela said:

    Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

    I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

    If you read it again you'll see that it isn't msvc2013 only. It has also packages for msvc2012 and msvc2010! It has also msvc OpenGL packages - which you won't need now(i guess).

    I would take the newest:

    • msvc2013 32-bit
    • msvc2013 64-bit

    Select the ones without OpenGL.

    RelaR 1 Reply Last reply
    0
    • RelaR Rela

      Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

      I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

      O Offline
      O Offline
      onek24
      wrote on last edited by
      #21

      @Rela

      To understand the precompiled-package part you might want to check out this wikipedia-link:

      Dynamic-link library

      Just read it a bit and it might explain you the purposes of Dynamic-linked libraries(DLL). The precompiled-package contains DLLs. :)

      1 Reply Last reply
      0
      • O onek24

        @Rela said:

        Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

        I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

        If you read it again you'll see that it isn't msvc2013 only. It has also packages for msvc2012 and msvc2010! It has also msvc OpenGL packages - which you won't need now(i guess).

        I would take the newest:

        • msvc2013 32-bit
        • msvc2013 64-bit

        Select the ones without OpenGL.

        RelaR Offline
        RelaR Offline
        Rela
        wrote on last edited by
        #22

        @onek24

        Thanks onek24. I just chose 2013 ones without OpenGL, now it works.
        The MinGW was among the removed components when I was installing Qt, since It took a lot of space, I removed some of them.

        I am working with Qt5.4 vertsion and MinGW compiler now, but could you please tell me if I want to develop interface for the algorithm in MVS 2010 later, what I need to do? I think one way is installing MVS2013, but if I want to keep MVS2010 what the other option is?

        O 1 Reply Last reply
        0
        • RelaR Rela

          @onek24

          Thanks onek24. I just chose 2013 ones without OpenGL, now it works.
          The MinGW was among the removed components when I was installing Qt, since It took a lot of space, I removed some of them.

          I am working with Qt5.4 vertsion and MinGW compiler now, but could you please tell me if I want to develop interface for the algorithm in MVS 2010 later, what I need to do? I think one way is installing MVS2013, but if I want to keep MVS2010 what the other option is?

          O Offline
          O Offline
          onek24
          wrote on last edited by
          #23

          @Rela

          You're welcome. Afaik you don't need MSVC if you work with the MinGW compiler. If you installed Visual Studio and the corresponding MSVC-Package in the MaintenanceTool, then you can compile with the MSVC compiler.

          I'm sorry but i'm currently not understanding in what form the algorithm is. Do you have the source-code or what is it? Please explain a little bit further.

          RelaR 1 Reply Last reply
          0
          • O onek24

            @Rela

            You're welcome. Afaik you don't need MSVC if you work with the MinGW compiler. If you installed Visual Studio and the corresponding MSVC-Package in the MaintenanceTool, then you can compile with the MSVC compiler.

            I'm sorry but i'm currently not understanding in what form the algorithm is. Do you have the source-code or what is it? Please explain a little bit further.

            RelaR Offline
            RelaR Offline
            Rela
            wrote on last edited by
            #24

            @onek24

            The code is in C++, and I have installed MVS2010.

            In Qt, when I go to tools>options>compilers these MVS2013 are shown:link
            My question was that if I want to have a GUI for my code is it possible to work with MinGW as a compiler or I need to install MVS20103?

            1 Reply Last reply
            0
            • O Offline
              O Offline
              onek24
              wrote on last edited by onek24
              #25

              So your algorithm is just c++ code you want to implement? Since Qt can detect your compilers, you have already installed MSVC. Please go to the section "kits" in the "settings" -> "build & run" and show me whats listed. If you can find something named "Desktop MSVC"(or something like that) then you can compile with the msvc compiler. If you go to the bottom left, you can see "Bucky 4" and below it "Debug". Click on it and select MSVC if you can find it. If you can't, then go to "Projects" in the big left menue and add the Kit "MSVC".

              RelaR 1 Reply Last reply
              1
              • O Offline
                O Offline
                onek24
                wrote on last edited by onek24
                #26

                @JKSH said:

                One thing to keep in mind: The different versions of MSVC are incompatible. If the Qt DLLs are built with MSVC 2010, then you cannot use those DLLs with MSVC 2012.
                Since the user wants to use MSVC 2010, he will need to download the binaries built with MSVC 2010.

                But if you've got just c++ code, then you maybe can compile it with a newer MSVC without problems.

                1 Reply Last reply
                0
                • O onek24

                  So your algorithm is just c++ code you want to implement? Since Qt can detect your compilers, you have already installed MSVC. Please go to the section "kits" in the "settings" -> "build & run" and show me whats listed. If you can find something named "Desktop MSVC"(or something like that) then you can compile with the msvc compiler. If you go to the bottom left, you can see "Bucky 4" and below it "Debug". Click on it and select MSVC if you can find it. If you can't, then go to "Projects" in the big left menue and add the Kit "MSVC".

                  RelaR Offline
                  RelaR Offline
                  Rela
                  wrote on last edited by
                  #27

                  @onek24

                  Yes, the code is C++. My problem from the beginning was that I couldn’t run using MSVC.
                  Here is the “Kits”:Kits
                  Here is “Debug” options:Debug

                  When I click on MSVC2013, it gives the same compiler error.
                  I think because my installed MVS is 2010, and this Qt works with MVS 2013. But just I wanted to be sure that it is possible to work with MinGW as a compiler for my GUI of C++ code or I need to install MVS2013?

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    onek24
                    wrote on last edited by
                    #28

                    @Rela

                    Okay, run the MaintenanceTool and select the MSVC2010 packages. Install them and afterwards try again. WIth that you should be able to compile with MSVC2010. Otherwise you might try installing MSVC2013 from the windows site and compile it with MSVC2013. I - personally - don't like MinGW, but you could try compiling your algorithm-code with MinGW, i can't tell if it will work since i don't know the code.

                    RelaR 1 Reply Last reply
                    1
                    • O onek24

                      @Rela

                      Okay, run the MaintenanceTool and select the MSVC2010 packages. Install them and afterwards try again. WIth that you should be able to compile with MSVC2010. Otherwise you might try installing MSVC2013 from the windows site and compile it with MSVC2013. I - personally - don't like MinGW, but you could try compiling your algorithm-code with MinGW, i can't tell if it will work since i don't know the code.

                      RelaR Offline
                      RelaR Offline
                      Rela
                      wrote on last edited by
                      #29

                      @onek24

                      Thanks.
                      I selected the MSVC2010 32-bit OpenGL from the list in Maintenance toll, then in Projects I selected "Desktop Qt 5.4.2 MSVC2010 OpenGL 32bit" in "Add Kit" list, run and build it, and ran the program and it worked. Build & Run
                      I hope it works later with my code also, but does it matter my computer is 64 bit?

                      O 1 Reply Last reply
                      0
                      • RelaR Rela

                        @onek24

                        Thanks.
                        I selected the MSVC2010 32-bit OpenGL from the list in Maintenance toll, then in Projects I selected "Desktop Qt 5.4.2 MSVC2010 OpenGL 32bit" in "Add Kit" list, run and build it, and ran the program and it worked. Build & Run
                        I hope it works later with my code also, but does it matter my computer is 64 bit?

                        O Offline
                        O Offline
                        onek24
                        wrote on last edited by onek24
                        #30

                        @Rela said:

                        Thanks.
                        I selected the MSVC2010 32-bit OpenGL from the list in Maintenance toll, then in Projects I selected "Desktop Qt 5.4.2 MSVC2010 OpenGL 32bit" in "Add Kit" list, run and build it, and ran the program and it worked. Build & Run
                        I hope it works later with my code also, but does it matter my computer is 64 bit?

                        You're welcome. Well, it shouldnt. You can run 32-bit and 64-bit applications on a 64-bit machine, but only 32-bit applications on a 32-bit machine. If your code is explicitely designed to work with 64-bit(using 64-bit integers or whatever), than it might not work with 32-bit. On the other hand, if it works with 32-bit, than it will work with 64-bit.

                        1 Reply Last reply
                        1

                        • Login

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