|
本帖最后由 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没问题。。 |
|