University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

How to build Smartbody for android | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to build Smartbody for android
August 25, 2015
11:12 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

Hi All,

Thanks for you attention!  I download smartbody code by "Download Snapshot", this is an zip file. After unzip, I am try to build Smartbody example sbjniapp.  But always can not find some xxx.h files. The first is can not find vhcl_log.h, I find Android.mk LOCAL_C_INCLUDES indicate $(LOCAL_PATH)/$(SB_LIB_PATH)/vhcl/include , but I can't find include directory in vhcl.  Do I need to do pre-process before build for android?  

Thanks!

Paul

August 25, 2015
5:48 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I suspect that by using 'download snapshot' you were able to download the SmartBody repository, but not the external repositories that are linked to the SmartBody repositories, which include VHCL and some others. 

If you are running on Windows, I suggest that you use Tortoise SVN to download the trunk/ of the SmartBody repository, and in doing so, you will get all the other files that you need.

 

Ari

August 27, 2015
2:37 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

Ari,

I use svn checkout trunk/ of the Smartbody repository, When I first build sbjniapp, it shows error:

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

jni/minimalwrapper.cpp:216:68: error: no matching function for call to 'DeformableMeshInstance::setMeshScale(double const&)'
jni/minimalwrapper.cpp:216:68: note: candidate is:
jni/../../../core/smartbody/SmartBody//src/sbm/sbm_deformable_mesh.h:213:21: note: virtual void DeformableMeshInstance::setMeshScale(SrVec)
jni/../../../core/smartbody/SmartBody//src/sbm/sbm_deformable_mesh.h:213:21: note: no known conversion for argument 1 from 'double const' to 'SrVec'

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

Then I modify minimalwrapper.cpp, use 

      SmartBody::Vec3Attribute* doubleAttribute = dynamic_cast<SmartBody::Vec3Attribute*>(attribute);

 instead of 

    SmartBody::DoubleAttribute* doubleAttribute = dynamic_cast<SmartBody::DoubleAttribute*>(attribute);

and this error has fixed.

But it shows another error:

[armeabi] Compile++ thumb: smartbody <= local_speech.cpp
jni/../../smartbody/jni/../../../core/smartbody/SmartBody/src/sbm/local_speech.cpp:54:27: fatal error: cerevoice_eng.h: No such file or directory 

I have update code for version 6187, but can not find cerevoice_eng.h in trunk/.   

and I have build smartbody success by vs2010. 

 

Thanks,

Paul.

August 27, 2015
8:58 am
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I just checked in a fix to local_speech.cpp (r6188) by disabling the cerevoice local relay (that's a connection between SmartBody and the Cerevoice speech engine on Android. The Cerevoice engine is not included in the distribution, since it needs to be licensed directly from Cereproc.)  You can change it locally by changing line 29 of local_speech.cpp to:

 

#define USE_CEREPROC_RELAY 0

 

Ari

August 28, 2015
1:44 am
Avatar
Member
Members
Forum Posts: 22
Member Since:
August 23, 2015
sp_UserOfflineSmall Offline

Ari,

Thanks, it can build well.

Paul.

Forum Timezone: America/Los_Angeles

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 69

Members: 122211

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 531

Posts: 2495