Hi, I am working on a project to make a Fimware file (IMG) for tablet Thread building-a-img-file-for-tablet-rockchip-3066.51543 I found some tools on github:
https://github.com/neo-technologies/rockchip-mkbootimg
I have some problems when I try compile the source:
Makefile
I try to edit make file to include -lmd option but it doesn't affect the process the same error is showing
https://github.com/neo-technologies/rockchip-mkbootimg
I have some problems when I try compile the source:
make
Code:
cc -O2 -pipe img_maker.c -o img_maker
/tmp/img_maker-bd0c1f.o: In function `append_md5sum':
img_maker.c:(.text+0x120): undefined reference to `MD5_Init'
img_maker.c:(.text+0x175): undefined reference to `MD5_Update'
img_maker.c:(.text+0x190): undefined reference to `MD5_Final'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make: stopped in /usr/home/alberto/Downloads/temp/rockchip-mkbootimg-master
Makefile
Code:
CC ?= gcc
CFLAGS ?= -O2 -Wall -Wextra
LDFLAGS ?= -lcrypto
PREFIX ?= usr/local
TARGETS = afptool img_maker mkbootimg unmkbootimg
SCRIPTS = mkrootfs mkupdate mkcpiogz unmkcpiogz
DEPS = Makefile rkafp.h rkcrc.h
all: $(TARGETS)
%: %.c $(COMMON) $(DEPS)
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
install: $(TARGETS)
install -d -m 0755 $(DESTDIR)/$(PREFIX)/bin
install -m 0755 $(TARGETS) $(DESTDIR)/$(PREFIX)/bin
install -m 0755 $(SCRIPTS) $(DESTDIR)/$(PREFIX)/bin
.PHONY: clean uninstall
clean:
rm -f $(TARGETS)
uninstall:
cd $(DESTDIR)/$(PREFIX)/bin && rm -f $(TARGETS)
cd $(DESTDIR)/$(PREFIX)/bin && rm -f $(SCRIPTS)
I try to edit make file to include -lmd option but it doesn't affect the process the same error is showing