www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - "How to set up QTD?".

reply "vmars316" <vmars316 live.com> writes:
Greetings,
I would also like to try out QTD.

So far, I have set things up this:
C:\D\dmd2\QT

I made a .batch file for both drcc.exe and duic.exe .
duic.exe gave no feedback.

drcc.exe gave the following feedback:

C:\D\dmd2\QT\bin>ECHO ON

C:\D\dmd2\QT\bin>drcc.exe
Qt resource compiler
Usage: drcc.exe  [options] <inputs>

Options:
   -o file                write output to file rather than stdout
   -name name             create an external initialization 
function with name
   -threshold level       threshold to consider compressing files
   -compress level        compress input files by level
   -root path             prefix resource access path with root 
path
   -no-compress           disable all compression
   -no-static-initialize  disable automatic initialization of 
resources with prog
ram start
   -binary                output a binary file for use as a 
dynamic resource
   -namespace             turn off namespace macros
   -project               Output a resource file containing all
                          files from the current directory
   -version               display version
   -help                  display this information

C:\D\dmd2\QT\bin>REM C:\D\dmd2\windows\bin\dmd.exe

C:\D\dmd2\QT\bin>pause
Press any key to continue . . .

Pls, do I need to re-do file/Folder placement?
Also, do I need to create .bat files for every .d I want to 
compile?
Can someone show me how to get qtd running?

Thanks...Vernon
Apr 08 2012
parent reply Kevin Cox <kevincox.ca gmail.com> writes:
On Apr 8, 2012 10:59 PM, "vmars316" <vmars316 live.com> wrote:
 Greetings,
 I would also like to try out QTD.

 So far, I have set things up this:
 C:\D\dmd2\QT

 I made a .batch file for both drcc.exe and duic.exe .
 duic.exe gave no feedback.

 drcc.exe gave the following feedback:

 C:\D\dmd2\QT\bin>ECHO ON

 C:\D\dmd2\QT\bin>drcc.exe
 Qt resource compiler
 Usage: drcc.exe  [options] <inputs>

 Options:
  -o file                write output to file rather than stdout
  -name name             create an external initialization function with
name
  -threshold level       threshold to consider compressing files
  -compress level        compress input files by level
  -root path             prefix resource access path with root path
  -no-compress           disable all compression
  -no-static-initialize  disable automatic initialization of resources
with prog
 ram start
  -binary                output a binary file for use as a dynamic resource
  -namespace             turn off namespace macros
  -project               Output a resource file containing all
                         files from the current directory
  -version               display version
  -help                  display this information

 C:\D\dmd2\QT\bin>REM C:\D\dmd2\windows\bin\dmd.exe

 C:\D\dmd2\QT\bin>pause
 Press any key to continue . . .

 Pls, do I need to re-do file/Folder placement?
 Also, do I need to create .bat files for every .d I want to compile?
 Can someone show me how to get qtd running?

 Thanks...Vernon
I think rcc is the Qt resource compiler. I'm not at my computer at the moment to check, but if so it will translate xml resource files into D source.
Apr 09 2012
parent reply "vmars316" <vmars316 live.com> writes:
On Monday, 9 April 2012 at 12:52:47 UTC, Kevin Cox wrote:

 I think rcc is the Qt resource compiler.  I'm not at my 
 computer at the
 moment to check, but if so it will translate xml resource files 
 into D
 source.
"I think rcc is the Qt resource compiler." I don't know what the above means. What are its implications? Is my setup ok?: C:\D\dmd2\QT Or do I need to dump 'QT Folder' into 'drcc.exe Folder'? Also, do I need to create '*.bat' files for every '*.d' I want to edit/compile? Pls, what would that .bat file look like? Could someone show me a working cmd-line for the .bat file? Do I need to specify 'environmental-variables'? Thanks a lot for your helps...Vernon
Apr 09 2012
parent Kevin Cox <kevincox.ca gmail.com> writes:
On Apr 9, 2012 12:09 PM, "vmars316" <vmars316 live.com> wrote:
 On Monday, 9 April 2012 at 12:52:47 UTC, Kevin Cox wrote:

 I think rcc is the Qt resource compiler.  I'm not at my computer at the
 moment to check, but if so it will translate xml resource files into D
 source.
"I think rcc is the Qt resource compiler." I don't know what the above means. What are its implications? Is my setup ok?: C:\D\dmd2\QT Or do I need to dump 'QT Folder' into 'drcc.exe Folder'? Also, do I need to create '*.bat' files for every '*.d' I want to
edit/compile?
 Pls, what would that .bat file look like?
 Could someone show me a working cmd-line for the .bat file?
 Do I need to specify 'environmental-variables'?

 Thanks a lot for your helps...Vernon
Qt as quite extensive documentation. Look into the documents about compiling projects. It is not a 1 to 1 translation but the workflow is the same.
Apr 09 2012