-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows building using Emscripten and 'WITH_BULLET' set #53
Conversation
if 'EMSCRIPTEN' is on, 'find_package(Bullet)' and others are replaced with 'target_compile_options(... -s USE_BULLET=1)' effectifely using the emscripten-ports/Bullet library
the build might have failed because there were 4 jobs running? |
Hi, thanks a lot for your contribution! (I must admit I think Emscripten is doing maybe a bit too much by having random library ports available through a compiler switch, hah 🙂)
Yeah, it seems so. There are two Looking at https://github.com/emscripten-ports/Bullet, it seems to be last updated in 2015 (Bullet 2.82), while this is a nice convenience thing to have (instead of forcing everyone to build Bullet themselves), I think it should allow the users to use a custom-built non-outdated version as well. Will think about the best way how to expose this under some option. |
I believe you can use
so Maybe just a cache variable to use the port? like |
Nice, thanks for digging that up. 👍 I would maybe even make that variable I'm a bit overloaded currently and don't have time to give this a try right now (sorry)... If you want and have time, you can try calling |
on by default if o, passes '-s USE_BULLET=1' to emcc instead of asking cmake for the lib (possibly an old bullet build)
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
=======================================
Coverage 74.59% 74.59%
=======================================
Files 21 21
Lines 874 874
=======================================
Hits 652 652
Misses 222 222 Continue to review full report at Codecov.
|
oof. Also also, emscripten-ports/bullet lib is missing symbols(?) or features, or is too old for the tests anyway. So, I'm going to undo the ci changes, set the default behavior to off, because it still works without the tests, and a warning about that if its turned on |
also added a warning if it is turned on that it may not be compatable with tests
Ya, the emscripten-ports/bullet lib is from 2013. It's just too dang old for the tests |
Hi, sorry for the delays on my end -- just to give you an update: I'm in process of merging this, just wanted to expose the feature to |
Thank you! |
Sorry for the constant delays :) ... extended version merged as 4328706. Turns out the missing header in tests was present in two places and the other place is available consistently everywhere. Not sure why is it duplicated like that, but most importantly the tests pass also with this ages old version. (But I didn't enable it on the CI, I still prefer the new version more.) The Also added this to the docs (and you to credits). Thanks for the contribution! :) |
if 'EMSCRIPTEN' is on, 'find_package(Bullet)' and others are replaced
with 'target_compile_options(... -s USE_BULLET=1)' effectifely using
the emscripten-ports/Bullet library