Compiler errors 在树莓Pi2上编译libavg

Compiler errors 在树莓Pi2上编译libavg,compiler-errors,raspberry-pi,libavg,Compiler Errors,Raspberry Pi,Libavg,我想在我的新树莓2上构建libavg 我的脚步是 1.) git clone https://github.com/libavg/libavg.git libavg 2.) cd libavg 3.) ./bootstrap 4.) ./configure --enable-rpi --prefix=/home/pi/raspberryPi2/install_release 这会导致一个错误 CXXLD testgraphics CXX testgpu.o CXXLD t

我想在我的新树莓2上构建libavg

我的脚步是

1.) git clone https://github.com/libavg/libavg.git libavg
2.) cd libavg
3.) ./bootstrap
4.) ./configure --enable-rpi --prefix=/home/pi/raspberryPi2/install_release
这会导致一个错误

  CXXLD  testgraphics
  CXX    testgpu.o
  CXXLD  testgpu
  /usr/bin/ld: ./.libs/libgraphics.a(BCMDisplay.o): undefined reference to symbol 'vc_dispmanx_element_add'
  //opt/vc/lib/libbcm_host.so: error adding symbols: DSO missing from command line
  collect2: ld returned 1 exit status
  Makefile:668: recipe for target 'testgpu' failed
  make[4]: *** [testgpu] Error 1
  make[4]: Leaving directory '/home/pi/raspberryPi2/libavg/src/graphics'
  Makefile:795: recipe for target 'all-recursive' failed
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory '/home/pi/raspberryPi2/libavg/src/graphics'
  Makefile:385: recipe for target 'all-recursive' failed
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory '/home/pi/raspberryPi2/libavg/src'
  Makefile:323: recipe for target 'all' failed
  make[1]: *** [all] Error 2
  make[1]: Leaving directory '/home/pi/raspberryPi2/libavg/src'
  Makefile:389: recipe for target 'all-recursive' failed
  make: *** [all-recursive] Error 1

有人能帮忙吗?

错误来自修改过的makefile。没有这个文件,libavg构建就正确了。 在修改后的Makefile中,libavg是使用libbrowsernode支持编译的。 有办法吗

修改文件:src/test/plugin/Makefile.am

pkgpyexec_LTLIBRARIES = colorplugin.la libbrowsernode.la
colorplugin_la_SOURCES = ColorNode.cpp
colorplugin_la_LDFLAGS = $(EXTRA_LDFLAGS) -module
libbrowsernode_la_SOURCES = BrowserNode.cpp
libbrowsernode_la_LDFLAGS = -lberkelium_delegate $(EXTRA_LDFLAGS) -module
组织。文件:

pkgpyexec_LTLIBRARIES = colorplugin.la
colorplugin_la_SOURCES = ColorNode.cpp
colorplugin_la_LDFLAGS = $(EXTRA_LDFLAGS) -module

需要更新libavg以与当前RPi系统一起运行。这个问题在libavg的当前git头中得到了修复,因此您只需要执行git拉取和重新编译


必要的更改如下:

尝试在makefile中添加-lbcm\u主机??哪个LIBS变量?还是在配置步骤中?