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

Port to libxml++-3.0 #612

Merged
merged 1 commit into from Jun 6, 2018
Merged

Port to libxml++-3.0 #612

merged 1 commit into from Jun 6, 2018

Conversation

rezso
Copy link

@rezso rezso commented May 24, 2017

Compiled with libxml++-3.0 3.0.0, but not tested in runtime.

@Quintus
Copy link
Member

Quintus commented May 25, 2017 via email

@rezso
Copy link
Author

rezso commented May 25, 2017

Unfortunately I'm not familiar with cmake, so I don't know, how to find different library versions.
Can you help me in this?

@Quintus
Copy link
Member

Quintus commented May 25, 2017 via email

@datahead8888
Copy link
Member

wait for the active TSC developers to give a statement on TSC's pre-next-LTS releasability

I would roughly guess that it will be at least a year and a half until release 2.1 comes out. A lot of this depends on availability of programmers and when they become available.

@refi64
Copy link
Member

refi64 commented Jun 10, 2017

Realistically, we should probably be using something like AppImages for distribution anyway, so I'm not sure why libxml++'s version would be too much of a problem...

If someone's trying to build the code themselves, the other dependencies will likely give them more hell anyway.

@chocorho
Copy link

chocorho commented Apr 27, 2018

Hey, I just found this project, and I would love to contribute, but I cannot build the game in order to test it. The problem I'm getting involves this same libxml++ package; the error is:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find LibXmlPP (missing: LibXmlPP_INCLUDE_DIRS LibXmlPP_LIBRARY)

Could someone walk me through how to resolve this? (You mentioned #ifdefs, but where would I put them?) If this is too much to ask, then I will try to learn CMake on my own. I just get the impression that, if I could get this issue resolved, then it would allow me to get to contributing to the code (e.g., testing, debugging, adding functionality) much sooner.

@xet7
Copy link
Member

xet7 commented Apr 27, 2018

@chocorho

https://github.com/Secretchronicles/TSC
there run:

  1. install-build-dependencies.sh
  2. build-and-run.sh

Requires Debian 9 or Ubuntu 16.10 or newer.

@chocorho
Copy link

First of all, thanks for the quick response. I've done some more research and I realized that I should've given more info about my environment: I'm running gentoo linux, and since libXml++ is not a package offered by portage, I've been installing it manually from source. This is fine in theory (it compiles just fine), but I need to make sure that CMake finds it (which I think is why it was complaining about LibXmlPP_INCLUDE_DIRS). Since I'm not really well-versed in CMake, this may take some time, but I expect to get it sorted.

That, or I could simply use a Debian VM and have it work more smoothly. Anyway, thank you for pointing me in the right direction.

@xet7
Copy link
Member

xet7 commented Apr 27, 2018

@chocorho

Dependencies are listed here:
https://github.com/Secretchronicles/TSC/blob/devel/INSTALL.md

Maybe @Quintus could describe how he did build TSC on Gentoo.

@Quintus
Copy link
Member

Quintus commented Apr 28, 2018

@chocorho libmxml++ is in the Portage tree. The package is called dev-cpp/libxmlpp, but unless you apply this PR, you need to force portage to install the 2.6 slot of the package; it will default to the 3.0 slot otherwise. Thus, there's no need to compile libxml++ from source.

If you plan to contribute to our project on a regular base, by all means, welcome! In that case, you should occasionally drop into our IRC channel #secretchronicles on Freenode, where most things are discussed before they make it into this tracker or to the mailinglist.

@xet7 On the PR itself, I think we can merge it now. Just yesterday the new Ubuntu LTS 18.04 was released and I'm sure it contains libxml++3.0 by now. Just test it builds on Ubuntu 18.04 before pushing the merge to devel.

To everyone: please, keep the discussion in this ticket on topic, which is the specific PR suggested. General questions should be directed to the mailinglist mentioned above. Otherwise we mix things up that don't belong to one another.

@xet7
Copy link
Member

xet7 commented Apr 29, 2018

Sorry, libxml++3.0-dev is not available in Ubuntu 18.04 and Debian 10. This can not be merged yet.

@Quintus
Copy link
Member

Quintus commented Apr 30, 2018 via email

@Quintus Quintus merged commit 051bc83 into Secretchronicles:devel Jun 6, 2018
@Quintus
Copy link
Member

Quintus commented Jun 6, 2018

I've now merged this PR and amended the patch so that TSC now supports both libxml++2.6 and libxml++3.0 by introducing a new compilation option USE_LIBXMLPP3, which defaults to OFF and is marked as EXPERIMENTAL.

Testing with libxml++3.0 is welcome, but until at least one of Ubuntu LTS or Debian has libxml++3.0 in the repositories I won't enable that option by default.

@Quintus Quintus mentioned this pull request Jun 7, 2018
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.

None yet

6 participants