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. Problem with configuration
Forum Updated to NodeBB v4.3 + New Features

Problem with configuration

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 3 Posters 3.3k 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.
  • A Andrew_M

    It was 4.5.1. If I'm correct, the last stable version. I didn't use compilers- it was not Linux to compile packages. installer made its job and that's all. I do not know, what flies must be there. maybe, reinstall?

    K Offline
    K Offline
    koahnig
    wrote on last edited by
    #8

    @Andrew_M

    Well, Qt creator is only an IDE (Integrated Development Environment) for building applications. It uses Qt libraries as well and installs, but those shall be used only by Qt creator.

    For building your own application you need to install a pre-compiled version of Qt libraries as in
    0_1520864404540_acec1b43-51e3-477b-81d2-abe8e72935ac-image.png

    That the part of the maintenance tool on my machine indicating the components installed. Since I have a German windows installed the text is in German, but it should look the same in other languages.

    As you see I have installed parts of Qt 5.4.2, Qt 5.9.1 and Qt 5.9.2. Those are the Qt libraries.
    Further down you have the tools. There is always fixed the latest version of Qt creator and a couple of compilers. You need to check which compilers are correlating to your pre-compiled Qt lib versions.

    Also it is not recommended to install a complete Qt versions. Better check in there for your preferred compiler and your prefered target OS. It can become quite bulky, when you install everything.

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

    1 Reply Last reply
    4
    • A Offline
      A Offline
      Andrew_M
      wrote on last edited by
      #9

      There are such file: vcredist_msvc2015_x64.exe (and corresponding 32 bit version) What they are for? Should I run it? And I have to say, that it is not the good way to install soft, at least for Win. the installator must be complete and perform all necessary ops itself and doesn't push me to install some additional items to make the installed prog functional

      jsulmJ 1 Reply Last reply
      0
      • A Andrew_M

        There are such file: vcredist_msvc2015_x64.exe (and corresponding 32 bit version) What they are for? Should I run it? And I have to say, that it is not the good way to install soft, at least for Win. the installator must be complete and perform all necessary ops itself and doesn't push me to install some additional items to make the installed prog functional

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

        @Andrew_M The installer is complete and works. You simply need to know what you want to install as the installer can install many Qt versions for many different compilers. It can't decide for you what to install, you as developer need to know that.
        If you don't care about compiler simply install the MinGW Qt - in usually installs and works without any problems and additional configuration (it uses GCC as compiler). If you want to use Visual C++ compiler from Microsoft instead you need to install Visual Studio first and then Qt for that compiler.

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

        1 Reply Last reply
        3
        • A Offline
          A Offline
          Andrew_M
          wrote on last edited by
          #11

          But that's what I did! I choose the last stable version for Win64. But I wanted to make prog with the aid of Qt for another OSes- MacOs, for example. What I missed during installation, if I have no qmake, without which Qt cannot work at all?

          jsulmJ 1 Reply Last reply
          0
          • A Andrew_M

            But that's what I did! I choose the last stable version for Win64. But I wanted to make prog with the aid of Qt for another OSes- MacOs, for example. What I missed during installation, if I have no qmake, without which Qt cannot work at all?

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

            @Andrew_M But you only installed QtCreator, right? You need to install at least one version of Qt itself to use Qt, then you will have qmake. You need to understand the difference between an IDE like QtCreator and a framework like Qt. You can use many different Qt versions in QtCreator.
            If you want to support MacOS then you need to build your app on MacOS, there is no other way (there is no cross compilation possible).
            With frameworks like Qt what you usually do is: you develop on one OS (lets say Windows) and then build your app for all other environments you want to support. For MacOS you need to do this on a Mac, for Linux you can do it on Windows (cross compile) but it is much much easier to build your app directly on Linux (you can use a virtual machine with Linux).

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

            1 Reply Last reply
            2
            • A Offline
              A Offline
              Andrew_M
              wrote on last edited by
              #13

              No! I installed Qt- and QtCeator was there only in one of its subfolders. What I have now in Qt folder: folder dist, Licenses, Tools and vcredist And exe file MaintenanceTool. Inside dist only log file, inside Tools QtCreatof (folder), inside vcredist two exe files: vcredist_msvc2015_x64.exe and similar 32 bit one. That's all.

              K 1 Reply Last reply
              0
              • A Andrew_M

                No! I installed Qt- and QtCeator was there only in one of its subfolders. What I have now in Qt folder: folder dist, Licenses, Tools and vcredist And exe file MaintenanceTool. Inside dist only log file, inside Tools QtCreatof (folder), inside vcredist two exe files: vcredist_msvc2015_x64.exe and similar 32 bit one. That's all.

                K Offline
                K Offline
                koahnig
                wrote on last edited by
                #14

                @Andrew_M

                What is the Qt version you have installed?
                Which compiler is this version for?

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

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Andrew_M
                  wrote on last edited by
                  #15

                  4.5.1.0 And I do not see, what you mean about the version of a compiler. I didn't use compilers during installation. A compiler can be chosen later when you are configuring the project. At that very time, when you choose debugger, target OS and so on.

                  K 1 Reply Last reply
                  0
                  • A Andrew_M

                    4.5.1.0 And I do not see, what you mean about the version of a compiler. I didn't use compilers during installation. A compiler can be chosen later when you are configuring the project. At that very time, when you choose debugger, target OS and so on.

                    K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #16

                    @Andrew_M

                    So you basically installed only a tool. This tool is the Qt creator, which allows toedit some files. That's it. Nothing more is possible.

                    Did you read this reply

                    @koahnig said in Problem with configuration:

                    @Andrew_M

                    Well, Qt creator is only an IDE (Integrated Development Environment) for building applications. It uses Qt libraries as well and installs, but those shall be used only by Qt creator.

                    For building your own application you need to install a pre-compiled version of Qt libraries as in
                    0_1520864404540_acec1b43-51e3-477b-81d2-abe8e72935ac-image.png

                    That the part of the maintenance tool on my machine indicating the components installed. Since I have a German windows installed the text is in German, but it should look the same in other languages.

                    As you see I have installed parts of Qt 5.4.2, Qt 5.9.1 and Qt 5.9.2. Those are the Qt libraries.
                    Further down you have the tools. There is always fixed the latest version of Qt creator and a couple of compilers. You need to check which compilers are correlating to your pre-compiled Qt lib versions.

                    Also it is not recommended to install a complete Qt versions. Better check in there for your preferred compiler and your prefered target OS. It can become quite bulky, when you install everything.

                    or any of the other replies?

                    Here is an example of chosen pre-builds for Qt version 5.9.2

                    0_1520969920438_05a58112-d895-496a-8836-8563af920afa-image.png

                    This setup allows to build applications for windows desktop and two variants of Android. All choices you have there are so-called pre-builds for the most common setups. More setups are possible, but you have to compile on your own.

                    Even when installing some of the pre-builds you need to make sure that you are getting also the correct compiler installed.

                    When you like to use Qt libraries and Qt creator on Mac-OS or different Linux variants, it is typically easier to usea Virtual machine with the installed operation system and install Qt and its components there as well. Cross-compilation from Windows to Linux and vice versa is possible, but typically not straight forward. I am not sure if you actually can do a cross-compilation for Mac-OS.

                    Qt creator is an IDE which is visually the same on Windows and linux. Therefore, it helps to recompile on another OS.

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

                    1 Reply Last reply
                    2
                    • A Offline
                      A Offline
                      Andrew_M
                      wrote on last edited by
                      #17

                      Well, I'll try to reinstall Qt using the installer which I already downloaded. My OS is Win64 and what I need is to create the executable file for MacOS here, at my own comp. Course, I won't be able to test it without virtual OS.

                      jsulmJ 1 Reply Last reply
                      0
                      • A Andrew_M

                        Well, I'll try to reinstall Qt using the installer which I already downloaded. My OS is Win64 and what I need is to create the executable file for MacOS here, at my own comp. Course, I won't be able to test it without virtual OS.

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

                        @Andrew_M I already told you that you cannot create executables for MacOS on Windows/Linux, you need a Mac with MacOS for that. Do you actually read what others are writing?
                        And please think about difference between QtCreator (IDE) and Qt (framework). You claim you installed Qt, but you only installed QtCreator.
                        There is no need to reinstall anything. Simply use c:\MaintenanceTool.exe and select a Qt version for the compiler you want to use.

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

                        1 Reply Last reply
                        2

                        • Login

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