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 

Building OSG for Android on Windows


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
zcregan
Newbie


Joined: 21 Jul 2016
Posts: 1

PostPosted: Thu Jul 21, 2016 5:03 am    Post subject:
Building OSG for Android on Windows
Reply with quote

Hi,

I'm working on a mobile app which displays interactive 3D indoor maps. I mainly work on iOS and have been using Apple's SceneKit with good results. On Android we've been using a 3D library called JPCT, but the results aren't quite what we were hoping for. JPCT has issues rendering some of our models and the performance is nowhere near what we're seeing on iOS with SceneKit (and that's on Android devices with significantly more power than the iPhones we're testing on). I'm really interested in trying out OpenSceneGraph as a replacement for JPCT. I'm trying to setup a barebones Android application using OpenSceneGraph to load an OBJ and MTL file from disk with some basic camera controls.

I can't get OSG compiled for Android though. I've been following the instructions from the OpenSceneGraph website > "Documentation" > "Platform Specifics" > "Android" > "Building OpenSceneGraph for Android [3.3.x - 3.4]". I'm on Windows, I've cloned the 3.4 branch to my system, downloaded the latest Android NDK, installed the latest version of cmake, and then ran this command:
Quote:
cmake .. -DANDROID_NDK=C:\Users\Zachary\Desktop\android-ndk-r12b -DCMAKE_TOOLCHAIN_FILE=../PlatformSpecifics/Android/android.toolchain.cmake -DOPENGL_PROFILE="GLES2" -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF -DANDROID_NATIVE_API_LEVEL=15 -DANDROID_ABI=armeabi -DCMAKE_INSTALL_PREFIX=C:\Users\Zachary\Desktop\OpenSceneGraph
But I'm getting this error:
Quote:
CMake Error at CMakeLists.txt:52 (PROJECT): CMAKE_SYSTEM_NAME is 'Android' but 'NVIDIA Nsight Tegra Visual Studio Edition' is not installed.


Do I actually need to get this NVIDIA Nsight Tegra Visual Studio Edition? I haven't seen that dependency mentioned anywhere on the OSG website, forum, or through any Googling so I thought I must be doing something wrong. I appreciate any help. I have some experience setting up builds for iOS with Xcode, but this NDK stuff is beyond me.

Thank you!
Zach
Back to top
View user's profile Send private message
Jan Ciger
Guest





PostPosted: Thu Jul 21, 2016 8:25 am    Post subject:
Building OSG for Android on Windows
Reply with quote

On Thu, Jul 21, 2016 at 7:04 AM, Zach Cregan < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,
...
 
Quote:
Do I actually need to get this NVIDIA Nsight Tegra Visual Studio Edition? I haven't seen that dependency mentioned anywhere on the OSG website, forum, or through any Googling so I thought I must be doing something wrong. I appreciate any help. I have some experience setting up builds for iOS with Xcode, but this NDK stuff is beyond me.

Thank you!
Zach




I haven't built OSG for Android in a while, but a quick check of the current code doesn't show the above line in the build system. I recall the Tegra stuff was not really necessary and I believe it is not even avaliable anymore. 3.4 is quite old, try to update to the latest 3.5 branch or even master and that should get rid of that issue.


Apropos, if you want to save yourself a lot of trouble, don't use the official NDK from Google but the repackages Crystax variant: https://www.crystax.net/en/android/ndk


It should be a drop-in replacement but with a ton of bugs fixed. (NDK is a serious pain in the backside ...)


Regards,


J.

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] 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 7 Tue Sep 19, 2017 2:28 pm View latest post
No new posts Faster framerate under Windows debugger? Chris Hanson General 1 Fri Sep 08, 2017 3:52 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 memory issue about x-windows in Linux Alberto Luaces General 1 Tue Aug 01, 2017 4:38 pm 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