CesarIII
New user
Posts: 5 Joined: 15 Dec 2014, 00:02
Post
by CesarIII » 16 Dec 2014, 05:54
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:
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
Posts: 876 Joined: 18 Jul 2008, 04:41
Location: 45N 86W
Post
by stiv » 16 Dec 2014, 21:12
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.
Terminator
Regular
Posts: 1077 Joined: 05 Aug 2006, 13:46
Location: Ukraine
Post
by Terminator » 16 Dec 2014, 23:39
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
Post
by CesarIII » 16 Dec 2014, 23:56
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
Post
by mickae1 » 09 Aug 2015, 10:31
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.
mickae1
New user
Posts: 2 Joined: 09 Aug 2015, 10:28
Post
by mickae1 » 10 Aug 2015, 09:08
On which machine do you work ? version of ubuntu / debian ?