[Resolved] [Linux]Compiling PO from source

Discussion in 'Help' started by Poor, Jan 11, 2011.

Moderators: E.T., Zoroark
  1. Poor

    Poor New Member

    Joined:
    Sep 27, 2010
    Messages:
    2
    Likes Received:
    0
    After reading that without a 64 bit system, the only native way to install pokemon online is to compile it from source.

    Never having compiled a program from source i followed this guide:

    Compiling and installing software from source in linux

    This went without problems until i had to use the ./configure command, but when i tried it, it said the command does not exist, having googled about ./configure i learned that it was infact not a command but a script, and if in the right directory you should just use . configure or whatever the scriptname is.

    At first i thought i should use ~/Pokemon-online/bin . start-client, but it made the terminal crash ( close ) without doing anything

    My question is, does anybody know how to compile pokemon online from source under linux? if so, could you write a step by step guide?

    Edit: my OS is Ubuntu 10.10
     
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  3. Poor

    Poor New Member

    Joined:
    Sep 27, 2010
    Messages:
    2
    Likes Received:
    0
    Not exactly, i already tried using the information in the sticky before making this thread

    This went alright, until step 9, basicly, i downloaded the Pokemon-online.tar.gz from here, correct me if thats the wrong one ( although now that im writing this, its kind of sounding like that, but i couln't find any other linux version anywhere )

    I extracted the Pokemon-Online.tar.gz file, it made a folder, with a read me, bin folder and a license file, from there, inside bin, i tried running the Pokemon-online file but it didnt do anything, neither did start-client, although start-client managed to make my terminal close when i tried to open it through that.
     
  4. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  5. Ihhani

    Ihhani New Member

    Joined:
    May 27, 2010
    Messages:
    11
    Likes Received:
    0
    I've successfully compiled PO from source in Ubuntu 10.10.
    The only thing you need to do is download the source code, install some packages (I haven't got the exact list, but I think I ran make and I started downloading the packages it requested), and just run "make" on a terminal.
    Then just double-clic "start-client" (bin folder) and execute it on a terminal if it doesn't work so we can see what the problem is.
    If it helps, here is a version that I've just compiled. There was an error during server compilation, but client works fine. (The error was: )
    Code (text):
    1. Compiling the server
    2. cd src/Server/ && qmake && make
    3. make[1]: se ingresa al directorio «/home/.../PO/src/Server»
    4. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I. -o battle.o battle.cpp
    5. battle.cpp:1575: error: prototype for ‘bool BattleSituation::testAccuracy(int, int, int, bool)’ does not match any in class ‘BattleSituation’
    6. battle.h:206: error: candidate is: bool BattleSituation::testAccuracy(int, int, bool)
    7. make[1]: *** [battle.o] Error 1
    8. make[1]: se sale del directorio «/home/.../PO/src/Server»
    9. make: *** [all] Error 2
    10.  
     
  6. Erebos

    Erebos Banned

    Joined:
    May 6, 2010
    Messages:
    743
    Likes Received:
    0
    It's easier by far to run it through wine, although I can understand why people might want a source installation. Still, in case someone despairs, remember that Wine runs PO without issues.
     
  7. Mystra

    Mystra Active Member

    Joined:
    Jul 12, 2010
    Messages:
    1,389
    Likes Received:
    4
    Compile release branch to be sure it compiles.

    Also, using WINE is in no way easier. At least for me in Debian it's like running 1 script and I have a new PO from release in separate directory. Can't be easier than that.
     
Moderators: E.T., Zoroark