Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem debugging shared and static libs in QT Creator
Forum Updated to NodeBB v4.3 + New Features

Problem debugging shared and static libs in QT Creator

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 7.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sarpin
    wrote on 23 Apr 2013, 11:26 last edited by
    #1

    I have a couple of libraries and I cant seem to get the debugger to step into them or set break points!

    I have just started with QT Creator and as a first step I created three simple projects

    1. A static library with some simple test methods such as - int AddValues(int val1, int val2)
    2. A shared library with some simple methods
    3. A console application to load and test the above libraries.

    It all built OK and the console application runs and exercises the libraries correctly. I.e I get the right results.
    However -

    1. I cannot set break points in the libraries
    2. I cannot step into them (F11).

    I am running on Ubunto 12.10 and I downloaded QT creator from the Ubuntu Software center

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Apr 2013, 11:37 last edited by
      #2

      Hi and welcome to DevNet,

      Do you build your software in debug mode ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sarpin
        wrote on 23 Apr 2013, 11:47 last edited by
        #3

        Yes all three projects are built in debug. I should have mentioned that QT creator is version 2.5.2

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Apr 2013, 12:01 last edited by
          #4

          Are the tree projects separated ? Or is it one that builds the tree different pieces ?

          As a side note it's Qt, QT stands for Apple QuickTime :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sarpin
            wrote on 23 Apr 2013, 12:08 last edited by
            #5

            They are 3 seperate progect within one session.
            I have set each project up so that they all have the same target directory for the binaries.
            ie DESTDIR = ../bin
            for all three

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 23 Apr 2013, 14:45 last edited by
              #6

              Does the Debugger log window show anything ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Sarpin
                wrote on 23 Apr 2013, 15:12 last edited by
                #7

                Yes it shows me quite a bit! But I would say there are no obvious error/warning message there.
                Is there something specifically I should be looking for?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sarpin
                  wrote on 23 Apr 2013, 15:41 last edited by
                  #8

                  Red face time!
                  I thought I was building the two libs in debug mode but when I dug a bit deeper into the build setting I see it was only the test app that was in debug. I have now rebuilt the two libs in debug and success!. I can set and hit break points in them and step into them with the F11 key.
                  Thanks for your help

                  1 Reply Last reply
                  0

                  3/8

                  23 Apr 2013, 11:47

                  topic:navigator.unread, 5
                  • Login

                  • Login or register to search.
                  3 out of 8
                  • First post
                    3/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved