Page 3 of 3 FirstFirst 123
Results 41 to 53 of 53

Thread: How To Redirect The Console Output To A Text Browser/pop Up

  1. #41
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Quote Originally Posted by deekayt View Post
    I want to know that when you started your exe what message did you get. Can you tellme that.
    Exactly the same one that cjpeg.exe outputs to the console when you start it with wrong parameters.

  2. #42
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Well
    Earlier I was compiling after deleting all the refrences to debug from Makefile.And it was compiling . But as you told I now tried
    qmake -project
    qmake
    make -f Makefile.Release

    In the folder test1 I only kept main.cpp as you gave
    and I came up with hordes of compilation error.
    I am not too sure to sort them out as they refer to libraries
    I am enclosing those errors in the error_text_file.txt file attached alongwith.
    Can you tellme the way out.
    Till now my approach of "compiling after deleting all the refrences to debug from Makefile" was cool.
    Attached Files Attached Files

  3. #43
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Quote Originally Posted by deekayt View Post
    make -f Makefile.Release
    Are you sure you did that?

  4. #44
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Sorry
    But even after using make -f Makefile.Release
    I get the same error
    The error file is attached
    Attached Files Attached Files

  5. #45
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    It looks like there's something wrong with your MinGW installation. Can you compile any other Qt applications?

  6. The following user says thank you to jacek for this useful post:

    deekayt (8th December 2006)

  7. #46
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    I also think so
    I can compile all others except the one which you gave
    In fact I am compiling with cjpeg.exe also but that problem of not being able to catch error messages persists.
    I will install again and come back to you.
    Thanks

  8. #47
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Dear JACEK
    I have installed QT again.Now I am ableto compile your main.cpp .
    But the test1.exe doesnot give me any error message
    Can you send me whatever you compiled and ran on your computer.
    The error message expected is attached at cjpeg_error.txt file which I got on command line .
    Attached Files Attached Files

  9. #48
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Quote Originally Posted by deekayt View Post
    But the test1.exe doesnot give me any error message
    Connect something to QProcess::started() signal to check if cjpeg.exe starts.

  10. #49
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Dear JACEK
    Please refer to post 31. The program does start succesfully.
    Can you send me the exe which incorporated cjpeg.exe.

  11. #50
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    I think I know why it works on my system --- I have "CONFIG += console" in my .pro file. The problem is that this cjpeg.exe appears to be a 16-bit executable. Are you sure you can't recompile it?

  12. #51
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    I added "CONFIG+=console". Now when I run the console black window appears and after sometime The eror message appears as

    16 Bit MSODS Subsystem
    c:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application.Choose 'close'to terminate the application

    You are correct the problem is 16 bit v/s 32 bit only
    Recompiling cjpeg.exe is out of question .
    What do I do?
    Why this 16 bit exe otherwise executes through my program since I do get the end results but I am not able to catch the error messages.
    Any way please tell me a way out now since the problem seems to be pinpointed .
    Last edited by deekayt; 10th December 2006 at 02:32. Reason: spelling mistake

  13. #52
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Why is recompiling out of question?

    The problem is that this application seems to be very old and doesn't behave correctly when used with QProcess. The problem is with the cjpeg and not with your Qt application.

  14. #53
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Quote Originally Posted by deekayt View Post
    The eror message appears as
    16 Bit MSODS Subsystem
    c:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application.Choose 'close'to terminate the application
    You can run your application in windows 95 compatibility mode. You can set that when you right-click on the executable and choose Properties (or something similar) from the menu.

    Quote Originally Posted by deekayt View Post
    Recompiling cjpeg.exe is out of question .
    Why? You are not going to change it.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. No output to console
    By Morea in forum Newbie
    Replies: 6
    Last Post: 1st November 2007, 23:51
  3. No console output in Mac OSX using Qt4
    By popoholic in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2006, 02:36

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.