[Guide] How to install Pokemon Online (completely step by step) [linux]

Discussion in 'Help' started by masterhigh, Jun 4, 2010.

Moderators: E.T., Zoroark
  1. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    Anyway I want to know how to install Pokemon Online the right way and how to open the file step by step
    p.s why dont you guys make Pokemon Online a .deb file instead of .tar.gz ,It will be a hell of a lot easier!!!

    Edit by coyotte508:

    You need Qt 4.6 at least, some ubuntu still have 4.5, in that case download the libraries from the Qt website.

    Also, now, Pokemon Online also has its own libraries:

     
    Last edited by a moderator: Sep 22, 2010
  2. Kalyu

    Kalyu New Member

    Joined:
    Jun 3, 2010
    Messages:
    9
    Likes Received:
    0
    Uh, isn't it just an .exe? I just clicked an installer.

    Oh, the tags say Linux. You probably should have specified that in the post.
     
    Last edited: Jun 4, 2010
  3. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Well, being a true linux user, you should compile it from the source...

    [/out]

    We have no linux expert here, but to play Pokémon Online just extract the file (right click - extract) and in the extracted folder, run the "Pokemon Online" file? (right click and run, or go in a terminal in the right folder, and type "/Pokemon Online")
     
  4. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    I right clicked and extracted it clicked on the executable and nothing happened.
     
  5. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    Oops my bad i did it at the last second....
     
  6. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Do you know how to run something in a terminal, and can you try that? Also did you install the required libs as specified in the downloads page?
     
  7. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    Yes , well I think I did can u tell me how to install it step by step because I added the required libs but its not working it would be a lot better making the client a .deb file rather than .tar.gz its a lot easier to install and it installs properly all you got to do is put in a ppa key or do it unauthorized thats it but I don't know how to use tarballs (.tar.gz) properly if i want to install something i just go on terminal, synaptic package manager or download .deb (did you know that .deb files are like the .exe but Linux style! Can you please help me or update your client ^.^ If you can make .tar.gz whats so difficult about .deb (even though i can't do it) .....:D:confused:
     
  8. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    .tar.gz is only right click + make archive.

    It's not me that does the releases, but the other people using linux don't have any problems. The thing I can do is walk you through building this from the source (in fact just download the sources using a SVN program, and run the makefile after having installed teh devlibs), but really if you have extracted everything in one folder and then go in the terminal and in that folder with the terminal, and then run it from the terminal, it should work.
     
  9. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    i think the one of reasons it's not working because im using xfce a lightweight desktop linux . Anyway your not really helping me I mean which libraries to really install ? Because I extracted clicked on the exectutable and nothing happened!
     
  10. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    and what is teh devlibs?? i went on synaptic i saw nothing.....
     
  11. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    You should put videos on youtube to help people to install this program....
     
  12. Darkness

    Darkness DN

    Joined:
    Apr 21, 2010
    Messages:
    206
    Likes Received:
    7
    ....its pretty simple and easy to install. There is no need for video tutorials. If it becomes too much of a problem, then maybe we can write a small guide.
     
  13. masterhigh

    masterhigh New Member

    Joined:
    Jun 4, 2010
    Messages:
    8
    Likes Received:
    0
    ok if its so easy to install why dont you tell me how to do it step by step.
     
  14. Ihhani

    Ihhani New Member

    Joined:
    May 27, 2010
    Messages:
    11
    Likes Received:
    0
    You can install and run the windows version with wine, it works very well.
    Anyway, if you want to use the Linux version, these are the steps (I've done this with ubuntu 10.04, I don't know if it'll work with other distributions):
    1-Open a Terminal.
    2-Write sudo apt-get install libphonon4. It'll ask you to put your admin password. Write it.
    3-Write sudo apt-get install libqtgui4.
    4-Write sudo apt-get install libqtcore4.
    5-Write sudo apt-get install libqt4-xml.
    6-Write sudo apt-get install libqt4-network.
    7-Write sudo apt-get install libzip1.
    8-If you want to host a server, write sudo apt-get install libqt4-script. Also, you'll need to install SQLite support. You can do this by typing sudo apt-get install libqt4-sql-sqlite.
    9-Download the Linux-Pokemon-Online.tar.gz file from the web. Extract it.
    10-A file named Linux-Pokemon-Online.tar will be created. Extract it.
    11-A folder named Pokemon-Online will be created. Open it and double clic the file named "Pokemon-Online".
    12-If you want to host a server, double clic the file named "Server".
     
    Last edited by a moderator: Jul 20, 2010
  15. Darkness

    Darkness DN

    Joined:
    Apr 21, 2010
    Messages:
    206
    Likes Received:
    7
    First of all I don't use Linux. Secondly, you got your reply, thanks to Ihhani.
     
  16. Dash_Merc

    Dash_Merc New Member

    Joined:
    Jun 7, 2010
    Messages:
    20
    Likes Received:
    0
    Is there a way to get these packages with yum instead of apt? I am unable to install apt, despite my best efforts and following several guides online to the letter. I spent hours trying to install apt, to no avail, because of an obscure missing package that's apparently necessary to install apt on CentOS 5.

    Ugh.

    Linux.

    So anyway. If anybody knows where I can get the packages listed here using yum, or just doing manual rpm installs, I would greatly appreciate the shared knowledge. Thank you.
     
  17. Ihhani

    Ihhani New Member

    Joined:
    May 27, 2010
    Messages:
    11
    Likes Received:
    0
    In Ubuntu, you can also install them through Synaptic package manager. Try to use your distro package manager.
     
  18. Dash_Merc

    Dash_Merc New Member

    Joined:
    Jun 7, 2010
    Messages:
    20
    Likes Received:
    0
    I'm using CentOS 5, as it's all I have access to right now. I don't have a spare hard drive to install Ubuntu on, and I don't feel like trying to configure a multiboot. The only thing I think I'd have a problem with in that list, however, is libphonon. What is that? qt, I can just install the whole framework from the .tar.gz I can download from their site, and libzip as well...but libphonon is standing in my way.
     
  19. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    libphonon should be in the Qt package.
     
  20. Dash_Merc

    Dash_Merc New Member

    Joined:
    Jun 7, 2010
    Messages:
    20
    Likes Received:
    0
    Then I have all the required components. I'll just go ahead and give it a run then :P
     
  21. Dash_Merc

    Dash_Merc New Member

    Joined:
    Jun 7, 2010
    Messages:
    20
    Likes Received:
    0
    ...and trying to install qt on CentOS is proving to be insurmountable. I'm tired of this stupid OS. It's stable and great for business, but it's damn near impossible to install ANYTHING on it that can't be gotten with yum or installed from rpm. Or things that don't include standard makefile installs.

    Weird...I first tried to install qt from an ssh tunnel. Did not work. Then I VNC'd into the server and ran the commands from the terminal on the computer itself. Somehow that's different than through ssh. I don't get it, but it works now. It's still building and installing qt, but once it's done I'll move on to making a server binary.
     
    Last edited: Jun 8, 2010
  22. Dash_Merc

    Dash_Merc New Member

    Joined:
    Jun 7, 2010
    Messages:
    20
    Likes Received:
    0
    So I'm giving up on building it on CentOS. Not that it's a big deal, as most casual linux users are Ubuntu, Gentoo, or RedHat/Fedora users. I got Qt to install after much hardship and confusion (and lots of time spent waiting), as well as libzip (with significantly less hardship and confusion), and cannot get the build process for the pokemon-online server to go at all smoothly. Tons of errors, and at this point I don't care anymore, since I already have the mac server running stably. If anyone else wants to take a crack at it sometime and you get somewhere, feel free to pm me with what stupid mistake I'm making. :P

    Thank you all for your patience and guidance.
     
  23. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Just switched back to linux.

    The program uses some feature of Qt 4.6, and linux default packages (for ubuntu) stop at Qt 4.5, so i have to download the SDK from Qt's website to make it work.
     
  24. julius23piotti

    julius23piotti New Member

    Joined:
    Jun 28, 2010
    Messages:
    1
    Likes Received:
    0
    i do not kno how to play
     
  25. ryuma

    ryuma New Member

    Joined:
    Apr 30, 2010
    Messages:
    2
    Likes Received:
    0
    I tried all ways to run the game on ubuntu, but none worked
     
  26. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  27. wandering scripter

    wandering scripter New Member

    Joined:
    Apr 24, 2010
    Messages:
    12
    Likes Received:
    0
    Imo this thread is bloated. If there needs to be a guide on how to install it, it should be a single post for ease.

    Anyway. yes, .deb and .rpm packages make things a ton easier, but when they download the requirements they use the current installed respitorys, so as Coyotte said, it would be stopped at Qt 4.5, when PO uses QT 4.6

    Your options are now limited to you have to compile Qt 4.6 from its source, and install it.

    There is a guide somewhere on google on installing Qt 4.6, I'm not on my system right now so I can't exactly write one up, but once you have Qt 4.6 compiled and installed, Simply make sure that pokemon online has execute permissions (It should already), and double click it to run.

    (Note: Making sure it has execute permissions:
    in terminal: chmod pokemononline +x
    )
    Or, in ubuntu, Right click on it, goto propertys. then on the Permissons tab, check "Allow executing file as program"
     
  28. missingno

    missingno New Member

    Joined:
    Oct 7, 2010
    Messages:
    3
    Likes Received:
    0
    Augh, I can't get it to build. After checking out the git repository and development branch, I tried to run the Makefile and got too many errors to paste. It kept showing qmake's instructions as if it was run without arguments, and somehow gave command not found for lines starting with @echo, install, and BP. I tried just plain make and got this:

    Code (text):
    1. david@david-laptop:~/pogeymon-online$ make
    2. Read instructions in HowToBuild.txt
    3. Compiling the utilities library
    4. cd src/Utilities/ && qmake && make
    5. make[1]: Entering directory `/home/david/pogeymon-online/src/Utilities'
    6. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DSERVER_SIDE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o otherwidgets.o otherwidgets.cpp
    7. make[1]: g++: Command not found
    8. make[1]: *** [otherwidgets.o] Error 127
    9. make[1]: Leaving directory `/home/david/pogeymon-online/src/Utilities'
    10. make: *** [all] Error 2
    One thing to note, Ubuntu 10.10's repositories use Qt 4.7. Is that backwards compatible? Or might that explain why I can't get this working?
     
  29. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    you need to install g++ ^^

    sudo apt-get install g++

    Qt 4.7 is compatible, and anyway you should use master branch from now on, as we're mostly fixing bugs.
     
  30. missingno

    missingno New Member

    Joined:
    Oct 7, 2010
    Messages:
    3
    Likes Received:
    0
    Well that reduced the number of error messages by one, but still no success. But then I noticed what else I was missing was qt4-dev-tools, and with that it looked like it was building successfully until eventually I got an error about phonon. Installed its dev package and Qt Script bindings, successful build!
     
  31. Game Freak201

    Game Freak201 New Member

    Joined:
    Oct 3, 2010
    Messages:
    5
    Likes Received:
    0
    When I checked out the downloads page, it said that the Linux package only works with AMD 64. Since my system doesn't have that, would I be able to compile the program from source to run PO on my computer?
     
  32. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    You can. It's just we have built binaries only for AMD64 as that is what I have and no one else to build on 32 bits(^ ^)
     
  33. Game Freak201

    Game Freak201 New Member

    Joined:
    Oct 3, 2010
    Messages:
    5
    Likes Received:
    0
    When I was trying to compile PO, I got this error.
    Code (text):
    1. [csegale@localhost pogeymon-online]$ make
    2. Read instructions in HowToBuild.txt
    3. Compiling the utilities library
    4. cd src/Utilities/ && qmake && make
    5. make[1]: Entering directory `/home/csegale/pogeymon-online/src/Utilities'
    6. make[1]: Nothing to be done for `first'.
    7. make[1]: Leaving directory `/home/csegale/pogeymon-online/src/Utilities'
    8. cd ../..
    9. Compiling the pokemon library
    10. cd src/PokemonInfo/ && qmake && make
    11. make[1]: Entering directory `/home/csegale/pogeymon-online/src/PokemonInfo'
    12. rm -f libpokemonlib.so.1.0.0 libpokemonlib.so libpokemonlib.so.1 libpokemonlib.so.1.0
    13. g++ -Wl,-O1 -shared -Wl,-soname,libpokemonlib.so.1 -o libpokemonlib.so.1.0.0 pokemonstructs.o pokemoninfo.o networkstructs.o movesetchecker.o battlestructs.o teamsaver.o moc_teamsaver.o    -L../../bin -lutilities -lzip -lQtXml -lQtGui -lQtCore -lpthread  
    14. /usr/bin/ld: cannot find -lzip
    15. collect2: ld returned 1 exit status
    16. make[1]: *** [../../bin/libpokemonlib.so.1.0.0] Error 1
    17. make[1]: Leaving directory `/home/csegale/pogeymon-online/src/PokemonInfo'
    18. make: *** [all] Error 2
    I also checked to see if libzip was installed.

    Code (text):
    1. [root@localhost csegale]# yum install libzip
    2. Loaded plugins: presto, refresh-packagekit
    3. Setting up Install Process
    4. Package libzip-0.9.3-2.fc13.i686 already installed and latest version
    5. Nothing to do
    I'm not exactly sure what's going on here.

    Edit: Just solved the problem. It turns out that I had to install libzip-devel in order to get the program to compile.
     
    Last edited: Oct 29, 2010
  34. Colorshade

    Colorshade New Member

    Joined:
    Sep 28, 2010
    Messages:
    4
    Likes Received:
    0
    How to play Pokémon Online in Linux (Ubuntu).

    I found a much easier solution when it comes to Linux, specifically Ubuntu (I'm using 10.04, but I should think it would work with 10.10 also):

    Download the .exe file, and open it with Wine.
    If you don't have Wine, you can find it in Ubuntu Software Center or just type 'sudo apt-get install wine' in Terminal.

    Then you click next-next-next-next-next, and play. Easy as hell. :)
     
  35. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    Anyone who is using Linux knows about WINE. Don't post this here. And this next-next-next easy as hell can become literal hell if something inside WINE breaks. Especially since using WINE is insecure and bound to trouble.
     
  36. zuargo

    zuargo New Member

    Joined:
    Apr 4, 2011
    Messages:
    5
    Likes Received:
    0
    Hello

    My first post here

    One question: where can I find the svn repository of the client for Linux?

    Thanks in advance
     
    Last edited: Apr 4, 2011
  37. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Last edited: Apr 4, 2011
  38. zuargo

    zuargo New Member

    Joined:
    Apr 4, 2011
    Messages:
    5
    Likes Received:
    0
    Thank you so much

    I will try to make a PKGBUILD script for Archlinux :D
     
    Last edited: Apr 4, 2011
  39. Rhythmatic

    Rhythmatic New Member

    Joined:
    Apr 7, 2011
    Messages:
    4
    Likes Received:
    0
    Code (text):
    1. kingpin@BONSAITREE:~/pogeymon-online$ make
    2. compiling utilities.
    3. qmake -makefile -o src/PokemonInfo/Makefile src/PokemonInfo/PokemonInfo.pro
    4. make -C src/PokemonInfo
    5. make[1]: Entering directory `/home/kingpin/pogeymon-online/src/PokemonInfo'
    6. rm -f libpokemonlib.so.1.0.0 libpokemonlib.so libpokemonlib.so.1 libpokemonlib.so.1.0
    7. g++ -Wl,-O1 -shared -Wl,-soname,libpokemonlib.so.1 -o libpokemonlib.so.1.0.0 pokemonstructs.o pokemoninfo.o networkstructs.o movesetchecker.o battlestructs.o teamsaver.o moc_teamsaver.o   -L/usr/lib -L../../bin -lutilities -lzip -lQtXml -lQtGui -lQtCore -lpthread  
    8. /usr/bin/ld: cannot find -lutilities
    9. collect2: ld returned 1 exit status
    10. make[1]: *** [../../bin/libpokemonlib.so.1.0.0] Error 1
    11. make[1]: Leaving directory `/home/kingpin/pogeymon-online/src/PokemonInfo'
    12. make: *** [src/PokemonInfo/PokemonInfo.pro] Error 2
    13.  
    Alright, I'll bite. How do I compile the utilities bits?
     
  40. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Update Git source. The Makefile was broken for a while.
     
Moderators: E.T., Zoroark