Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

spidermonkey android dependency on STLPORT

91 views
Skip to first unread message

folecr

unread,
Oct 30, 2012, 12:26:42 PM10/30/12
to
We've been using SpiderMonkey to provide a JS VM for scripting cocos2d-x https://github.com/cocos2d/cocos2d-x/tree/gles20/scripting/javascript/bindings

For the project's (non-SpiderMonkey) code we've been using GNU libstdc++ on Android to provide the C++ STL.

After moving to the latest SpiderMonkey sources (from FF17 beta?) I found a dependency on STLPORT in SpiderMonkey. Build fails at link time http://pastebin.com/9sTGJU5A because STL port is not linked in to final binary.

Questions :

- Has anyone used GNU libstdc++ instead of STLPORT when building SpiderMonkey for Android?
- Is there a plan to remove the dependency on STLPORT?
- The Android NDK documentation states that two different C++ STL's CAN NOT be used in the same binary. There is little reason to doubt this statement... but has anyone attempted to work around this restriction? (I haven't)

Any suggestions to get SpiderMonkey building with GNU libstdc++ are much appreciated.
Message has been deleted
Message has been deleted

folecr

unread,
Nov 3, 2012, 4:27:04 AM11/3/12
to
Bug filed here :
https://bugzilla.mozilla.org/show_bug.cgi?id=807423
Ted is cc-ed.

I've attached the patch that fixes it.

Please review. Thanks.

bo...@jobo.tv

unread,
Nov 6, 2012, 1:50:21 PM11/6/12
to
I am using SpideyMonkey static built with GNU libstdc++ in my android app, but it's not the most recent version (~June, 2012) because support for gnustl was removed.

My advise it to get a version from http://hg.mozilla.org/mozilla-central from may, and check the build scripts.
0 new messages