Menu Content/Inhalt
Home arrow Forum

Articles

Poker Tips

Login






Lost Password?
No account yet? Register
PokerTH - Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Error compiling on Ubuntu (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Error compiling on Ubuntu
#1018
Bernd17 (User)
Senior Boarder
Posts: 50
graphgraph
User Offline Click here to see the profile of this user
Error compiling on Ubuntu 1 Year, 3 Months ago Karma: 2  
Hi,

since subversion revision 846 (jpeg and gif support) I get the following error when running make (after qmake):

Code:

pokerth.cpp: (.text+0x43): undefined reference to `qt_plugin_instance_qjpeg()' pokerth.cpp: (.text+0x4f): undefined reference to `qt_plugin_instance_qgif()' collect2: ld returned 1 exit status make[1]: *** [pokerth] Error 1
(Added one space to ": (" to avoid smiley) My system is Ubuntu 7.10, Tribe CD 5. Did someone else experience this error? Or does someone know how to get rid of this error and get PokerTH compiled again? Thanks. Regards Bernd
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1027
chefchenko (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Error compiling on Ubuntu 1 Year, 3 Months ago Karma: 0  
Hi there!

i compiled the game yesterday from sourceforge.net package sources on Ubuntu 7.04.

I had some troubles with the libboost libraries, beside this it worked well.

if you're not a developer you should use those packages.


Greetings
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1036
heyn (User)
Platinum Boarder
Posts: 322
graphgraph
User Offline Click here to see the profile of this user
Re:Error compiling on Ubuntu 1 Year, 3 Months ago Karma: 17  
Hi,

I got this error too, and I think I know what's causing it. Qt4 can apparently be compiled to use the system libraries for gif and jpeg, or it can compile its own libraries. Your and my qt4 have probably been compiled to use the syslibs (and don't have the qtlibs). The svn version seems to count on it that we have the qtlibs.

I commented out the references to jpeg and gif plugins in pokerth.cpp to see what would happen. It compiled, but pokerth won't run.

ldd tells me
libqjpeg.so => not found
libqgif.so => not found

So we either have to recompile qt4 or ask the pokerth devs to find a different solution.

heyn
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1037
Bernd17 (User)
Senior Boarder
Posts: 50
graphgraph
User Offline Click here to see the profile of this user
Re:Error compiling on Ubuntu 1 Year, 3 Months ago Karma: 2  
Hi chefchenko,

on Ubuntu 7.04 I couldn't compile it since the dependency to libboost 1.34 and on Ubuntu 1.33.something was installed. I've looked for some sources to get the 1.34 of libboost but I gave up and took the new Ubuntu 7.10. On Ubuntu 7.10 libboost 1.34 comes pre-installed so I was able to compile PokerTH again.

I take the binaries for Win, but on Linux I have the compiler environment. Developing and compiling is fun

Regards
Bernd
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1038
Bernd17 (User)
Senior Boarder
Posts: 50
graphgraph
User Offline Click here to see the profile of this user
Re:Error compiling on Ubuntu 1 Year, 3 Months ago Karma: 2  
Hi heyn,

yeah, I'm not alone Well, I found out where the error comes from. Doitux gave me the hint, why he did those changes. He's using a static self-compiled Qt and needs it for the binary releases.

Look what lines have been changed in svn rev. 846 --> http://pokerth.svn.sourceforge.net/viewvc/pokerth?view=rev&revision=846.

I removed the changes doitux made in pokerth_game.pro and pokerth.cpp. Then I was able to compile it without failures.

If you are using the "svn up" command you only have to do this once. The update command merges the new revision to your existing changes - but maybe you already knew this

Please try if this workaround fits for your environment, too.

Regards
Bernd
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1039
thpani (User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Re:Error compiling on Ubuntu 1 Year, 3 Months ago Karma: 0  
Had the same problem, workaround works for me.

However, could we get a nicer solution for this until 0.6 gets out? Leaving it as-is would mean we'd have to patch it on systems using non-static qt (which applies to most Linux distributions).
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
designed by www.madeyourweb.com