Results 1 to 5 of 5

Thread: problem running the compiled console app in Terminal

  1. #1
    Join Date
    Mar 2009
    Posts
    104
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default problem running the compiled console app in Terminal

    I have the following problem using QT 4.5 on Mac OS X 10.5.6

    After compiling the console application and click on "play/run" button, it doesn't open in Terminal.Just appears the path to the file.
    When i make GUI application it works normally.

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem running the compiled console app in Terminal

    Hm, what exactly does happen? What application are you compiling? Does a terminal show up that shows only that path? Or where is it shown? What IDE are you using? Qt Creator? Xcode? Please give us some more information to track down the problem...

  3. #3
    Join Date
    Mar 2009
    Posts
    104
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: problem running the compiled console app in Terminal

    Quote Originally Posted by rexi View Post
    Hm, what exactly does happen? What application are you compiling? Does a terminal show up that shows only that path? Or where is it shown? What IDE are you using? Qt Creator? Xcode? Please give us some more information to track down the problem...
    OT 4.5 on Mac OS X.i use Qcreator.
    The path is shown down at the bottom in QTcreator.
    The terminal doesn't run after compiling console application.
    ???

  4. #4
    Join Date
    Apr 2009
    Posts
    2

    Default Re: problem running the compiled console app in Terminal

    Quote Originally Posted by unix7777 View Post
    OT 4.5 on Mac OS X.i use Qcreator.
    The path is shown down at the bottom in QTcreator.
    The terminal doesn't run after compiling console application.
    ???
    Hi. I have similar problem under linux, with console application. when i run application the path appears in the "Application Output" and also for ex "hello world" output from std::cout command but there no way to send any value trough std::cin command.
    Under windows is the same but there is no problem with external console (terminal)

    is there any way to force qtcreator to use/run external terminal for ex xterm?
    maybe i should add something to .pro file?

    PS: sorry for my English

  5. #5
    Join Date
    Apr 2009
    Posts
    2

    Default Re: problem running the compiled console app in Terminal

    hi again, i found solution for my problem so maybe it will by solution of yours.
    I found out that you must tell qt Creator to run compiled program in console.
    to do that you will need to select check box "run in terminal".
    you need to select project on left sidebar, next highlight your project and chose "Run Settings" bar now tick "run in terminal"
    that's all :]

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  2. running shell command from C++ code problem
    By alex chpenst in forum Qt Programming
    Replies: 4
    Last Post: 31st July 2008, 10:41
  3. getting problem in running qtopia home screen application
    By afgan_rajesh in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 31st January 2008, 07:01
  4. Replies: 7
    Last Post: 15th April 2007, 01:39
  5. Console Program Problem
    By ball in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2006, 09:05

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.