Jump to content

on Ubuntu trusty, build failing at glooxwrapper.cpp


Recommended Posts

I was curious to see some output from different compilers and version so I set up a code integration test on my 0ad GitHub fork.

Can anyone see why the build is failing at glooxwrapper.cpp?

As far as I can tell, I've installed all the required dependencies. The first 3 jobs shown here are running on trusty, using gcc-4.8, 7.0, and clang 5.0. Each one fails at the gloox build:

https://travis-ci.org/andy5995/0ad/builds/417847354

script used to install dependencies

.travis.yml

Edited by andy5995
Link to comment
Share on other sites

7 hours ago, vladislavbelov said:

I think because of a different version of the gloox library, probably @fcxSanya might know.

I concur, we need 1.0.10+, see BuildInstructions:

Quote

libgloox (needed for the lobby; at least 1.0.10, previous versions are know to have connection problems; pass --without-lobby to update-workspaces.sh to exclude the lobby)

(actually it seems findPlugin method was introduced in 1.0.10, see gloox changelog, so previous versions not only have connection problems, but aren't compatible at all)

And Ubuntu Trusty has only 1.0.9: https://packages.ubuntu.com/trusty/libgloox-dev

I believe I used Trusty when working on #2305 , but I probably compiled a newer version of gloox from sources.

So either find (in ppa or somewhere) or compile gloox 1.0.10+ or build 0ad without lobby.

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
On 8/18/2018 at 7:58 PM, fcxSanya said:

or build 0ad without lobby

I see premake4/5.lua translating '`without-lobby` to `CONFIG2_LOBBY` and this is used only in JSInterface_Lobby.cpp but not XmppClient.cpp or glooxwrapper. I see that premake excludes gloox if without-lobby is passed. But many files still refer to g_XmppClient and it's members, so it seems the setting doesn't exclude all of the lobby code, and thus may still result in unwanted binary code and compile errors?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...