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. How to debug projects prepared by libtool (autotools) at Qt Creator?

How to debug projects prepared by libtool (autotools) at Qt Creator?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • E Offline
    E Offline
    evorop
    wrote on last edited by
    #1

    My project include library, generated by libtool.
    There is a files

    ====hello_lib_lt/Makefile.am=====

    for hello project

    SUBDIRS = src--

    # === hello_lib_lt/configure.ac ===
    AC_INIT([src/main.c])
    AM_INIT_AUTOMAKE([hello], [0.3])
    AC_PROG_CC
    AC_PROG_LIBTOOL
    AM_CONFIG_HEADER(config.h)
    AC_OUTPUT([Makefile src/Makefile])

    === hello_lib_lt/src/Makefile.am ===

    lib_LTLIBRARIES = libhello.la
    libhello_la_SOURCES = hello.c hello.h
    noinst_PROGRAMS=hello
    hello_SOURCES=main.c
    hello_LDADD = $(top_builddir)/src/libhello.la

    === hello_lib_lt/src/Makefile.am ===

    When I set parameter Project->Run->Executable = /home/evoro/proj/hello_lib_lt/src/hello
    I have message
    "Starting executable failed:
    "/home/evoro/proj/hello_lib_lt/src/hello": not in executable format: "

    When I set parameter Project->Run->Executable = proj/hello_lib_lt/src/.libs/hello
    "I have message /home/evoro/proj/hello_lib_lt/src/.libs/hello: error while loading shared libraries: libhello.so.0: cannot open shared object file: No such file or directory"

    How to debug projects prepared by(using) the libtool (autotools) at Qt Creator?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      evorop
      wrote on last edited by
      #2

      I find that:
      "Debugging executables":http://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.html

      But... How realize "libtool --mode=execute gdb hell" at the Qt Creator for correct debug at visual grafic interface.

      D 1 Reply Last reply
      0
      • E evorop

        I find that:
        "Debugging executables":http://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.html

        But... How realize "libtool --mode=execute gdb hell" at the Qt Creator for correct debug at visual grafic interface.

        D Offline
        D Offline
        DungeonLords
        wrote on last edited by DungeonLords
        #3

        @evorop said in How to debug projects prepared by libtool (autotools) at Qt Creator?:

        But... How realize "libtool --mode=execute gdb hell" at the Qt Creator for correct debug at visual grafic interface.

        The same question... I found this topic... But I can't apply bash script with name libtoolgdb

        #!/bin/bash
        exec libtool --mode=execute /usr/bin/gdb "$@"
        

        libtool sett fail.png

        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