Skip to content
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

easy way to switch from bundled libs to system #5

Closed
wants to merge 3 commits into from

Conversation

ignatenkobrain
Copy link
Contributor

We don't like use bundled libraries in Fedora[0].
In this patch-set I want to improve easy switch.

General idea:
If system lib found - use it. If not found - use bundled.

In patch #3 I will apply patch if system bullet has version >= 2.81, because
there was changes and STK can't compile.

In the future I will update bundled bullet to 2.81, merge that patch and drop it.

[0]https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries

I've sent this patches to devel lists, but for sure sending pull request here..
http://sourceforge.net/mailarchive/message.php?msg_id=31856369
http://sourceforge.net/mailarchive/message.php?msg_id=31856370
http://sourceforge.net/mailarchive/message.php?msg_id=31856371
http://sourceforge.net/mailarchive/message.php?msg_id=31856372

We will try to detect system bullet.
If it found - we will use it. If not found - use bundled bullet.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
We will try to detect system enet.
If it found - we will use it. If not found - use bundled enet.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
We need to apply patch when we compiling STK with new version of bullet
libraries.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Reference: 49f5200
@hiker
Copy link
Contributor

hiker commented Jan 30, 2014

Hi,

I had a good lock at this patch. As stated before, since we have modified bullet, enet, and especially irrlicht significantly, we do not want to use any system libs, since they might break things - sometimes subtle (e.g. physics might behave differently, that has happened in the past where a friction algorithm was changed), or severely (incorrect graphics, crash). I checked the changes to enet, and they were done during the GSoC, and I will clean this up (very likely revert enet to its original state), in which case at least enet could be replaced.

Updating bullet to a newer version is a major undertaking, since (in the past) the physics behaviour can change drastically from one version to the next (which is why bullet recommends not to use a system library). If we should decide to update (unlikely at this stage tbh), and if we don't need a patched version of bullet anymore, I'll apply the cmake change to detect a system bullet.

I also tried to apply the patches to bullet separately , but they are indeed all specific to bullet 2.81 only, so I can't use them.

I'll close that pull request, but I opened #21 to unmodify irrlicht, and then apply the part of the patch so that enet can be exchanged.

@hiker hiker closed this Jan 30, 2014
@ignatenkobrain ignatenkobrain deleted the bundled branch May 14, 2014 11:59
@YakBizzarro YakBizzarro mentioned this pull request Jul 12, 2014
@hiker hiker mentioned this pull request Oct 11, 2014
@Popolon Popolon mentioned this pull request Jan 25, 2015
hiker pushed a commit that referenced this pull request May 9, 2018
@Benau Benau mentioned this pull request Oct 12, 2018
Benau pushed a commit to Benau/stk-code that referenced this pull request May 6, 2021
willliam9 added a commit to SuperTuxKartIRC/stk-code that referenced this pull request Apr 10, 2024
- Adding the getTeamsInGame() and the setTeamsInGame method()
Some modifications will be necessary.
Nomagno referenced this pull request in Nomagno/stk-code Dec 10, 2024
… config names, disconnection time

Please note that the results table schema may change later before merging #5. In this commit, the changes are:
- added items TEXT, kart_color REAL, is_quit INTEGER
- result stores kart's race time independently of whether it's a quit or not
- config stores kart characteristics file name, items stores powerup file name, empty if the name is default.
One may need to change NULL values in config and items to an empty string.
Nomagno referenced this pull request in Nomagno/stk-code Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants