Topic-icon Trouble compiling svn 270

  • juhani
  • juhani's Avatar Topic Author
  • Visitor
  • Visitor
17 Mar 2007 06:38 #40 by juhani
juhani created the topic: Trouble compiling svn 270
Should I be able to compile svn 270? I really haven't played around a lot with svn and I'm certainly not sure I have installed all the libraries I need. All i do is 'qmake' and 'make' and end up with

[code:1]/usr/bin/uic-qt4 src/gui/qt/aboutpokerth.ui -o uics/ui_aboutpokerth.h
/usr/bin/uic-qt4 src/gui/qt/connecttoserverdialog.ui -o uics/ui_connecttoserverdialog.h
/usr/bin/uic-qt4 src/gui/qt/createnetworkgamedialog.ui -o uics/ui_createnetworkgamedialog.h
/usr/bin/uic-qt4 src/gui/qt/joinnetworkgamedialog.ui -o uics/ui_joinnetworkgamedialog.h
/usr/bin/uic-qt4 src/gui/qt/newgamedialog.ui -o uics/ui_newgamedialog.h
/usr/bin/uic-qt4 src/gui/qt/settingsdialog.ui -o uics/ui_settingsdialog.h
/usr/bin/uic-qt4 src/gui/qt/startnetworkgamedialog.ui -o uics/ui_startnetworkgamedialog.h
/usr/bin/uic-qt4 src/gui/qt/waitforservertostartgamedialog.ui -o uics/ui_waitforservertostartgamedialog.h
/usr/bin/uic-qt4 src/gui/qt/mainwindow.ui -o uics/ui_mainwindow.h
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/engine -Isrc/gui -Isrc/net -Isrc/engine/local_engine -Isrc/config -Isrc/core/tinyxml -Isrc/gui/qt -Isrc/gui/qt/log -Isrc/gui/qt/connecttoserverdialog -Isrc/core -Isrc/gui/qt/aboutpokerth -Isrc/gui/qt/createnetworkgamedialog -Isrc/gui/qt/joinnetworkgamedialog -Isrc/gui/qt/newlocalgamedialog -Isrc/gui/qt/settingsdialog -Isrc/gui/qt/startnetworkgamedialog -Isrc/gui/qt/waitforservertostartgamedialog -Isrc/gui/qt/mainwindow -Isrc/gui/qt/mainwindow/startsplash -Imocs -Iuics -o obj/game.o src/game.cpp
src/core/tinyxml/tinyxml.h:130: warning: unused parameter ‘doc’
src/core/tinyxml/tinyxml.h:132: warning: unused parameter ‘doc’
src/core/tinyxml/tinyxml.h:135: warning: unused parameter ‘element’
src/core/tinyxml/tinyxml.h:135: warning: unused parameter ‘firstAttribute’
src/core/tinyxml/tinyxml.h:137: warning: unused parameter ‘element’
src/core/tinyxml/tinyxml.h:140: warning: unused parameter ‘declaration’
src/core/tinyxml/tinyxml.h:142: warning: unused parameter ‘text’
src/core/tinyxml/tinyxml.h:144: warning: unused parameter ‘comment’
src/core/tinyxml/tinyxml.h:146: warning: unused parameter ‘unknown’
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/engine -Isrc/gui -Isrc/net -Isrc/engine/local_engine -Isrc/config -Isrc/core/tinyxml -Isrc/gui/qt -Isrc/gui/qt/log -Isrc/gui/qt/connecttoserverdialog -Isrc/core -Isrc/gui/qt/aboutpokerth -Isrc/gui/qt/createnetworkgamedialog -Isrc/gui/qt/joinnetworkgamedialog -Isrc/gui/qt/newlocalgamedialog -Isrc/gui/qt/settingsdialog -Isrc/gui/qt/startnetworkgamedialog -Isrc/gui/qt/waitforservertostartgamedialog -Isrc/gui/qt/mainwindow -Isrc/gui/qt/mainwindow/startsplash -Imocs -Iuics -o obj/pokerth.o src/pokerth.cpp
src/core/tinyxml/tinyxml.h:130: warning: unused parameter ‘doc’
src/core/tinyxml/tinyxml.h:132: warning: unused parameter ‘doc’
src/core/tinyxml/tinyxml.h:135: warning: unused parameter ‘element’
src/core/tinyxml/tinyxml.h:135: warning: unused parameter ‘firstAttribute’
src/core/tinyxml/tinyxml.h:137: warning: unused parameter ‘element’
src/core/tinyxml/tinyxml.h:140: warning: unused parameter ‘declaration’
src/core/tinyxml/tinyxml.h:142: warning: unused parameter ‘text’
src/core/tinyxml/tinyxml.h:144: warning: unused parameter ‘comment’
src/core/tinyxml/tinyxml.h:146: warning: unused parameter ‘unknown’
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Isrc/engine -Isrc/gui -Isrc/net -Isrc/engine/local_engine -Isrc/config -Isrc/core/tinyxml -Isrc/gui/qt -Isrc/gui/qt/log -Isrc/gui/qt/connecttoserverdialog -Isrc/core -Isrc/gui/qt/aboutpokerth -Isrc/gui/qt/createnetworkgamedialog -Isrc/gui/qt/joinnetworkgamedialog -Isrc/gui/qt/newlocalgamedialog -Isrc/gui/qt/settingsdialog -Isrc/gui/qt/startnetworkgamedialog -Isrc/gui/qt/waitforservertostartgamedialog -Isrc/gui/qt/mainwindow -Isrc/gui/qt/mainwindow/startsplash -Imocs -Iuics -o obj/session.o src/session.cpp
In file included from src/net/clientthread.h:24,
from src/session.cpp:24:
src/core/thread.h:24:28: error: boost/thread.hpp: No such file or directory
src/core/thread.h:25:36: error: boost/thread/barrier.hpp: No such file or directory
src/core/thread.h:26:32: error: boost/shared_ptr.hpp: No such file or directory
src/core/tinyxml/tinyxml.h:130: warning: unused parameter ‘doc’
src/core/tinyxml/tinyxml.h:132: warning: unused parameter ‘doc’
src/core/tinyxml/tinyxml.h:135: warning: unused parameter ‘element’
src/core/tinyxml/tinyxml.h:135: warning: unused parameter ‘firstAttribute’
src/core/tinyxml/tinyxml.h:137: warning: unused parameter ‘element’
src/core/tinyxml/tinyxml.h:140: warning: unused parameter ‘declaration’
src/core/tinyxml/tinyxml.h:142: warning: unused parameter ‘text’
src/core/tinyxml/tinyxml.h:144: warning: unused parameter ‘comment’
src/core/tinyxml/tinyxml.h:146: warning: unused parameter ‘unknown’
src/core/thread.h:71: error: ‘boost’ has not been declared
src/core/thread.h:71: error: ISO C++ forbids declaration of ‘timed_mutex’ with no type
src/core/thread.h:71: error: expected ‘;’ before ‘m_isTerminatedMutex’
src/core/thread.h:74: error: ‘boost’ has not been declared
src/core/thread.h:74: error: ISO C++ forbids declaration of ‘timed_mutex’ with no type
src/core/thread.h:74: error: expected ‘;’ before ‘m_shouldTerminateMutex’
src/core/thread.h:75: error: ‘boost’ has not been declared
src/core/thread.h:75: error: ISO C++ forbids declaration of ‘scoped_try_lock’ with no type
src/core/thread.h:75: error: expected ‘;’ before ‘m_userReqTerminateLock’
src/core/thread.h:78: error: ‘boost’ has not been declared
src/core/thread.h:78: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
src/core/thread.h:78: error: expected ‘;’ before ‘<’ token
src/core/thread.h:79: error: ‘boost’ has not been declared
src/core/thread.h:79: error: ISO C++ forbids declaration of ‘mutex’ with no type
src/core/thread.h:79: error: expected ‘;’ before ‘m_threadObjMutex’
src/core/thread.h:81: error: ‘boost’ has not been declared
src/core/thread.h:81: error: ISO C++ forbids declaration of ‘barrier’ with no type
src/core/thread.h:81: error: expected ‘;’ before ‘m_threadStartBarrier’
make: *** [obj/session.o] Error 1
[/code:1]

