Hi all,
I am now trying to build osg for android on windows.
I met a error in osgPlugin/gif(9) "Cannot find target to add properties to:
osgdb_"
Code:
INCLUDE_DIRECTORIES( ${GIFLIB_INCLUDE_DIR} )
SET(TARGET_SRC ReaderWriterGIF.cpp )
SET(TARGET_LIBRARIES_VARS GIFLIB_LIBRARY )
#### end var setup ###
SETUP_PLUGIN(gif)
IF(MSVC)
SET_TARGET_PROPERTIES("${TARGET_DEFAULT_PREFIX}${TARGET_NAME}" PROPERTIES
LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT")
ENDIF()
and when I comment out the last three lines(if ~endif). I succeed in
generation in cmake by command line(cmd). I succeeded in compiling as well.
For further information, I am using OSG3.2.1, windows7, visual studio 2013,
android ndk r10 and 3rdparty lib from
http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/43-building-openscenegraph-for-android-3-0-2
I want to make sure that if these lines are necessary.
Thank you.
Best regards,
NIE JUNXIAO
...
Thank you!
Cheers,
Nie
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62022#62022
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org