Results 1 to 13 of 13

Thread: How to code an App that will build QT projects

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to code an App that will build QT projects

    If you now try to execute
    Qt Code:
    1. C:\Qt\2010.01\qt\qmake\qmake.exe C:\where\your\project\is\MyProject.pro -spec C:\Qt\2010.01\qt\mkspecs\win32-g++
    To copy to clipboard, switch view to plain text mode 
    via a QProcess, you'll notice that the makefile will be generated, but in the folder of your application exe.

    If you set the OBJECTS_DIR variable, you can specify where the code should be build.

    I guess you'll get into trouble running make from a QProcess too. I don't know how you can cd to a specific directory inside a QProcess object.

    Edit: Maybe using void QProcess::setWorkingDirectory ( const QString & dir )

  2. The following user says thank you to tbscope for this useful post:

    locke (24th August 2010)

Similar Threads

  1. Replies: 1
    Last Post: 15th June 2010, 13:25
  2. Replies: 1
    Last Post: 13th January 2010, 23:35
  3. new projects ???
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 0
    Last Post: 2nd March 2009, 10:21
  4. build code using vs 2005
    By arunredi in forum Installation and Deployment
    Replies: 3
    Last Post: 14th May 2008, 18:42

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
  •  
Qt is a trademark of The Qt Company.