Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

[Draft] Add The Battle of Wesnoth egg #2863

Closed
wants to merge 3 commits into from

Conversation

mattman107
Copy link
Contributor

Description

This is a draft for an egg for The Battle of Wesnoth. For the moment I will skip the checklist because this is not ready to be merged.

I'm having issues getting the program to actually run. Getting this error:

[Pterodactyl Daemon]: Finished pulling Docker container image
:/home/container$ ./battleForWesnoth/wesnothd
./battleForWesnoth/wesnothd: error while loading shared libraries: libboost_iostreams.so.1.74.0: cannot open shared object file: No such file or directory

In the install script I have installed the required packages and the program builds seemingly properly, but for some reason it is not able to use some/all of these boost libraries when running the exe.

If you check out the '/battleForWestnoth/CMakeCache.txt' file after building, it is looking for the Boost libraries in '/usr/lib/x86_64-linux-gnu/'. Checking that directory the libraries are missing (as expected).

I followed the build instructions pretty much to a tee. Any thoughts?

Checklist for all submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you tested and reviewed your changes with confidence that everything works?
  • Did you branch your changes and PR from that branch and not from your master branch?
    • If not, why?:

New egg Submissions

  1. Does your submission pass tests (server is connectable)?
  2. Does your egg use a custom docker image?
    • Have you tried to use a generic image?
    • Did you PR the necessary changes to make it work?
  3. Have you added the egg to the main README.md and any other README files in subdirectories of the egg (e.g /game_eggs) according to the alphabetical order?
  4. Have you added a unique README.md for the egg you are adding according to the alphabetical order?
  5. You verify that the start command applied does not use a shell script
    • If some script is needed then it is part of a current yolk or a PR to add one
  6. The egg was exported from the panel

@mattman107 mattman107 marked this pull request as draft April 6, 2024 03:48
@QuintenQVD0
Copy link
Collaborator

I know the docs or very out of date but please reed the contribute docs in the repo. Ir explains the install proces and the use of 2 images. And wy packages you install in the install container do not get transfert to the main container as it uses a complete other image.

@mattman107
Copy link
Contributor Author

Oh okay so all of the installed packages are lost when moving to the main container. Thank you for pointing me in right direction! When I get a chance I will try again.

I'm going to try copying those libraries to /mnt/container and pointing the cmake stuff to there.

@QuintenQVD0
Copy link
Collaborator

Oh okay so all of the installed packages are lost when moving to the main container. Thank you for pointing me in right direction! When I get a chance I will try again.

I'm going to try copying those libraries to /mnt/container and pointing the cmake stuff to there.

if it is just like 1 or 2 extra needed packages, those can be just added to the server yolk image.

@mattman107
Copy link
Contributor Author

Oh okay so all of the installed packages are lost when moving to the main container. Thank you for pointing me in right direction! When I get a chance I will try again.
I'm going to try copying those libraries to /mnt/container and pointing the cmake stuff to there.

if it is just like 1 or 2 extra needed packages, those can be just added to the server yolk image.

I have to see how many are required at runtime. If it is all of the boost libs then there are 9 the program uses. It might not be reasonable if all of them are needed.

@mattman107
Copy link
Contributor Author

I'm having a rough time getting this to work. It is currently using the generic debian yolk and I assume (let me know if I am wrong) that we wouldn't want to really add many more packages to that. Since this game is requiring specific packages in the main container would this be a situation where it should get it's own docker image?

@gOOvER
Copy link
Contributor

gOOvER commented Apr 6, 2024

I'm having a rough time getting this to work. It is currently using the generic debian yolk and I assume (let me know if I am wrong) that we wouldn't want to really add many more packages to that. Since this game is requiring specific packages in the main container would this be a situation where it should get it's own docker image?

create a Game specific image , only for the game, if it needs special packages. So its easier

@QuintenQVD0
Copy link
Collaborator

if it needs a lot of custom package then that indeed is better.

@mattman107
Copy link
Contributor Author

Moving draft to the new games repo.

@mattman107 mattman107 closed this Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants