c++ - Integrating third party SDK Makefile into Qt -


i have u.are.u 4500 fingerprint reader has code in c , integrate qt. code looks readable i'm having problems integrating makefile .pro qt file fingerprint's sdk recognised.

could incorporating fingerprint demo makefile qt project.

    exe_name = uareusample      sdk_includes = ../../../include     out_dir ?= .     lib_out_dir ?= /usr/lib      ccflags = -g -wall -i$(sdk_includes) $(cflags)      # $(call getlink, linkname)     getlink = $(shell cygpath -wm `readlink -f $(1)`)      ifeq ($(findstring arm, $(cflags))$(findstring cygwin, $(shell uname)),armcygwin)         #code sourcery toolchain under cygwin cannot dereference symbolic links, need specify actual library linking         ldflags = -lpthread -lm -lc $(cflags) $(call getlink, $(lib_out_dir)/libdpfpdd.so) $(call getlink, $(lib_out_dir)/libdpfj.so)     else         ldflags = -lpthread -lm -lc $(cflags) -l $(lib_out_dir) -ldpfpdd -ldpfj     endif      objs = sample.o menu.o helpers.o selection.o verification.o identification.o enrollment.o      all: $(objs)         mkdir -p $(out_dir)         $(cc) $(objs) $(ldflags) -o $(out_dir)/$(exe_name)      clean:         rm -f $(out_dir)/$(exe_name) *.o *~      %.o: %.c         $(cc) $(ccflags) -c $< -o $@      .phony: install 


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -