Thanks airpas for exploration. Definitely, I'm going to try C::B. As a test I already tried to successfully compile Box2D lib with C::B. There was no problem there. Can I use ZGEBox2D sources without change? Are there some traps in building dll? ... just to know in advance.
BTW I tried to compile Android version of ZGEBox2D for ARM older than v7a (without HW FP support) and with small amount of bodies (<100 + some static ones) it worked fine also on really weak and old Android device.
Box2D for ZGE
Moderator: Moderators
ok this is the project file with box2D include directory , i am using box2d 2.3.0
the c::b project should compile out of the box .
btw : recently i discovered some gcc flags which dramatically reduce the final binary size .
compiler flags : -ffunction-sections -fdata-sections -Os
linker flags : -Wl -gc-sections
i already rebuild irrlich with those flags and i got after upx it ~700kb
the c::b project should compile out of the box .
btw : recently i discovered some gcc flags which dramatically reduce the final binary size .
compiler flags : -ffunction-sections -fdata-sections -Os
linker flags : -Wl -gc-sections
i already rebuild irrlich with those flags and i got after upx it ~700kb
- Attachments
-
- ZGEBox2D.7z
- (157.62 KiB) Downloaded 832 times
Thanks airpas for the compiling/linking options! I uploaded my version of c::b project (and updated HOWTO.txt) to the Google code repository. With the current version of sources (you used the previous version with fewer functions) the fully functional dll optimized for size has 184KB. Not bad. Should not it rather be optimized for speed?
Re: Box2D for ZGE
I just updated ZgeBox2D to the Box2D GitHub master and released version 1.0. See https://github.com/Rado-1/ZgeBox2D/releases/tag/v1.0 for release details and download compiled library for Windows and Android. Demo project and ZGE external library definition take from the git repo.