last day (14 days later) » 

2:34 PM
0
A: Configuring Qt Command Prompt

svlasovTo setup your environment using vcvarsall.bat you need to run it like %COMSPEC% /k "C:\path\to\vcvarsall.bat" Few simple steps to build static Qt would be: cd C:\path\to\Qt configure.exe -static -release nmake Explaining how to build static Qt applications is beyond this SO question. Pleas...

 
I've used that link before. I did what was described but the command prompt does not recognize any of the commands (configure, static, release) even after calling vcvarsall.bat my environment does not get setup.
 
Do you find configure.exe in C:\path\to\Qt?
 
There is no executable in the path. Isn't configure just a command for the prompt that allows me begin editing the way Qt is setup?
 
configure.exe is a binary executable that resides in the archive with Qt sources. It's not a system command. Where did you download the sources from? Did you understand that C:\path\to\Qt is the directory where you extracted the archive with Qt sources.
 
I've been searching, there is no executable. Where were you able to find it on your system? I got the sources from the Qt site, I didn't need to extract them though
 
2:34 PM
Where did you download the sources from? How do you extract them?
Well, you have to extract them. For example to root of your drive C:
Or what do you mean that you didn't need to? How so?
 
The installer completed it. I just ran it and Qt installed to the drive
 
I think you confuse Qt SDK with Qt sources package
those are differnt thins
Qt SDK doesn't come with the sources
 
Oh, so what do I need the sources package for in this respect?
 
If you want to build static Qt apps, then yes. you have to build static Qt yourself
for that you need the sources
 
Alright thanks, I was planning on reconfiguring the SDK
I'll try again with the sources, it'll take a while to download at my office.
 
2:41 PM
I haven't used the SDK ever, but there could be an option in the installer to install the sources. So try to run the installer again
or just use the official source archive, it's the best way to go
 
I'll probably try the archives
So with this I can set Qt to static as a default? Also is this why there was no binary executable
 
there is ready static build because you need a license to distribute your static Qt apps
i mean there is no ready build becase...
and the commercial license costs money
 
I understand now, thanks for your help.
 
you will also need to specify in .pro CONFIG += static when building your own apps
 
Already specified.
Thanks again, I have to get back to work now.
 
2:51 PM
Sure, good luck
 

last day (14 days later) »