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
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
exited with code 3.
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
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
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
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
Thank you for the response. I am having some problems with the MINGW/MSYS make. Here is the problem:
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.
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
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
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?
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:
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