Results 1 to 5 of 5

Thread: Debugging with custom libs

  1. #1
    Join Date
    May 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Debugging with custom libs

    Hi everybody,

    until last week I used Qt4.7.4 on Opensuse 11.4.
    Everything works well.
    For company reasons I had to change to SLED11 SP1.
    If I try now to debug my programs in QtCreator I get the error message undefined symbol: _ZN9QListData11detach_growEPii.
    ldd -r prog_name returns
    undefined symbol: _ZN9QListData11detach_growEPii
    undefined symbol: _ZN9QListData6detachEi

    Any suggestions?
    regards Peter

  2. #2
    Join Date
    May 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debugging with custom libs

    I found the advise to recompile the QT libraries.

    Well, I successfully recompiled the qt 4.7.4. libraries.
    But the same error message appeared.
    After this I started to create my project new.
    Created a mainwindow -> I could step through the code with the debugger.
    Added 2 group boxes -> everything was OK.
    Added 2 push buttons -> everything was OK.
    Added a combo box -> still everything was OK.
    Inserted some items into the combo box ->> the application crashed with the error message.

    What is wrong????

  3. #3
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Debugging with custom libs

    Do you use static or dynamic linking?

  4. #4
    Join Date
    May 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debugging with custom libs

    I use dynamic linking

  5. #5
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Debugging with custom libs

    You say that it happend when you try to debug the app.
    Does the same happen when you run the app in release mode?
    What about running it from command line?

    Do you ship qt libs compiled by yourself or do you depend on the libs included in the distro?
    I've read somewhere that libs included in the distro may cause some problems after update to newer version but can't recall where I read that.

Similar Threads

  1. Replies: 3
    Last Post: 6th September 2010, 23:00
  2. deploying centrally custom-build Qt libs to different developer PCs
    By tangens in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd May 2010, 12:33
  3. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  4. Linking against different Libs
    By AlphaWolf in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2009, 15:25
  5. use libs under qt4
    By raphaelf in forum Qt Programming
    Replies: 6
    Last Post: 27th February 2006, 17:59

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.