1

我想在我的新 RaspberryPi2 上构建 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

有人可以帮忙吗?

4

2 回答 2

0

libavg 需要更新才能与当前的 RPi 系统一起运行。该问题已在 libavg 的当前 git head 中修复,因此您只需执行 git pull 并重新编译即可。

必要的更改在这里:https ://github.com/libavg/libavg/commit/d7f785347c90ada2daf02afffaac178bb705607b

于 2015-03-13T22:42:38.167 回答
0

错误来自修改后的 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
于 2015-03-05T11:54:46.137 回答