Page 1 of 1

Unable to compile 3.1.1

Posted: 04 Jan 2014, 17:15
by pititis
hello,

I need your light!. I'm getting this error trying to compile the 3.1.1 (on ubuntu). Compliling 3.1.0 is working without any issue.

Code: Select all

netplay.cpp: In function ‘int upnp_init(void*)’:
netplay.cpp:968:98: error: ‘struct UPNPDev’ has no member named ‘scope_id’
netplay.cpp:974:51: error: ‘struct UPNPDev’ has no member named ‘scope_id’
make[2]: *** [netplay.o] Error 1
Any idea please?

Re: Unable to compile 3.1.1

Posted: 05 Jan 2014, 05:38
by vexed
Update miniUPnP lib... you are using a old version.

https://github.com/Warzone2100/warzone2 ... 12ae862d39

Re: Unable to compile 3.1.1

Posted: 05 Jan 2014, 16:07
by pititis
What do you mean with old version? I downloaded the 3.1.1 from sourceforge. It's the latest stable right?

Re: Unable to compile 3.1.1

Posted: 06 Jan 2014, 01:53
by Berg
vexed wrote:Update miniUPnP lib... you are using a old version.
he meant you operating system was running an older version of miniUpnP

goto you software centre and put miniUpnP in the search box

install libminiupnpc-dev and libminiupnpc8

Re: Unable to compile 3.1.1

Posted: 11 Jan 2014, 03:39
by pititis
Thank you, but there aren't updates on debian or ubuntu repos for libminiupnpc and libminiupnpc-dev (still 1.6), so building a package for ubuntu/debian with the 3.1.1 is now a little bit complicated. I will try to build the package libminiupnpc with the new version to satisface the dependencies.

My ppa with the 3.1 has been used about 300 times, so I will try again. Game isn't over yet :twisted:

Cheers

Re: Unable to compile 3.1.1

Posted: 11 Jan 2014, 04:06
by vexed
It is in the tarball & repo, under 3rdParty/miniupnpc

Also, http://www.playdeb.net/software/Warzone2100 has made 3.1.1 builds as well.