arxarian / kbang

Automatically exported from code.google.com/p/kbang
GNU General Public License v2.0
2 stars 1 forks source link

Installing trouble on Ubuntu Hardy #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I had new to Kbang, and I hope this is the right way to found solution to
my problem.
I had downloaded the source code by svn (first, and from the .tar.bz2 pack
after, 0.1.3) of kbang, I think it's the 123rev.
So, using the istrucion on manual I had compiled the source whit qt4, but
in every case I receive this error:

src/server/player.cpp
src/server/player.cpp: In member function ‘bool
Player::removeCardFromHand(PlayingCard*)’:
src/server/player.cpp:194: error: ‘class QList<PlayingCard*>’ has no member
named ‘removeOne’
src/server/player.cpp: In member function ‘bool
Player::removeCardFromTable(PlayingCard*)’:
src/server/player.cpp:206: error: ‘class QList<PlayingCard*>’ has no member
named ‘removeOne’
src/server/player.cpp: In member function ‘bool
Player::removeCardFromSelection(PlayingCard*)’:
src/server/player.cpp:211: error: ‘class QList<PlayingCard*>’ has no member
named ‘removeOne’
make[1]: *** [obj/server/player.o] Error 1
make[1]: Leaving directory `/home/piero/Documenti/BANG/soft/kbang-0.1.3-src'
make: *** [sub-kbang_server-pro-make_default-ordered] Error 2

I'm working on Ubuntu Hardy  whit  2.6.24-24-generic kernel...
Thank's for any solution

Original issue reported on code.google.com by piero.da...@gmail.com on 7 Jul 2009 at 3:59

GoogleCodeExporter commented 9 years ago
The problem seems to be in the old version of Qt4. The compiler cannot find 
removeOne
method of QList template class. According to the Qt4 documentation [1], this 
method
was introduced in Qt 4.4.

Unfortunatelly there is Qt 4.3 in Hardy, so you will probably need to upgrade to
newer version. I'm not very familiar with Ubuntu, but at [2] you can check which
version of Ubuntu has the new enough version of Qt4.

If you don't want to upgrade your Ubuntu, you can still solve the problem with 
more
or less hacky way. Try to google "qt 4.4 hardy" (without quotes) and you will 
surely
find a solution.

If you have any other questions, please send me an email.

Cheers,
MacJariel

Links:
[1] http://doc.trolltech.com/qlist.html#removeOne
[2] http://packages.ubuntu.com/hardy/libqt4-dev

Original comment by MacJar...@gmail.com on 7 Jul 2009 at 4:32