交叉编译raspberry pi3项目时无法识别“libpython2.7.a”格式

2024-10-01 17:30:59 发布

您现在位置:Python中文网/ 问答频道 /正文

<>我的程序(Qt/C++)使用Python模块从谷歌Dead下载一些视频,它的工作很好,但是我不能交叉编译它,因为这是我的第一个错误How to fix an unknown error when cross compiling my QT application to raspberry-pi3。修复此错误后,我现在有一个新错误,我不知道它是什么意思:

错误如下:

/home/Documents/project/digitalsignage/lib/python2.7/ -lpython2.7 -ldl -lutil -L/opt/qtrpi/raspi/qt5pi/lib -lQt5Quick -L/opt/qtrpi/raspbian/sysroot/usr/lib/arm-linux-gnueabihf -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Xml -lQt5Core -Wl,-rpath-link,/opt/qtrpi/raspbian/sysroot/opt/vc/lib -lGLESv2 -lpthread 
/home/Documents/project/digitalsignage/lib/python2.7//libpython2.7.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:170: recipe for target 'DigitalSignal' failed
make: *** [DigitalSignal] Error 1

这是Makefile的第170行:

####### Build rules

$(TARGET): /home/Documents/project/digitalsignage/lib/python2.7/libpython2.7.a $(OBJECTS)  
    $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

如果有人知道我是否需要更改Makefile中的某些内容,请帮助我??你知道吗


Tags: toprojecttargethomelib错误errormakefile

热门问题