Build an osgearth to Android platform with NDK

Source: Internet
Author: User

Osgearth for ios is already successful, and osgearth for android is also a good idea. A lot of errors, post them and share them. I hope someone who compiled them can give me some suggestions. For details about osgearth for ios, go to osgearth for IOS version compilation.

Cmake .. -DOSG_BUILD_PLATFORM_ANDROID = ON-DDYNAMIC_OPENTHREADS = OFF-DDYNAMIC_OPENSCENEGRAPH = OFF-nodes = OFF-DOSG_GL1_AVAILABLE -Keys = OFF-keys = OFF-DOSG_GLES1_AVAILABLE = OFF-keys = ON-DJ = 4-DANDROID_PLATFORM = 8-DANDROID_STL = "gnustl_static"-DCMAKE_INSTALL_PREFIX =... android/osg_android/osges2-DANDROID_DEBUG = ON

-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
CMake Warning at/usr/share/cmake-2.8.9/Modules/Platform/CYGWIN. cmake: 15 (message ):
CMake no longer defines WIN32 on Cygwin!
(1) If you are just trying to build this project, ignore this warning or
Quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32 = 0 in your environment or in
The CMake cache. If later configuration or build errors occur then this
Project may have been written under the assumption that Cygwin is WIN32.
In that case, set CMAKE_LEGACY_CYGWIN_WIN32 = 1 instead.
(2) If you are developing this project, add the line
Set (CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake> = 2.8.4 is required
At the top of your top-level CMakeLists.txt file or set the minimum
Required version of CMake to 2.8.4 or higher. Then teach your project
Build on Cygwin without WIN32.
Call Stack (most recent call first ):
/Usr/share/cmake-2.8.9/Modules/CMakeSystemSpecificInformation. cmake: 36 (INCLUDE)
CMakeLists.txt: 19 (PROJECT)
-- Check for working C compiler:/usr/bin/gcc.exe
-- Check for working C compiler:/usr/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info-done
-- Check for working CXX compiler:/usr/bin/c00000000.exe
-- Check for working CXX compiler:/usr/bin/c00000000.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info-done
-- Looking for include file pthread. h
-- Looking for include file pthread. h-found
-- Looking for pthread_create
-- Looking for pthread_create-found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in/usr/lib/libX11.dll. a;/usr/lib/libXext. dll.
-- Looking for XOpenDisplay in/usr/lib/libX11.dll. a;/usr/lib/libXext. dll. a-found
-- Looking for gethostbyname
-- Looking for gethostbyname-found
-- Looking for connect
-- Looking for connect-found
-- Looking for remove
-- Looking for remove-found
-- Looking for shmat
-- Looking for shmat-found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE-found
-- Found X11:/usr/lib/libX11.dll.
-- Found OpenGL:/usr/lib/libGL. dll.
-- Found ZLIB:/usr/lib/libz. dll. a (found version "1.2.8 ")
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11-found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN-not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS-not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC-not found.
-- Cocould NOT find Qt4 (missing: QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE) (found suitable version "4.8.1", required is "4.6 ")
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CURL_INCLUDE_DIR
Used as include directory in directory... osgearth/osgear_android/src/osgEarth
CURL_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
GDAL_INCLUDE_DIR
Used as include directory in directory... osgearth/osgear_android/src/osgEarth
Used as include directory in directory... osgearth/osgear_android/src/osgearannotation
Used as include directory in directory... osgearth/osgear_android/src/osgearfeatures
GDAL_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
Linked by target "osgearannotation" in directory... osgearth/osgear_android/src/osgearnotation
OPENTHREADS_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
................
Linked by target "application_osgear_overlayviewer" in directory... osgearth/osgear_android/src/applications/osgear_overlayviewer
OSGDB_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
................
Linked by target "application_osgear_featuremanip" in directory... osgearth/osgear_android/src/applications/osgear_featuremanip
Linked by target "application_osgear_overlayviewer" in directory... osgearth/osgear_android/src/applications/osgear_overlayviewer
OSGFX_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
Linked by target "osgearannotation" in directory... osgearth/osgear_android/src/osgearnotation
Linked by target "osgearfeatures" in directory... osgearth/osgear_android/src/osgearfeatures
Linked by target "osgearutil" in directory... osgearth/osgear_android/src/osgearutil
Linked by target "osgearsymbology" in directory... osgearth/osgear_android/src/osgearsymbology
OSGGA_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
Linked by target "osgearannotation" in directory... osgearth/osgear_android/src/osgearnotation
Linked by target "osgearfeatures" in directory... osgearth/osgear_android/src/osgearfeatures
Linked by target "osgearutil" in directory... osgearth/osgear_android/src/osgearutil
Linked by target "osgearsymbology" in directory... osgearth/osgear_android/src/osgearsymbology
OSGMANIPULATOR_LIBRARY
Linked by target "osgearannotation" in directory... osgearth/osgear_android/src/osgearnotation
Linked by target "osgearutil" in directory... osgearth/osgear_android/src/osgearutil
Linked by target "application_osgear_imageoverlay" in directory... osgearth/osgear_android/src/applications/osgear_imageoverlay
OSGSHADOW_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
OSGSIM_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
Linked by target "osgearannotation" in directory... osgearth/osgear_android/src/osgearnotation
Linked by target "osgearfeatures" in directory... osgearth/osgear_android/src/osgearfeatures
Linked by target "osgearutil" in directory... osgearth/osgear_android/src/osgearutil
Linked by target "osgearsymbology" in directory... osgearth/osgear_android/src/osgearsymbology
OSGTERRAIN_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth
................
Linked by target "osgearutil" in directory... osgearth/osgear_android/src/osgearutil
Linked by target "osgearsymbology" in directory... osgearth/osgear_android/src/osgearsymbology
OSGTEXT_LIBRARY

Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth

................
Linked by target "osgearsymbology" in directory... osgearth/osgear_android/src/osgearsymbology
OSGUTIL_LIBRARY

Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth

................

Linked by target "application_osgear_overlayviewer" in directory... osgearth/osgear_android/src/applications/osgear_overlayviewer
OSGVIEWER_LIBRARY
Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth

................
Linked by target "application_osgear_featuremanip" in directory... osgearth/osgear_android/src/applications/osgear_featuremanip
Linked by target "application_osgear_overlayviewer" in directory... osgearth/osgear_android/src/applications/osgear_overlayviewer
OSGWIDGET_LIBRARY
Linked by target "osgearsymbology" in directory... osgearth/osgear_android/src/osgearsymbology
Linked by target "application_osgear_toc" in directory... osgearth/osgear_android/src/applications/osgear_toc
OSG_LIBRARY

Linked by target "osgEarth" in directory... osgearth/osgearthur _android/src/osgEarth

................
Linked by target "application_osgear_featuremanip" in directory... osgearth/osgear_android/src/applications/osgear_featuremanip
Linked by target "application_osgear_overlayviewer" in directory... osgearth/osgear_android/src/applications/osgear_overlayviewer

-- Refreshing incomplete, errors occurred!

For errors that do not find a library, we need to use Qt. This library was transplanted to Android after 5.0 and the reliability after transplantation was not very good. Continue to work hard.

 

From giantchen547792075 address: http://blog.csdn.net/giantchen547792075/article/details/17676105

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.