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
QtWS25 Last Chance

Problem debugging shared and static libs in QT Creator

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 7.8k Views
  • 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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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 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 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

                  • Login

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