PDA

View Full Version : About QT5.2 Static Compilation



zRyan
18th February 2014, 18:41
I have read through the tutorial at:

http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW

and download the script :
Download and run, all done
Download the script named windows-build-qt-static.ps1 [sourceforge.net] and execute it.

However, the script is running with error:

Split-Path : Cannot find drive. A drive with the name 'http' does not exist.
At C:\windows-build-qt-static.ps1:98 char:32
+ $QtSrcFileName = Split-Path <<<< -Leaf $QtSrcUrl
+ CategoryInfo : ObjectNotFound: (http:String) [Split-Path], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SplitP athCommand

and some others. When I look into the code, it is just a url that is used for downloading another file.

Did anybody experienced a similar problem? Many thanks for the help.

ChrisW67
19th February 2014, 20:19
Are you sure you are using Powershell 3 and not 2? The older version fails in this fashion if the drive does not exist locally. Split-Path is designed for file paths not Urls, sot he "drive" letter is "http:".