Is this expected or am I just missing something obvious?;)

Please Log in or Create an account to join the conversation.

  • lotodore
  • lotodore's Avatar
  • Visitor
  • Visitor
17 Mar 2007 06:54 #41 by lotodore
lotodore replied.
It seems like your version of boost is not complete or not current.

Please make sure that you use the current version of boost. You can download it at

http://www.boost.org/

Best of luck to you,

Lotodore

Please Log in or Create an account to join the conversation.

  • juhani
  • juhani's Avatar Topic Author
  • Visitor
  • Visitor
17 Mar 2007 07:18 #42 by juhani
juhani replied.
lotodore wrote:

It seems like your version of boost is not complete or not current.


Yup, that was it.

In case someone else is having same problem, I fixed it like this:
  • download boost from sourceforge for example
  • extract it to your home dir
  • make a symlink from ~/boost_1_33_1/boost to ~/pokerth/src/core

Naturally replace directories with what you use yourself.

(Well, okay, I'm still compiling it but it at least doesn't fail with same error again ;))

Edit: Well, it wasn't so simple - I'm still fighting with boost. At least I now know with what to fight with..

Edit #2: I really shouldn't play around with these in nighttime.. In ubuntu edgy, installing libboost-dev libboost-thread-dev and libboost-thread1.33.1 really makes things a lot easier ;)<br /><br />Post edited by: juhani, at: 2007/03/17 13:27

Please Log in or Create an account to join the conversation.

  • grim
  • grim's Avatar
  • Visitor
  • Visitor
29 Mar 2007 02:58 #50 by grim
grim replied.
Another Edgy build tip - I had to uninstall qt3 to get pokerth to build (even with qt4 installed.)

Please Log in or Create an account to join the conversation.

  • juhani
  • juhani's Avatar Topic Author
  • Visitor
  • Visitor
29 Mar 2007 03:42 #51 by juhani
juhani replied.
Actually that isn't necessary. Ubuntu installs qt dev packages in not a straightforward way.

/usr/bin/qmake is a symlink to /etc/alternatives/qmake which is symlink to either /usr/bin/qmake-qt3 or /usr/bin/qmake-qt4. It seems qmake-qt3 overrides qmake-qt4 - or maybe it's just about which one was installed last.

Anyway, qmake should run fine if you say
$ qmake-qt4 pokerth.pro
instead of
$ qmake pokerth.pro
whether you have qt3-dev-tools installed or not.

Please Log in or Create an account to join the conversation.

Champions of

PokerTH - live

The PokerTH spectator tool.

Member Login

 advert
NOTE! This site uses cookies and similar technologies.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information

We use cookies to personalize content and ads to offer features for social media and analyze the number of hits on our website. We also provide information about your use of our website to our partner for social media, advertising and analysis on.
http://www.google.com/intl/de/policies/privacy/partners/