gpt4 book ai didi

linux - Openni2运行make时出错

转载 作者:太空宇宙 更新时间:2023-11-04 03:52:24 30 4
gpt4 key购买 nike

我从 github 下载了 Openni2 并按照 README 中的说明运行 $make。我收到此错误:

g++ -MD -MP -MT "./../../../Bin/Intermediate/x86-Release/libOpenNI2.jni.so/org_openni_NativeMethods.d ../../../Bin/Intermediate/x86-Release/libOpenNI2.jni.so/org_openni_NativeMethods.o" -c -msse3 -Wall -O2 -DNDEBUG -I. -I../../../Include -I../../../ThirdParty/PSCommon/XnLib/Include  -fPIC -fvisibility=hidden -o ../../../Bin/Intermediate/x86-Release/libOpenNI2.jni.so/org_openni_NativeMethods.o org_openni_NativeMethods.cpp
g++ -o ../../../Bin/x86-Release/libOpenNI2.jni.so ./../../../Bin/Intermediate/x86-Release/libOpenNI2.jni.so/OpenNI.jni.o ./../../../Bin/Intermediate/x86-Release/libOpenNI2.jni.so/org_openni_NativeMethods.o -L../../../Bin/x86-Release -lOpenNI2 -Wl,--no-undefined -shared
/usr/lib/i386-linux-gnu/libc_nonshared.a(stack_chk_fail_local.oS): In function `__stack_chk_fail_local':
(.text+0x10): undefined reference to `__stack_chk_fail'
collect2: error: ld returned 1 exit status
make[1]: *** [../../../Bin/x86-Release/libOpenNI2.jni.so] Error 1
make[1]: Leaving directory `/home/smalleyreaserch/OpenNI2/Wrappers/java/OpenNI.jni'
make: *** [Wrappers/java/OpenNI.jni] Error 2

我已经安装了所有必需的软件包。谁能帮我?我的系统是Ubuntu 14.04 32位,但电脑是64位。这就是我收到此错误的原因吗?

最佳答案

其他一些人也遇到过这个问题...但主要是在 i686 计算机上...无论如何,这是一个可能的解决方案。

首先,确保您有 java 而不是 openjava...我读到这有时会带来问题。

其次,使用

export LDFLAGS+="-lc"

这应该可以解决您的问题,如果不能只是发表评论

关于linux - Openni2运行make时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25851510/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com