Qt Labs Forum » General discussions

error while Debugging Qt4 projects with Eclipse

(7 posts)
  • Started 1 year ago by ramazangirgin
  • Latest reply from MAkbari

  1. ramazangirgin
    ramazangirgin
    Member

    Hi all,
    I am newbie in Qt. I am using qt4 on pardus(linux). I want develop Qt applications with eclipse. I can run qt project in eclipse normally but when I want to debug my project it gives error like this:
    "Cannot find bounds of current function"
    and
    in console it gives this error and warnings:
    "No source file named main.cpp"

    Warning:
    "Cannot insert breakpoint 0.
    Error accessing memory address 0x0:Input/Output error.

    Is there anybody help me??
    thans in advance.
    Ramazan

    Posted: 1 year #
  2. zy414
    zy414
    Member

    I met the same problem,I install qt 4.3.1 ,eclipse 3.3 for cpp,jdk 1.6u2 in Kubuntu 7.4 ,when I set a breakpoint and debug it ,the same error happend.
    I also met the problem in OpenSuse 10.2 ,the system intsalled QT4.2,JDK 1.5 ,i Installed eclipse 3.3 ,the same error happend?
    have somebody resolved the error?pls tell me.

    Posted: 1 year #
  3. zy414
    zy414
    Member

    In OpenSuse ,I created a C++ project hello world ,not used Qt, the debug is ok.

    Posted: 1 year #
  4. zy414
    zy414
    Member

    I use the QT eclipse RC2.

    Posted: 1 year #
  5. zy414
    zy414
    Member

    just time ,I used Qt Eclipse Integration 1.0 released at 2007/9/26.but the debug error exist also. I set a breakpoint but the programe not stop in the breakpoint ,run across it. the main window diplayed.
    the console said:
    Setting environment variable "USE_FAM" to null value.
    Setting environment variable "FROM_HEADER" to null value.
    Setting environment variable "DESKTOP_STARTUP_ID" to null value.
    No source file named main.cpp.
    Failed to read a valid object file image from memory.
    Stopped due to shared library event
    No source file named main.cpp.
    [Thread debugging using libthread_db enabled]
    [New Thread -1222969648 (LWP 17493)]
    Stopped due to shared library event
    No source file named main.cpp.
    [Switching to Thread -1222969648 (LWP 17493)]
    Single stepping until exit from function main,
    which has no line number information.
    Stopped due to shared library event
    Stopped due to shared library event
    No source file named main.cpp.
    Single stepping until exit from function main,
    which has no line number information.
    Stopped due to shared library event
    Single stepping until exit from function main,
    which has no line number information.

    Posted: 1 year #
  6. zy414
    zy414
    Member

    hi ,I found the problem ,The Qt Eclipse Integration make the release build tartget default ,it can not debug ,you must Builde make target of the debug target in the make targets view ,then debug it .everyting is OK.

    Posted: 1 year #
  7. MAkbari
    MAkbari
    Member

    hi I have this with eclipse and Qt integration, how can i build bebug target

    Posted: 7 months #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.