[osg-users] OSG for Android

197 views
Skip to first unread message

Héctor Martínez

unread,
Aug 8, 2011, 1:55:52 AM8/8/11
to osg-...@lists.openscenegraph.org

Hi,

 

I’m trying to compile OSG 3.0.0 and/or 3.0.1 for Android. I am using CMake (GUI) 2.8.4. When selecting OSG_BUILD_PLATFORM_ANDROID and clicking the Configure button, a huge amount of similar errors appear. I have tried with Android NDK r5b and also with NDK r6 with no luck. Here I post the beginning of the errors (the rest are similar):

 

Android NDK found in: C:\Projects\android-ndk-r6

Jpeg found C:/Projects/OpenSceneGraph-3.0.1/3rdParty/include

PNG found C:/Projects/OpenSceneGraph-3.0.1/3rdParty/include

GIF found C:/Projects/OpenSceneGraph-3.0.1/3rdParty/include

TIF found C:/Projects/OpenSceneGraph-3.0.1/3rdParty/include

Curl missing

FREETYPE missing

GDAL missing

##############Creating Android Makefile#################

name: OpenThreads

##############Creating Android Makefile#################

name: osg

CMake Error at CMakeModules/OsgMacroUtils.cmake:179 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:181 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:183 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:514 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osg

Call Stack (most recent call first):

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osg/CMakeLists.txt:396 (SETUP_LIBRARY)

##############Creating Android Makefile#################

name: osgDB

CMake Error at CMakeModules/OsgMacroUtils.cmake:179 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:181 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:183 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:514 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgDB

Call Stack (most recent call first):

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgDB/CMakeLists.txt:170 (SETUP_LIBRARY)

##############Creating Android Makefile#################

name: osgUtil

CMake Error at CMakeModules/OsgMacroUtils.cmake:179 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:181 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:183 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:195 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:191 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

CMake Error at CMakeModules/OsgMacroUtils.cmake:193 (SET_TARGET_PROPERTIES):

set_target_properties Can not find target to add properties to: osgUtil

Call Stack (most recent call first):

CMakeModules/OsgMacroUtils.cmake:485 (SET_OUTPUT_DIR_PROPERTY_260)

CMakeModules/ModuleInstall.cmake:25 (HANDLE_MSVC_DLL)

CMakeModules/OsgMacroUtils.cmake:243 (INCLUDE)

src/osgUtil/CMakeLists.txt:116 (SETUP_LIBRARY)

 

 

Does anyone know where is the problem?

 

Thank you.

 

Cheers,

 

Héctor

Jorge Izquierdo Ciges

unread,
Aug 8, 2011, 3:41:43 AM8/8/11
to OpenSceneGraph Users
Try cleaning Cmake configure of the osg directory first. And don't use a graphical Cmake bad shit happens sometimes. In wiki there is a comand line cmake example.

Héctor Martínez

unread,
Aug 8, 2011, 5:13:41 AM8/8/11
to OpenSceneGraph Users

Hi Jorge,

 

thank you for your response! You were right, it works with command line. But now I have new problems:

 

-          It doesn´t find some plugins (jpg, png… etc).

-          When trying to build the solution I get this error:

2>InitializeBuildStatus:

2>  Touching "Win32\Debug\ndk\ndk.unsuccessfulbuild".

2>CustomBuild:

2>  The system cannot find the path specified.

2>  Generating Android-OpenSceneGraph

2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.

2>

2>Build FAILED

 

Any ideas about what’s wrong?

 

Thank you.

 

Cheers,

 

Héctor

Jorge Izquierdo Ciges

