mardi 11 août 2020

Unable to debug with this Makefile

I have the following Makefile and exe file doesn't allow me to debug with

No symbol table is loaded.  Use the "file" command.

What could be wrong?

APP:= CTCGreddyDecoder

TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)
CXX:= g++

LIB_INSTALL_DIR?=/usr/lib/

ifeq ($(TARGET_DEVICE),aarch64)
  CFLAGS:= -DPLATFORM_TEGRA
endif

SRCS:= $(wildcard *.cpp)

INCS:= $(wildcard *.h)


OBJS:= $(SRCS:.c=.o)

CFLAGS+= -I /usr/local/include

LIBS+= -L$(LIB_INSTALL_DIR) 

all: $(APP)

%.o: %.c $(INCS) Makefile
    $(CXX) -c -g -o $@ $(CFLAGS) $<

$(APP): $(OBJS) Makefile
    $(CXX) -o $(APP) $(OBJS) $(LIBS)

install: $(APP)
    cp -rv $(APP) 

clean:
    rm -rf $(APP)

EDIT: When file command was used.

file CTCGreddyDecoder 
CTCGreddyDecoder: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=ccc6a10bf4fc6543c54865e07e98c59bdcef1e13, not stripped

Aucun commentaire:

Enregistrer un commentaire