How to debug projects prepared by libtool (autotools) at Qt Creator?
-
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?
-
I find that:
"Debugging executables":http://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.htmlBut... How realize "libtool --mode=execute gdb hell" at the Qt Creator for correct debug at visual grafic interface.