unread,
Aug 8, 2011, 6:36:13 AM8/8/11
to OpenSceneGraph Users
Mmm first it doesn't find the plugins because you don't have them xD we have a third party package that... it seems we forgot to publish the link in the wiki (and i don't know the address in my head). The other thing is probably a error because i think ndk is not prepared to run in windows as it is. I think you need mingw or something like that.  I use to make my tests over Linux so I don't know exactly the conditions that google have for windows. (check that on the developers android)


El 8 de agosto de 2011 11:13, Héctor Martínez <hector....@sensetrix.com> escribió:
exited with code 3.

Mourad Boufarguine

unread,
Aug 8, 2011, 6:39:56 AM8/8/11
to OpenSceneGraph Users


2011/8/8 Héctor Martínez <hector....@sensetrix.com>

Hi Jorge,

 

thank you for your response! You were right, it works with command line. But now I have new problems:

 

-          It doesn´t find some plugins (jpg, png… etc).

-          When trying to build the solution I get this error:

2>InitializeBuildStatus:

2>  Touching "Win32\Debug\ndk\ndk.unsuccessfulbuild".

2>CustomBuild:

2>  The system cannot find the path specified.

2>  Generating Android-OpenSceneGraph

2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.

2>

2>Build FAILED

 

Any ideas about what’s wrong?

 

Thank you.

 

Cheers,

 

Héctor



Hi Hector,

You can't use Visual Studio to build OSG for android. You need to choose "Unix Makefile" as generator in CMake gui.

Mourad 

 


Héctor Martínez

unread,
Aug 8, 2011, 8:36:58 AM8/8/11
to OpenSceneGraph Users

Thank you again, Jorge. I will try with MinGW. But, will I be able to use the compiled library in an Eclipse+Windows environment for the Android development?

Regarding to the plugins, I thought that there were the same as the ones inside the 3rdparty folder of OSG. Do you think I will be able to get those you mention?

 

From: osg-user...@lists.openscenegraph.org [mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Jorge Izquierdo Ciges
Sent: lunes, 08 de agosto de 2011 13:36
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG for Android

 

Mmm first it doesn't find the plugins because…

 

 

 

Thank you Mourad. As I say above, I will try with MinGW.

 

From: osg-user...@lists.openscenegraph.org [mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Mourad Boufarguine
Sent: lunes, 08 de agosto de 2011 13:40
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG for Android

 

Hi Hector,

 

You can't use Visual Studio to build OSG for android. You need to choose "Unix Makefile" as generator in CMake gui.

 

Mourad 

 

Héctor

Jorge Izquierdo Ciges

unread,
Aug 8, 2011, 10:13:33 AM8/8/11
to OpenSceneGraph Users
There's no trouble in that. Android binaries are platform independant (they are from Android) and I suppose following the google instructions shouldn't give much trouble to anyone. I didn't like MinGW so I sticked with Linux. I'll try to find the 3rd party package link and submit it when I can... but right now I'm on vacation so i can't reach physically where it is.

Rafa Gaitan

unread,
Aug 9, 2011, 2:09:36 AM8/9/11
to OpenSceneGraph Users
Hi Hector,

ThirdParty package for android is deployed here:
http://www2.ai2.upv.es/difusion/osgAndroid/3rdpartyAndroid.zip

I'm sure other developers reported that they were able to build in
windows using mingw or cygwin but we usually work on linux or mac
(making our life easier! :)).

Cheers,
Rafa.


2011/8/8 Jorge Izquierdo Ciges <jor...@gmail.com>:

> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>

--
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
http://gvsig3d.blogspot.com
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Héctor Martínez

unread,
Aug 10, 2011, 3:21:39 AM8/10/11
to OpenSceneGraph Users

Thank you for the response. I am having some problems with the MINGW/MSYS make. Here is the problem:

 

                             Android NDK: Trying to define local module ‘OpenThreads’ in C:/Projects/OpenSceneGraph-3.0.1/OpenSceneGraph/build32_Android/src/OpenThreads/pthreads/Android.mk.

 

Android NDK: But this module was already defined by C:/Projects/OpenSceneGraph-3.0.1/OpenSceneGraph/build32_Android/src/OpenThreads/pthreads/Android.mk. /C/Projects/android-ndk-r5b/build/core/build-moduloe.mk:34: *** Android NDK: Aborting.     .  Stop.

                             make[2]: *** [Android-OpenSceneGraph] Error 2

                             make[1]: *** [CMakeFiles/ndk.dir/all] Error 2

 

Any ideas? It seems like it is loading some file twice or something like that.

 

From: osg-user...@lists.openscenegraph.org [mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Jorge Izquierdo Ciges
Sent: lunes, 08 de agosto de 2011 17:14
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG for Android

 

There's no trouble in that. Android binaries are platform independant (they are from Android) and I suppose following the google instructions shouldn't give much trouble to anyone. I didn't like MinGW so I sticked with Linux.

 

---------------------

 

Thank you for the dependencies. But, how am I supposed to use them? I mean, which is the structure for cmake to recognize them?

 

-----Original Message-----
From: osg-user...@lists.openscenegraph.org [mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Rafa Gaitan
Sent: martes, 09 de agosto de 2011 9:10
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG for Android

 

Hi Hector,

 

ThirdParty package for android is deployed here:

http://www2.ai2.upv.es/difusion/osgAndroid/3rdpartyAndroid.zip

 

 

Cheers,

 

Héctor

Mourad Boufarguine

unread,
Aug 10, 2011, 5:12:50 AM8/10/11
to OpenSceneGraph Users
Hi Hector,

2011/8/10 Héctor Martínez <hector....@sensetrix.com>

Thank you for the response. I am having some problems with the MINGW/MSYS make. Here is the problem:

You have to use Cygwin not MinGW/MSYS on windows to develop with android ndk.

Mourad

Jorge Izquierdo Ciges

unread,
Aug 10, 2011, 12:30:44 PM8/10/11
to OpenSceneGraph Users
YAOUCH! I missed that! xDDDDD you are damn right.

2011/8/10 Mourad Boufarguine <mourad.bo...@gmail.com>

Héctor Martínez

unread,
Aug 11, 2011, 3:22:46 AM8/11/11
to OpenSceneGraph Users

Thank you Mourad and Jorge.

 

I have never used CygWin and I am trying to follow those instructions:

 

http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Cygwin

 

But it is a bit messy for me. Mourad, it seems like you have successfully compiled OSG for Android in Windows. Could you please give me a quick guide or some tips?

 

Héctor

 

From: osg-user...@lists.openscenegraph.org [mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Jorge Izquierdo Ciges
Sent: miércoles, 10 de agosto de 2011 19:31
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG for Android

 

YAOUCH! I missed that! xDDDDD you are damn right.

Mourad Boufarguine

unread,
Aug 11, 2011, 7:09:58 AM8/11/11
to OpenSceneGraph Users
Hi Hector,

2011/8/11 Héctor Martínez <hector....@sensetrix.com>

Thank you Mourad and Jorge.

 

I have never used CygWin and I am trying to follow those instructions:

 

http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Cygwin


Those are for building OSG with cygwin to be used on a PC.
 

 

But it is a bit messy for me. Mourad, it seems like you have successfully compiled OSG for Android in Windows. Could you please give me a quick guide or some tips?



1/ install Cygwin ^^ , make sure to install gcc , g++, make, ... (a full install may be helpful).

Please note that, although we won't be compiling osg with cygwin's g++ , it needs to be installed in order for cmake to get over compiler checks at the beginning of configuration. (and other packages may be also needed)

2/ in cmake gui, set the sources and binairies folders, hit configure and choose "Unix Makefiles" as generator

3/ Check "OSG_BUILD_PLATFORM_ANDROID" and hit configure
 
4/ Set (if not set) ANDROID_NDK path

5/ Configure your build whether you want GLES1 or GLES2 following these instructions : http://www.openscenegraph.org/projects/osg/wiki/Community/OpenGL-ES 

6/ Configure and Generate

7/ open Cygwin batch, cd to binaires dir, and "make"

 

Héctor

 


Cheers,
Mourad 

Riccardo Corsi

unread,
Aug 11, 2011, 7:59:16 AM8/11/11
to OpenSceneGraph Users
Hi Mourad and all,

I've succesfully built osg_3.0.1 on Windows with Cygwin (without 3rd party plugins for now).

I'm now trying to build the osgAndroidExampleGLES1, and everything compiles, but the linker (ld) throws an error says that it cannot find the dds lib, here it is:

$ ../../../../../Android/android-ndk-r6/ndk-build NDK_APPLICATION_MK=Application.mk
Compile++ thumb  : osgNativeLib <= osgNativeLib.cpp
Compile++ thumb  : osgNativeLib <= OsgMainApp.cpp
Compile++ thumb  : osgNativeLib <= OsgAndroidNotifyHandler.cpp
SharedLibrary  : libosgNativeLib.so
D:/SourceCode/Android/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../
lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -losgd
b_dds
collect2: ld returned 1 exit status
make: *** [/cygdrive/d/SourceCode/OSG/osg_3.0.1/examples/osgAndroidExampleGLES1/obj/local/armeabi/libosgNativeLib.so] Error 1

I'm checking the options of the Android.mk file and it looks like there's a variable LIBDIR to specify the library path which is then used here:

[...]
LOCAL_LDFLAGS   := -L $(LIBDIR) \
-losgdb_dds \
[...]

I've already tried to set it to relative and absolute paths, I've also tried to copy the compiled libraries in the local example folder,
but cannot get it finding the libraries!
Have you got any other suggestion?

Thank you,
Ricky




Mourad Boufarguine

unread,
Aug 11, 2011, 9:50:01 AM8/11/11
to OpenSceneGraph Users
After re trying and checking, i found out that it is preferable to use the command line cmake in cygwin rather than cmake gui :


cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF
-DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF
-DOSG_GL_MATRICES_AVAILABLE=ON -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON
-DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=ON -DOSG_GL_FIXED_FUNCTION_AVAILABLE=ON
-DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF -DOSG_GL1_AVAILABLE=OFF -DOSG_GL2_AVAILABLE=OFF
-DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=ON -DOSG_GLES2_AVAILABLE=OFF
Mourad




Mourad Boufarguine

unread,
Aug 11, 2011, 10:50:34 AM8/11/11
to OpenSceneGraph Users
Hi Riccardo,

On Thu, Aug 11, 2011 at 1:59 PM, Riccardo Corsi <riccard...@kairos3d.it> wrote:
Hi Mourad and all,

I've succesfully built osg_3.0.1 on Windows with Cygwin (without 3rd party plugins for now).

I'm now trying to build the osgAndroidExampleGLES1, and everything compiles, but the linker (ld) throws an error says that it cannot find the dds lib, here it is:

$ ../../../../../Android/android-ndk-r6/ndk-build NDK_APPLICATION_MK=Application.mk
Compile++ thumb  : osgNativeLib <= osgNativeLib.cpp
Compile++ thumb  : osgNativeLib <= OsgMainApp.cpp
Compile++ thumb  : osgNativeLib <= OsgAndroidNotifyHandler.cpp
SharedLibrary  : libosgNativeLib.so
D:/SourceCode/Android/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../
lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -losgd
b_dds
collect2: ld returned 1 exit status
make: *** [/cygdrive/d/SourceCode/OSG/osg_3.0.1/examples/osgAndroidExampleGLES1/obj/local/armeabi/libosgNativeLib.so] Error 1

I'm checking the options of the Android.mk file and it looks like there's a variable LIBDIR to specify the library path which is then used here:

[...]
LOCAL_LDFLAGS   := -L $(LIBDIR) \
-losgdb_dds \
[...]

I've already tried to set it to relative and absolute paths, I've also tried to copy the compiled libraries in the local example folder,
but cannot get it finding the libraries!
Have you got any other suggestion?



What did you put in OSG_ANDROID_DIR ? 
I just tried with my binaries folder path and it worked.

Mourad

Jorge Izquierdo Ciges

unread,
Aug 11, 2011, 11:05:45 AM8/11/11
to OpenSceneGraph Users
Mmmm look the Android make file inside the GLES example and change "type your directory here" into your path to OSG

2011/8/11 Mourad Boufarguine <mourad.bo...@gmail.com>

Riccardo Corsi

unread,
Aug 11, 2011, 11:46:47 AM8/11/11
to OpenSceneGraph Users
Hi guys,

it works!!
I had to tweak something and then I've run some tests, let me share some points with you:

- Builing
I have made a floder called ndk-build inside the osg folder tree to place all the nkd builind stuff. If I set the OSG_ANDROID_DIR to that folder, the compiler doesn't file the osg includes, so I had to add the osg include folder to the "LOCAL_C_INCLUDES".
By doing that everything compile and link.
What I don't get is why it wasn't working before, when I had edited directly the variables LOCAL_C_INCLUDES and LIBDIR by setting them to full paths -> any hints on this point??

- Running
I've been trying only the GLES1 example, and it works just fine on my Nexus S (android 2.3.4)
Instead I've tried to build the example also for the 3.x platform target: it build and upload on my tablet, but it just shows up for a couple of seconds and then it dies.
I have no time to investigate right now, I'll run some more tests tomorrow.
Have you got any idea what it might be depending on?
My device is an Acer Iconia Tab A500.

Thank you for your support and great job!
Ricky



Jorge Izquierdo Ciges

unread,
Aug 11, 2011, 1:17:29 PM8/11/11
to OpenSceneGraph Users
I don't have very much idea what can happen with 3.X it would be needed to see in detail the Logcat to find what's happening. 2.3 and 3.X have the same base in common so it shouldn't be anything big. About the other things probably is just that you didn't do a make install to create a directory with all the includes etc. 

2011/8/11 Riccardo Corsi <riccard...@kairos3d.it>

Héctor Martínez

unread,
Aug 12, 2011, 8:16:46 AM8/12/11
to OpenSceneGraph Users

Hi and thank you.

 

I first tried with the Cmake GUI, but I got some errors. After that, I have read your answer pointing to command line. I have used the cmake command line (not without some problems J ):

cmake -> OK

make -> Error:

make[3]: *** [/cygdrive/c/Projects/OpensSceneGraph-3.0.1/OpenSceneGraph/obj/local/armeabi-v7a/objs/osgdb_serializers_osg/BlendEquation..o] Error 126

make[3]: *** Waiting for unfinished jobs….

make[2]: *** [Android-OpenSceneGraph] Error 2

make[1]: *** [CMakeFiles/ndk.dir/all] Error 2

make: *** [all] Error 2

After that, I have tried to use “make install” and it has finished without error, but I think this is a weird behavior.

 

Anyway, does somebody now how to solve the problem?

 

And another question, after compiling (if I can make it J ), what files (and where) will I need to include in the OSG Android example?

 

Thank you.

 

Cheers,

 

Héctor

 

From: osg-user...@lists.openscenegraph.org [mailto:osg-user...@lists.openscenegraph.org] On Behalf Of Mourad Boufarguine
Sent: jueves, 11 de agosto de 2011 16:50
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG for Android

 

 

On Thu, Aug 11, 2011 at 1:09 PM, Mourad Boufarguine <mourad.bo...@gmail.com> wrote:

Riccardo Corsi

unread,
Aug 12, 2011, 8:49:25 AM8/12/11
to OpenSceneGraph Users
Hi Hector,

maybe you can try to use the ndk-build command instead of "make", and see if it runs smooth.
If so, probably there's something wrong with the makefile generated by CMake...

Regarding the osg Android example, the folder structure is the same as the one of the NDK examples.
Build instructions for native projects are very clear on the ndk online documentation, especially if you use Eclipse.
You basically need to build the native part of the example before (under the jni folder) the same way you compiled the native osg libs, and afterwards build the java files under src. They make use of the native lib, and both the java code and the native library will be packed in the apk by Eclipse (or the compiler you're using).

HTH,
Ricky


2011/8/12 Héctor Martínez <hector....@sensetrix.com>

Héctor Martínez

unread,
Aug 15, 2011, 6:39:55 AM8/15/11
to OpenSceneGraph Users

Hi Riccardo,

 

I have used the ndk-build command and (after long time J ) it has finished apparently without errors. The I have copied the files to the osgViewer project (under the obj folder). After that, I have tried to compile using ndk-build, and I got this error:

 

Compile++ thumb : osgNativeLib <= osgNativeLib.cpp

/bin/sh: -Itype: No such file or directory

make: *** [/cygdrive/c/Projects/Eclipse/osgViewer/obj/local/armeabi/objs/osgNativeLib/osgNativeLib.o] Error 1

 

Of course, there is no such file in that folder. I neither have been able to find that file in the OSG folder. So, maybe compilation has not worked correctly?

 

Cheers

 

Héctor

Reply all
Reply to author
Forward
0 new messages