2015-03-02 55 views
1

我想在我的新RaspberryPi2上構建libavg。在Raspberry Pi2上編譯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 

任何人都可以幫忙嗎?

+0

嘗試增加'-lbcm_hosts' – 2015-03-02 20:54:19

+0

在生成文件?哪個LIBS變種?或者在配置步驟? – user2305402 2015-03-02 22:08:41

回答

0

錯誤來自修改後的makefile。沒有這個文件,libavg build就是正確的。 在修改後的Makefile中,libavg與libbrowsernode支持一起編譯。 有沒有辦法做到這一點?

修改的文件:源/測試/插件/ 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 
相關問題