Results 1 to 6 of 6

Thread: Basic questions to debugging

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2011
    Location
    Jena, Germany
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Basic questions to debugging

    Quote Originally Posted by ChrisW67 View Post
    Since no human is going to keep up with 1000+ samples/second anyway, you should consider capturing the data every cycle but only redrawing the plot every 500 samples or the like.
    I implemented something similar already, so replotting efforts are minimized, problem vanished!

    Quote Originally Posted by ChrisW67 View Post
    To debug your code using Qwt components does not require a debug Qwt:
    This is what I want to do. Writing my own program using Qwt classes. Then I want to debug the whole thing.

    Quote Originally Posted by ChrisW67 View Post
    to debug Qwt code does.
    Where is the difference? Or would this mean debugging the Qwt libraries and stuff?? I wouldn't dare, should I? So according to my goal outlined above, I still assume that I don't need to make a debug vesion of Qwt in order to be able to debug code that uses Qwt classes. But: If I do so, I get the error messages already mentioned:

    :: error: cannot find -lqwtd
    :: error: collect2: ld returned 1 exit status

    Quote Originally Posted by ChrisW67 View Post
    Your build of the debug Qwt looks OK
    Which build? I just asked if this is the way I would have to build it. But if I don't need to...(see above). But maybe I got this whole thing wrong again and I am supposed to build the debug version, otherwise I will not get rid of the errors??

    I really would like to add these lines to my .pro file, because it looks clear and obvious:
    Qt Code:
    1. CONFIG(release, debug|release) {
    2. message(Release build!)
    3. LIBS+=-Lc:/qwt-6.0.1/bin -lqwt
    4. ...
    5. }
    6. CONFIG(debug, debug|release) {
    7. message(Debug build!)
    8. LIBS+=-Lc:/qwt-6.0.1/bin -lqwtd
    9. ...
    10. }
    To copy to clipboard, switch view to plain text mode 

    But I don't have a /bin-folder!!! Should this observation tell me something? Does it tell you something about my installation or mental condition?

    I hope for the first...
    Thank you Chris for your patience so far...

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Basic questions to debugging

    If you need to single step through your code code then your code must be built with debug symbols. As you step through your code and it enters Qwt functions in the library you will either:
    • See a low level disassembly of the release mode Qwt library routine, or
    • A high level source code view of the debug mode Qwt library routine. (The source is embedded in the library to enable this.)

    It seems unlikely that you want/need to debug the Qwt code. You can Step Over the Qwt calls to avoid the disassembly.

    I am not intimately familiar with Windows Qwt builds. I assumed that the debug mode Qwt library would follow the same convention as the Qt libraries; appending a 'd' so that release and debug can exist side-by-side. If the debug library gets the same name, i.e. qwt.dll, then you are better off building release mode and installing into Path A, and debug mode installed into Path B and adjust INCLUDEPATH and LIBS accordingly.

    I also assumed a directory structure. You will have to adjust paths to suit what has actually happened on your machine.

  3. The following user says thank you to ChrisW67 for this useful post:

    emigrand (16th March 2012)

Similar Threads

  1. Replies: 3
    Last Post: 6th September 2010, 23:00
  2. Game programming basic questions?
    By unix7777 in forum Newbie
    Replies: 3
    Last Post: 20th February 2010, 17:16
  3. 2 basic questions?
    By unix7777 in forum Newbie
    Replies: 5
    Last Post: 28th January 2010, 09:44
  4. Basic Qt Questions
    By BalaQT in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2009, 17:13
  5. a basic questions!!
    By unix7777 in forum Newbie
    Replies: 1
    Last Post: 28th March 2009, 19:10

Tags for this Thread

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.