简体   繁体   中英

nmake Won't Work - Qt

I am trying to deploy my project(built with Qt Creator) into a single, static executable(Windows). I am having trouble doing this, even though I feel like I am following the Qt tutorial exactly.

The tutorial I am following: http://qt-project.org/doc/qt-4.8/deployment-windows.html

First, I open the Qt Command Promt, and enter 'configure -static'. Just to ensure I am doing EVERYTHING correct, I am even showing the command prompt I am using.

I go through the 'configure' steps, and this is my output.

After entering the 'configure -static' command, I get this as the output. (put on Pastie to keep this clean).

http://pastie.org/3580144

I then enter 'nmake sub-src', and get this as the output:

C:\Qt\4.8.0>nmake sub-src

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd ..\..\src\tools\bootstrap\ && c:\Qt\4.8.0\bin\qmake.exe \src\tools\bootstrap\bootstrap.pro -o Makefile
Cannot find file: \src\tools\bootstrap\bootstrap.pro.
NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.

C:\Qt\4.8.0>

I get this same output even if I just command 'nmake'. I have the Qt SDK installed, and I have no idea what to do at this point as I've Googled everything. Thanks for any help, Hetelek.

It's that leading slash on the file path - it makes the file path "absolute." SO nmake is looking for the file:

C:\\src\\tools\\bootstrap\\bootstrap.pro

but your file is actually saved as:

C:\\Qt\\4.8.0\\src\\tools\\bootstrap\\bootstrap.pro

Now, I'm not sure how to configure nmake to use the right path, but that's your problem right there. And if all else fails, you can always move your src folder to the root of your C drive so it's where nmake expects it to be.

Hope that helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM