Results 1 to 2 of 2

Thread: Can't build project on Windows 10

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2021
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Can't build project on Windows 10

    I've been working on a minesweeper game using QT Creator in my linux desktop.
    qtcreator 4.13.2 on fedora workstation v33

    I decided to see what the game looks like on Windows so I downloaded QT creator (v 5.15.2) into my Windows 10 virtual machine. I mounted my linux project directory in a shared folder and attempted to build the project. It acts like it's building ok with green progress bars on the lower right but then stops with a red "Build" progress bar. The compile output page shows this:

    19:00:15: Running steps for project KCMines...
    19:00:15: Starting: "C:\Qt\6.1.3\mingw81_64\bin\qmake.exe" Y:\KCMines.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    Cannot read Y:/build-KCMines-Desktop_Qt_6_1_3_MinGW_64_bit-Debug/KCMines.pro: No such file or directory
    Error processing project file: Y:\KCMines.pro
    19:00:15: The process "C:\Qt\6.1.3\mingw81_64\bin\qmake.exe" exited with code 3.
    Error while building/deploying project KCMines (kit: Desktop Qt 6.1.3 MinGW 64-bit)
    When executing step "qmake"
    19:00:15: Elapsed time: 00:00.

    The share mounted virtual drive is Y:. The directory seems to be mounted correctly and all my files show up; including Y:\KCMines.pro which I'm attempting to build. The path to the build directory is wrong. It should be: Y:\KCMines\build-KCMines-Desktop_Qt_6_1_3_MinGW_64_bit-Debug. The directory got built but qmake is getting the wrong path from somewhere.

    Any ideas?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,239
    Thanks
    303
    Thanked 865 Times in 852 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Can't build project on Windows 10

    You need to configure the build settings under Projects in Qt Creator so it uses your preferred directories. The names you show above look like the default names it chooses based on the compiler version.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 0
    Last Post: 25th June 2017, 12:51
  2. Qt 4.6.2 build a project
    By Robix in forum Newbie
    Replies: 3
    Last Post: 19th April 2016, 13:30
  3. Qt Creator How do I build project in current directory on Windows?
    By Coolname007 in forum Qt Tools
    Replies: 2
    Last Post: 5th October 2012, 03:48
  4. Replies: 2
    Last Post: 3rd October 2011, 23:04
  5. Cant build Qt project
    By ChrisBuchholz in forum Installation and Deployment
    Replies: 7
    Last Post: 20th July 2010, 23:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.