OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Android build failure with Android NDK r13


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Andy Tai
Guest





PostPosted: Thu Oct 27, 2016 8:11 am    Post subject:
Android build failure with Android NDK r13
Reply with quote

Hi, I followed this page to build OpenSceneGraph 3.4 for Android.
http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4


It builds successfully with NDK r10e.



However, with the current NDK release, r13. I got these error in the cmake stage, on an Fedora 23 GNU/Linux x86-64 system:

cmake `pwd`/../osg.git/  -DCMAKE_TOOLCHAIN_FILE=`pwd`/../osg.git/PlatformSpecifics/Android/android.toolchain.cmake           -DOPENGL_PROFILE="GLES2" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF          -DANDROID_NATIVE_API_LEVEL=15 -DCMAKE_INSTALL_PREFIX=/share/software/open_scene_graph/installed-android-armeabi-v7a  -DBUILD_OSG_EXAMPLES=true
CMake Error at PlatformSpecifics/Android/android.toolchain.cmake:663 (message):
  Could not find any working toolchain in the NDK.  Probably your Android NDK
  is broken.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:98 (include)
  CMakeLists.txt:114 (PROJECT)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!



NDK r13 uses clang as the default compiler, instead of gcc.  Would that be related to the error?  Thanks for any help on this.




--
Andy Tai, (
Only registered users can see emails on this board!
Get registred or enter the forums!
), Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010
Year 2016 民國105年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能

------------------
Post generated by Mail2Forum
Back to top
Rafa Gaitan
Guest





PostPosted: Thu Oct 27, 2016 3:34 pm    Post subject:
Android build failure with Android NDK r13
Reply with quote

Hi Andy,
The toolchain for cmake in osg is probably not updated since the ndk r10e. Unfortunately I'm not working anymore in Android and I don't have time for take a look at it.
I used the toolchain file from the opencv project, so probably updating it with that file will fix that problem
Best regards,
Rafa.

El jue., 27 oct. 2016 10:11, Andy Tai < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> escribió:

Quote:
Hi, I followed this page to build OpenSceneGraph 3.4 for Android.http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4
It builds successfully with NDK r10e.
However, with the current NDK release, r13. I got these error in the cmake stage, on an Fedora 23 GNU/Linux x86-64 system:cmake `pwd`/../osg.git/  -DCMAKE_TOOLCHAIN_FILE=`pwd`/../osg.git/PlatformSpecifics/Android/android.toolchain.cmake           -DOPENGL_PROFILE="GLES2" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF          -DANDROID_NATIVE_API_LEVEL=15 -DCMAKE_INSTALL_PREFIX=/share/software/open_scene_graph/installed-android-armeabi-v7a  -DBUILD_OSG_EXAMPLES=true CMake Error at PlatformSpecifics/Android/android.toolchain.cmake:663 (message):  Could not find any working toolchain in the NDK.  Probably your Android NDK  is broken.Call Stack (most recent call first):  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:98 (include)  CMakeLists.txt:114 (PROJECT)CMake Error: CMAKE_C_COMPILER not set, after EnableLanguageCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage-- Configuring incomplete, errors occurred!
NDK r13 uses clang as the default compiler, instead of gcc.  Would that be related to the error?  Thanks for any help on this.

-- Andy Tai, (
Only registered users can see emails on this board!
Get registred or enter the forums!
), Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010Year 2016 民國105年自動的精神力是信仰與覺悟自動的行為力是勞動與技能











_______________________________________________ osg-users mailing list (
Only registered users can see emails on this board!
Get registred or enter the forums!
) http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
rocco martino
Guest





PostPosted: Thu Oct 27, 2016 5:13 pm    Post subject:
Android build failure with Android NDK r13
Reply with quote

Hi,


everything works fine for me following the same instructions with the same osg/ndk versions.
Maybe your toolchain is actually broken.


Martino


Il giorno gio 27 ott 2016 alle ore 17:34 Rafa Gaitan < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> ha scritto:

Quote:

Hi Andy,
The toolchain for cmake in osg is probably not updated since the ndk r10e. Unfortunately I'm not working anymore in Android and I don't have time for take a look at it.
I used the toolchain file from the opencv project, so probably updating it with that file will fix that problem
Best regards, Rafa. El jue., 27 oct. 2016 10:11, Andy Tai < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> escribió:
Quote:
Hi, I followed this page to build OpenSceneGraph 3.4 for Android.http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4
It builds successfully with NDK r10e.
However, with the current NDK release, r13. I got these error in the cmake stage, on an Fedora 23 GNU/Linux x86-64 system:cmake `pwd`/../osg.git/  -DCMAKE_TOOLCHAIN_FILE=`pwd`/../osg.git/PlatformSpecifics/Android/android.toolchain.cmake           -DOPENGL_PROFILE="GLES2" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF          -DANDROID_NATIVE_API_LEVEL=15 -DCMAKE_INSTALL_PREFIX=/share/software/open_scene_graph/installed-android-armeabi-v7a  -DBUILD_OSG_EXAMPLES=true CMake Error at PlatformSpecifics/Android/android.toolchain.cmake:663 (message):  Could not find any working toolchain in the NDK.  Probably your Android NDK  is broken.Call Stack (most recent call first):  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:98 (include)  CMakeLists.txt:114 (PROJECT)CMake Error: CMAKE_C_COMPILER not set, after EnableLanguageCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage-- Configuring incomplete, errors occurred!
NDK r13 uses clang as the default compiler, instead of gcc.  Would that be related to the error?  Thanks for any help on this.

-- Andy Tai, (
Only registered users can see emails on this board!
Get registred or enter the forums!
), Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010Year 2016 民國105年自動的精神力是信仰與覺悟自動的行為力是勞動與技能











_______________________________________________ osg-users mailing list (
Only registered users can see emails on this board!
Get registred or enter the forums!
) http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________ osg-users mailing list (
Only registered users can see emails on this board!
Get registred or enter the forums!
) http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts OpenSceneGraph static linking for And... tanshihaj Build system [build] 1 Thu Sep 21, 2017 12:56 pm View latest post
No new posts Qt Quick and Android tanshihaj General 4 Tue Sep 19, 2017 2:28 pm View latest post
No new posts OpenSceneGraph static linking for And... tanshihaj Build system [build] 1 Sun Aug 13, 2017 10:09 pm View latest post
No new posts osg plugin couldn't load an osgb or i... first_gle General 2 Sat May 27, 2017 3:52 am View latest post
No new posts A problem with regard to std:istream ... first_gle General 2 Fri May 26, 2017 6:11 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP