查看: 986|回复: 0

请教各位osgearth编译安卓版本报错问题

[复制链接]

该用户从未签到

发表于 2017-12-18 09:43:22 | 显示全部楼层 |阅读模式
本帖最后由 kangsite 于 2017-12-18 09:44 编辑

编译安卓版本到了最后一步,编译osgViewer时报错,哪位大牛告知问题所在
报错在collect2: cannot find 'ld'
如下:

FuxilabLaptop1@DESKTOP-B8PKB9F /cygdrive/D/source/osgearthandroid/jgrocha-osgearthandroid-10f475a1a840/osgViewer/jni
$ collect2: cannot find 'ld'xilabLaptop1@DESKTOP-B8PKB9F /cygdrive/D/source/osgearthandroid/jgrocha-osgearthandroid-10f475a1a840/osgViewer/jni
Compile++ thumb  : osgNativeLib <= osgNativeLib.cpp
Compile++ thumb  : osgNativeLib <= OsgMainApp.cpp
Compile++ thumb  : osgNativeLib <= OsgAndroidNotifyHandler.cpp
Compile++ thumb  : osgNativeLib <= GLES2ShaderGenVisitor.cpp
Compile++ thumb  : osgNativeLib <= EarthMultiTouchManipulator.cpp
Compile++ thumb  : osgNativeLib <= DemoScene.cpp
Compile++ thumb  : osgNativeLib <= SceneGraphChangeCallback.cpp
Compile++ thumb  : osgNativeLib <= PickHandler.cpp
D:/source/osgearthandroid/jgrocha-osgearthandroid-10f475a1a840/osgViewer/jni/PickHandler.cpp: In member function 'virtual bool PickHandler::handle(const osgGA::GUIEventAdapter&, osgGA::GUIActionAdapter&)':
D:/source/osgearthandroid/jgrocha-osgearthandroid-10f475a1a840/osgViewer/jni/PickHandler.cpp:74: warning: invalid conversion from '_jobject*' to '_jclass*'
D:/source/osgearthandroid/jgrocha-osgearthandroid-10f475a1a840/osgViewer/jni/PickHandler.cpp:74: warning:   initializing argument 1 of 'void _JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)'
Compile++ thumb  : osgNativeLib <= osgEarthDemo.cpp
SharedLibrary  : libosgNativeLib.so
collect2: cannot find 'ld'
make: *** [/cygdrive/c/android/android-ndk-r8/build/core/build-binary.mk:371:/cygdrive/D/source/osgearthandroid/jgrocha-osgearthandroid-10f475a1a840/osgViewer/obj/local/armeabi-v7a/libosgNativeLib.so] 错误 1
-bash: collect2:: 未找到命令



gcc编译一切正常,编译hellowworld没问题。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表