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. Help on buildind to Windows 10
Forum Update on Monday, May 27th 2025

Help on buildind to Windows 10

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 4 Posters 2.1k Views
  • 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.
  • C Offline
    C Offline
    carlos ranoya
    wrote on 5 May 2017, 19:15 last edited by
    #1

    Hi, guys.

    I'm i developer from a company that is actually porting some codes from actionscript and java to C++, and we recently have choosen Qt.

    I've already installed Qt Creator at some machines: in Mac and Windows 7 it´s working ok, very nice. But in some Windows 10 machines, even with fresh OS install, I can´t neither run the simplest console application:

    #include <QCoreApplication>

    int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv);
    return a.exec();
    }

    This error always happens:

    Starting C:\Users\carlo\OneDrive\Documentos\build-untitled2-Desktop_Qt_5_9_0_MinGW_32bit-Debug\debug\untitled2.exe...
    The program has unexpectedly finished.
    C:\Users\carlo\OneDrive\Documentos\build-untitled2-Desktop_Qt_5_9_0_MinGW_32bit-Debug\debug\untitled2.exe crashed.

    I llok at some forums, and many people thinks that it seems to be caused by an abscence of some dll file.

    Well, I'd appreciate it for some help.

    Thanks a lot.

    1 Reply Last reply
    0
    • H Online
      H Online
      hskoglund
      wrote on 5 May 2017, 19:19 last edited by
      #2

      Hi, just a quick guess, but try placing your program somewhere else than in the OneDrive folder.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        carlos ranoya
        wrote on 5 May 2017, 19:31 last edited by
        #3

        Thanks for the reply.

        At this machine, i'm using the OneDrive folder.

        But the same occurs at other installations at 2 other Windows 10 PCs. In both cases, the projects are located at "normal" folders.

        1 Reply Last reply
        0
        • H Online
          H Online
          hskoglund
          wrote on 5 May 2017, 19:33 last edited by
          #4

          Ok another quick guess: have you tried building in Release instead of Debug?

          1 Reply Last reply
          1
          • C Offline
            C Offline
            carlos ranoya
            wrote on 5 May 2017, 20:00 last edited by
            #5

            I´ve just tried Released and the machine crashed (freezed).

            I tried at other machine, the same code.

            The console window doens´t present the QCoreApplication standard message. Nothing happens. Both release and debug.

            When a close console, it returns this error:

            C:\Users\cranoya\Documents\build-untitled2-Desktop_Qt_5_9_0_MinGW_32bit-Release\release\untitled2.exe exited with code -1073741510

            1 Reply Last reply
            0
            • C Offline
              C Offline
              carlos ranoya
              wrote on 5 May 2017, 20:21 last edited by
              #6

              I've tried again at the crashed PC and release built worked.

              The console window shows the message "Press <RETURN> to close this window..."

              But debugg built still not works....

              1 Reply Last reply
              0
              • X Offline
                X Offline
                Xyrer
                wrote on 5 May 2017, 21:40 last edited by
                #7

                Are you trying just to run the app you created, or are you trying to develop on all those machines?
                If going for just running it, have you gone thru the windeployqt command?

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  carlos ranoya
                  wrote on 6 May 2017, 21:50 last edited by
                  #8

                  Hi Xyrer.

                  I'm just trying a very simple thing: I install Qt Creator, crete a new project (console application), press the "build and run" button, and this happens. I did it many times (including reinstalling Qt) and the same happens in two of my PCs.

                  With my Windows 7 PC at home i'm working fine (i'm working with Qt just now). With my parter's Mac it's ok too.

                  I don't know if it's a coincidence, by these two Windows 10 PCs are giving the this headache...

                  Thanks for replying.

                  J 1 Reply Last reply 7 May 2017, 06:27
                  0
                  • C carlos ranoya
                    6 May 2017, 21:50

                    Hi Xyrer.

                    I'm just trying a very simple thing: I install Qt Creator, crete a new project (console application), press the "build and run" button, and this happens. I did it many times (including reinstalling Qt) and the same happens in two of my PCs.

                    With my Windows 7 PC at home i'm working fine (i'm working with Qt just now). With my parter's Mac it's ok too.

                    I don't know if it's a coincidence, by these two Windows 10 PCs are giving the this headache...

                    Thanks for replying.

                    J Offline
                    J Offline
                    JKSH
                    Moderators
                    wrote on 7 May 2017, 06:27 last edited by
                    #9

                    @carlos-ranoya said in Help on buildind to Windows 10:
                    I install Qt Creator, crete a new project (console application), press the "build and run" button, and this happens.

                    What do you see if you click "Start Debugging" instead of "Build and Run" (using a Debug build)?

                    Also, which version of Qt did you install on each PC? Are they all Qt 5.9.0 for MinGW 32-bit?

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    0

                    4/9

                    5 May 2017, 19:33

                    • Login

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