Unable to compile master branch: Qt5 missing

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
CesarIII
New user
Posts: 5
Joined: 15 Dec 2014, 00:02

Unable to compile master branch: Qt5 missing

Post by CesarIII »

I'm using Ubuntu x86_64 and have the Qt5 packages installed.
I got the master branch with this command:

Code: Select all

git clone -b master --single-branch https://github.com/Warzone2100/warzone2100.git wzmaster
Then, to compile, I try:

Code: Select all

sh autogen.sh
./configure
make
The problem is that ./configure throws the following error:

Code: Select all

checking for QT5... no
configure: error: Qt 5 not found - required!
... and I am pretty sure I got all the needed packages installed.
I found another thread in the forum about the same problem but it didn't help to me. Didn't continue it because the title was unrelated.

Thanks in advance :)
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Unable to compile master branch: Qt5 missing

Post by stiv »

Did you install *both* Qt 5 libs AND Qt 5 headers?

Usually there is the base package and a -dev or -devel package. You need base to run the game and -dev to compile it.
User avatar
Terminator
Regular
Regular
Posts: 1077
Joined: 05 Aug 2006, 13:46
Location: Ukraine
Contact:

Re: Unable to compile master branch: Qt5 missing

Post by Terminator »

I bet you have missing QT5Script. Hope ubuntu wont have any problems with this, cause in kubuntu I can't properly install QT5, I belive cause KDE4 that uses QT4.
Death is the only way out... sh*t Happens !

Russian-speaking Social network Group http://vk.com/warzone2100
CesarIII
New user
Posts: 5
Joined: 15 Dec 2014, 00:02

Re: Unable to compile master branch: Qt5 missing

Post by CesarIII »

Did you install *both* Qt 5 libs AND Qt 5 headers?
I installed the QT5 core ones, but...
I bet you have missing QT5Script.
... I didn't install these.
The fix was "apt-get install qtscript5-dev".
Thanks for your help.
mickae1
New user
Posts: 2
Joined: 09 Aug 2015, 10:28

Re: Unable to compile master branch: Qt5 missing

Post by mickae1 »

Hi I had QT missing, and now I have a problem while compiling :


make[2]: Entering directory `/home/mickael/warzone/warzone2100/lib/framework'
g++ -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D_REENTRANT -I/usr/include/SDL2 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG -DWZ_DATADIR="\"/usr/local/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty -I../../3rdparty/quesoglc -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtScript -O0 -ggdb -Werror -Wno-enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtScript -fPIC -std=c++11 -fstack-protector -MT crc.o -MD -MP -MF .deps/crc.Tpo -c -o crc.o crc.cpp
In file included from crc.cpp:22:0:
../../lib/netplay/netsocket.h:119:46: error: ‘returns_nonnull’ attribute directive ignored [-Werror=attributes]
WZ_DECL_ALLOCATION SocketSet *allocSocketSet(); ///< Constructs a SocketSet.
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Unable to compile master branch: Qt5 missing

Post by vexed »

That isn't a Qt5 missing error... that is a too old compiler issue.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
mickae1
New user
Posts: 2
Joined: 09 Aug 2015, 10:28

Re: Unable to compile master branch: Qt5 missing

Post by mickae1 »

On which machine do you work ? version of ubuntu / debian ?
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Unable to compile master branch: Qt5 missing

Post by vexed »

I work on many machines, you just need to update gcc to a newer build that understands the directives.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Post Reply