构建错误undefined引用'xx'

我点击[这里] http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development使用流光。 但是当我ndk构建,它错误。谁可以帮助我,认为!

平台:Ubuntu 12.10 x64

日志:

/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../。 ./../../arm-linux-androideabi/bin/ld.gold:错误:找不到-lGLESv2 /home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt /linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:错误:无法找到-lEGL /home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/ .. /../../../arm-linux-androideabi/bin/ld.gold:错误:无法找到-lOpenSLES /home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6 /prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home /denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la-opensles.o):in function gst_opensles_get_engine:opensles.c:41: 错误:未定义引用'slCreateEngine'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux- androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la -openslessink.o):in function gst_opensles_sink_init:openslessink.c:283:error:undefined reference to'SL_IID_AUDIOIODEVICECAPABILITIES'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux -x86_64 / bin /../ lib / gcc / arm-linux-androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/ home / denghaizhu / projects /gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la-openslesringbuffer.o):in function _opensles_recorder_acquire:openslesringbuffer.c:179:error:undefined reference to'SL_IID_ANDROIDSIMPLEBUFFERQUEUE'/ home / denghaizhu / Software / android-ndk -r8e /工具链/臂-Linux的androideabi-4.6 /预建/升 inux-x86_64 / bin /../ lib / gcc / arm-linux-androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer-0.10 / static / libgstopensles.a(libgstopensles_la-openslesringbuffer.o):in function _opensles_recorder_acquire:openslesringbuffer.c:179:error:undefined reference to'SL_IID_RECORD'/ home / denghaizhu / Software / android- NDK-R8E /工具链/臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la-openslesringbuffer.o):in function _opensles_player_acquire:openslesringbuffer.c:327:error :未定义引用'SL_IID_BUFFERQUEUE'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi /4.6/../../../../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10 /static/libgstopensles.a(libgstopensles_la-openslesringbuffer.o):in function _opensles_player_acquire:openslesringbuffer.c:327:error:undefined reference to'SL_IID_VOLUME'/ home / denghaizhu / Software / android-ndk-r8e / toolchains / arm-linux -androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi / bin中/ LD。 gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la-openslesringbuffer.o):in function _opensles_player_acquire:openslesringbuffer.c:327:error:undefined reference to'SL_IID_PLAY'/ home /denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../ ../../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la-openslesringbuffer.o):in function gst_opensles_ringbuffer_open_device: openslesringbuffer.c:747:error:undefined referen ce to'SL_IID_ENGINE'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6 /../../../../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgstopensles.a(libgstopensles_la-openslesringbuffer。 o):in function gst_opensles_ringbuffer_open_device:openslesringbuffer.c:747:error:undefined reference to'SL_IID_OUTPUTMIX'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/ bin /../ lib / gcc / arm-linux-androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer-0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:942:error:undefined reference to'glViewport'/ home / denghaizhu / Software / android-ndk-r8e /工具链/臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的机器人 eabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la -gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:950:error:undefined reference to'glClearColor'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux -x86_64 / bin /../ lib / gcc / arm-linux-androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/ home / denghaizhu / projects /gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:951:error:undefined reference to'glClear'/ home / denghaizhu / Software / android-ndk -r8e /工具链/臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../掰linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o) :in function gst_eglglessink_render:gsteglglessink.c:488:error:undefined reference to'glDeleteBuffers'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/ ../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer-0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in函数gst_eglglessink_render:gsteglglessink.c:489:error:undefined引用'glDeleteBuffers'/ home / denghaizhu / Software / android-ndk-r8e / toolchains /臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi / bin中/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:604:error:undefined reference to'glGenBuffers '/ home / denghaizhu / Software / android-ndk-r8e / toolchains / arm-linux -androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi / bin中/ LD。 gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:605:error:undefined reference to'glGenBuffers'/ home /denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../ ../../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render: gsteglglessink.c:609:error:undefined reference to'glBindBuffer'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/ gcc / arm-linux-androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstr eamer-0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:613:error:undefined引用'glBufferData'/ home / denghaizhu / Software / android-ndk-r8e / toolchains /臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi / bin中/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:619:error:undefined reference to'glBindBuffer '/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../ ../../../arm-linux-androideabi/bin/ld.gold:home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in函数gst_eglglessink_render:gsteglglessink.c:624:错误:undefined引用'glBuff erData'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/ .. /../../../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o): in函数gst_eglglessink_render:gsteglglessink.c:965:错误:未定义对'glUseProgram'的引用/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/。 ./lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer -0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:967:error:undefined reference to'glVertexAttribPointer'/ home / denghaizhu / Software / android-ndk-r8e / toolchains / arm -linux-androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../一个 rm-linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:972:错误:未定义的引用'glDrawElements'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux- androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la -gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:978:error:undefined reference to'glVertexAttribPointer'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux -x86_64 / bin /../ lib / gcc / arm-linux-androideabi / 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/ home / denghaizhu / projects /gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in f unction gst_eglglessink_render:gsteglglessink.c:983:error:undefined reference to'glDrawElements'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/ .. /lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer- 0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:990:error:undefined reference to'glUseProgram'/ home / denghaizhu / Software / android-ndk-r8e / toolchains / arm- Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi / bin中/ LD .gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:993:error:undefined reference to'glUniform1i'/家用/ denghaizhu /软件/ Android的NDK-R8E /工具链/ ARM-Linux的androideab I-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi / bin中/ ld.gold :/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:998:error:undefined reference to'glVertexAttribPointer'/ home / denghaizhu /软件/ Android的NDK-R8E /工具链/ ARM-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ lib中/ GCC / ARM-Linux的androideabi / 4.6 /../../。 ./../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink .c:1003:error:undefined reference to'glVertexAttribPointer'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc /arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer-0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function gst_eglglessink_render:gsteglglessink.c:1008:error:undefined reference to'glDrawElements'/ home / denghaizhu / Software / android-ndk-r8e /工具链/臂-Linux的androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂-Linux的androideabi /bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function render_thread_func:gsteglglessink.c:750:error:undefined reference to 'glActiveTexture'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/。 ./../../../arm-linux-androideabi/bin/ld.gold:home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o) :in function render_thread_func:gsteglglessink.c:751:error:undefined reference to' glBindTexture'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/ .. /../../../arm-linux-androideabi/bin/ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o): in function render_thread_func:gsteglglessink.c:756:error:undefined reference to'glActiveTexture'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/。 ./lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home / denghaizhu / projects / gstreamSDK / lib / gstreamer -0.10 / static / libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function render_thread_func:gsteglglessink.c:757:error:undefined reference to'glBindTexture'/ home / denghaizhu / Software / android-ndk-r8e / toolchains / arm -linux-androideabi-4.6 /预建/ Linux的x86_64的/ bin中/../ LIB / GCC /臂-Linux的androideabi / 4.6 /../../../../臂林 ux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function render_thread_func:gsteglglessink.c:772:error:未定义引用'glActiveTexture'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/ 4.6 /../../../../ arm-linux-androideabi / bin / ld.gold:/home/denghaizhu/projects/gstreamSDK/lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink .o):in function render_thread_func:gsteglglessink.c:773:error:undefined reference to'glBindTexture'/home/denghaizhu/Software/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64 /bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold:/ home / denghaizhu / projects / gstreamSDK /lib/gstreamer-0.10/static/libgsteglglessink.a(libgsteglglessink_la-gsteglglessink.o):in function render_thread _func:gsteglglessink.c:774:错误:未定义引用'glTexImage2D'

链接地址: http://www.djcxy.com/p/23377.html

上一篇: build error undefined reference to 'xx'

下一篇: NDK: using user created .so when trying to build another .so