Unvanquished / updater

QML based updater to install, update and launch the Unvanquished game.
https://unvanquished.net/download
15 stars 7 forks source link

Can't build on Debian Jessie #27

Closed FreeSlave closed 5 years ago

FreeSlave commented 7 years ago

First try to do autoreconf -i aborts with this error:

configure.ac:24: warning: macro 'AM_PATH_CPPUNIT' not found in librar
configure.ac:24: error: possibly undefined macro: AM_PATH_CPPUNIT

If I run autoreconf again, it proceeds without errors, but still outputs warning:

configure.ac:24: warning: macro 'AM_PATH_CPPUNIT' not found in library

If then I run ./configure it gives another error:

./configure: line 12572: syntax error near unexpected token `1.10.2'
./configure: line 12572: `AM_PATH_CPPUNIT(1.10.2)'
FreeSlave commented 7 years ago

I managed to build aria2 library after installed libcppunit-dev. Now I've encountered errors on building the updater itself. It complains about C++11 features. CXX_STANDARD was introduced only in cmake 3.1.3 while debian jessie provides cmake 3.0.2. After I added --std=c++11 to CMAKE_CXX_FLAGS it compiled fine.

FreeSlave commented 7 years ago

For anyone who encountered same issue: you can take cmake from jessie-backports, it has newer version. Or as I already said add --std=c++11manually. Or just use qmake since it had been merged.