Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chezhqant opened this issue Sep 4, 2017 · 4 comments

Comments

@chezhqant
Copy link

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
Copy link
Contributor

xhbdahai commented Sep 4, 2017

@chezhai Could you please show me the log.

@jhezjkp
Copy link

jhezjkp commented Sep 17, 2017

same issue on raspberry pi 3 b:
log

@mingfengwuye
Copy link

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 -D__linux__ 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
Copy link
Contributor

xhbdahai commented Dec 30, 2017

@mingfengwuye
Edit makefile.mk :

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

Set ONARM64=0 if your platform is Armv7 architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants