OAID / YSQfastfd

A fast binary library for face detection and face landmark detection in images. No float point operations, especially suit for low cost Arm CPUs, The highest accuracy on FDDB among non deep learning methods
Apache License 2.0
197 stars 54 forks source link

can not run when i input "make -j4", it shows "libysqfd64.so:file not recognized: file format not recognized" #4

Open chezhqant opened 7 years ago

chezhqant commented 7 years ago

Hi, i have a rk3288, my board's system is "Firefly-rk3288_Ubuntu_1604_201705250940.img".and when i input "make -j4", i got failed. and the fault information is "libysqfd64.so: file not recognized: File format not recognized ".

xhbdahai commented 7 years ago

@chezhai Could you please show me the log.

jhezjkp commented 7 years ago

same issue on raspberry pi 3 b: log

mingfengwuye commented 6 years ago

this is the log in Pi 3 make[1]: Entering directory '/home/pi/work/YSQfastfd/libfcv' g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux -c oaid_base.cpp -o oaid_base.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux__ -c video.cpp -o video.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux -c yuvproc.cpp -o yuvproc.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux -c window.cpp -o window.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux__ -c fcvimage.cpp -o fcvimage.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux -c queue.cpp -o queue.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux -c oaidsys.cpp -o oaidsys.o g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux__ -c ysqfd.cpp -o ysqfd.o ar -rcv liboal.a oaid_base.o video.o yuvproc.o window.o fcvimage.o queue.o oaidsys.o ysqfd.o a - oaid_base.o a - video.o a - yuvproc.o a - window.o a - fcvimage.o a - queue.o a - oaidsys.o a - ysqfd.o make[1]: Leaving directory '/home/pi/work/YSQfastfd/libfcv' make[1]: Entering directory '/home/pi/work/YSQfastfd/middle' g++ -fpic -shared -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux -c midlayer.cpp -o midlayer.o g++ -fpic -shared -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux__ -o libaaid.so midlayer.o cp libaaid.so ../3rdlibs/ make[1]: Leaving directory '/home/pi/work/YSQfastfd/middle' make[1]: Entering directory '/home/pi/work/YSQfastfd/fcvlibtest' g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -D_linux libfcvtest.cpp -o libfcvtest -lm -lpthread pkg-config --libs gtk+-3.0 -L/home/pi/work/YSQfastfd/libfcv -loal -lm -lpthread pkg-config --libs gtk+-3.0 make[1]: Leaving directory '/home/pi/work/YSQfastfd/fcvlibtest' make[1]: Entering directory '/home/pi/work/YSQfastfd/fddemo' g++ -DCAM_FRAME_480P pkg-config --cflags gtk+-3.0 -Wall -O2 -I/home/pi/work/YSQfastfd/include -Dlinux__ ysqfddemo.cpp -o ysqfddemo -lm -lpthread pkg-config --libs gtk+-3.0 -L/home/pi/work/YSQfastfd/libfcv -loal -L/home/pi/work/YSQfastfd/middle -laaid -L/home/pi/work/YSQfastfd/3rdlibs -lysqfd64 -lm -lpthread pkg-config --libs gtk+-3.0 /home/pi/work/YSQfastfd/3rdlibs/libysqfd64.so: file not recognized: File format not recognized collect2: error: ld returned 1 exit status Makefile:13: recipe for target 'ysqfddemo' failed make[1]: [ysqfddemo] Error 1 make[1]: Leaving directory '/home/pi/work/YSQfastfd/fddemo' Makefile:25: recipe for target 'apps' failed make: [apps] Error 2

xhbdahai commented 6 years ago

@mingfengwuye Edit makefile.mk :

ARMv8 (arm64) enable, comment it if on arm32
ONARM64 = 1

Set ONARM64=0 if your platform is Armv7 architecture.