Topic-icon error when linking with protobuf

  • karlzorn
  • karlzorn's Avatar Topic Author
  • Visitor
  • Visitor
16 Jan 2015 18:29 - 16 Jan 2015 18:33 #25003 by karlzorn
karlzorn created the topic: error when linking with protobuf
I am trying to compile pokerth for windows on a debian mxe system following 'https://github.com/pokerth/pokerth/wiki/How-to-compile-the-latest-development-build-(win32)-of-PokerTH-under-Linux'

the tutorial does not mention that protocol buffers have to be installed

make release triggers the following error:

/opt/mingw/usr/lib/gcc/i686-pc-mingw32/4.8.1/../../../../i686-pc-mingw32/bin/ld: cannot find -lprotobuf
collect2: error: ld returned 1 exit status
make[2]: *** [release/pokerth.exe] Error 1
make[2]: Leaving directory `/root/pokerth'
make[1]: *** [release] Error 2
make[1]: Leaving directory `/root/pokerth'
make: *** [sub-pokerth_game-pro-sub_Release_ordered] Error 2


protocol buffers have been installed ( 2.4.1 was rejected so I installed 2.5 )
I also exported LD_LIBRARY_PATH :

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

I also launched ldconfig, so that when I run protoc , it ask for input file.

it seems clear that protocol buffers library is not found , however in /usr/local/lib there are:

libprotobuf.a libprotobuf-lite.so.8 libprotoc.a pkgconfig
libprotobuf.la libprotobuf-lite.so.8.0.0 libprotoc.la python2.6
libprotobuf-lite.a libprotobuf.so libprotoc.so python2.7
libprotobuf-lite.la libprotobuf.so.8 libprotoc.so.8
libprotobuf-lite.so libprotobuf.so.8.0.0 libprotoc.so.8.0.0

so what am I missing there?

with best regards

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

  • lotodore
  • lotodore's Avatar
  • Visitor
  • Visitor
17 Jan 2015 10:30 #25018 by lotodore
lotodore replied.
By default /usr/local is not used as lib path.
You should use the dev package of protobuf on debian, and also install protoc (protobuf-compiler or something).

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

  • lotodore
  • lotodore's Avatar
  • Visitor
  • Visitor
17 Jan 2015 11:00 #25020 by lotodore
lotodore replied.
If you want to build the cross win32 build:

Please build according to instructions here:
https://github.com/pokerth/pokerth/blob/master/docs/build_mingw_windows.txt
and use the mxe stable branch.

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

  • karlzorn
  • karlzorn's Avatar Topic Author
  • Visitor
  • Visitor
17 Jan 2015 14:25 #25021 by karlzorn
karlzorn replied.
I followed the updated tutoria and ran make protobuf in mingw folder , now he compilation goes forward but still I get an error :

src/net/common/ircthread.cpp:36:39: fatal error: libircclient/libircclient.h: No such file or directory
#include <libircclient/libircclient.h>
^
compilation terminated.
make[2]: *** [obj/ircthread.o] Error 1
make[2]: Leaving directory `/root/pokerth'
make[1]: *** [release] Error 2
make[1]: Leaving directory `/root/pokerth'
make: *** [sub-pokerth_server-pro-sub_Release_ordered] Error 2

it seems this is a bug that have been already spotted
( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759851 )


How can I solve this,m I have the latest version of pokerth.

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

  • karlzorn
  • karlzorn's Avatar Topic Author
  • Visitor
  • Visitor
17 Jan 2015 14:35 #25022 by karlzorn
karlzorn replied.
ok nevermind this, I forgot to run 'make libircclient'

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

  • karlzorn
  • karlzorn's Avatar Topic Author
  • Visitor
  • Visitor
17 Jan 2015 16:39 #25025 by karlzorn
karlzorn replied.
compiled the windows version flawless , worked perfectly. The wiki version of the tutorial is clearly outdated , with that tutorial (https://github.com/pokerth/pokerth/blob/master/docs/build_mingw_windows.txt) it works very well!

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/