HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Is it possible to compile an IT server for Linux?

View previous topic View next topic Go down 
AuthorMessage
CrusoeDaWolf



Posts : 9
Join date : 2014-10-01

PostSubject: Is it possible to compile an IT server for Linux?   Sat Oct 24, 2015 2:03 am

Hello. I was a bit curious and I'm wondering, would it be possible to port IT over to Linux, since we have access to the source code and all? If so, how would you do it? Any help would be appreciated, thanks!

PS: I've already tried using Xbuild in MonoDevelop in Linux to try and compile the solution, but it seems to give me a warning and skip the Visual Studio files.


Last edited by CrusoeDaWolf on Sat Oct 24, 2015 2:04 am; edited 1 time in total (Reason for editing : Typo.)
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: Is it possible to compile an IT server for Linux?   Sat Oct 24, 2015 11:36 am

These instructions are for earlier version when the server was called MagixMainServer. Replace it with the two newly named ones. You're using linux and seem to have some proficiency to know at least what to do.
Today these two are called LoginServer and GameServer.

First you have to compile RakNet with gcc 4.2 (newer might work):
Code:
cd navigate/to/raknet/folder/with/the/cpp/files
g++-4.2 -w -fPIC -c *.cpp
g++-4.2 -shared -o ./libraknet.so *.o
ar rcs ./libraknet.a *.o

Then compile the two different servers:
Code:
g++-4.2 -I../IT_source/include/ -I../OgreMain/include/ -I../Raknet/Source/ -L../Raknet/Source/ -lraknet -lpthread -lrt -fPIC MagixMainServer.cpp -o MagixMainServer
sudo cp ../Raknet/Source/libraknet.so /usr/lib/
You might be able to get away with just placing libraknet.so in the same folder as MagixMainServer

To then run the MainServer
Code:
./MagixMainServer

If it cant execute ./MagixMainServer, then make the system see it ias a executable:
Code:
chmod +x MagixMainServer

________________________________
Retired
Back to top Go down
CrusoeDaWolf



Posts : 9
Join date : 2014-10-01

PostSubject: Re: Is it possible to compile an IT server for Linux?   Sun Oct 25, 2015 5:35 pm

Just to confirm, the path with all the cpp files is: '/kito/src/client/src'
Correct?
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: Is it possible to compile an IT server for Linux?   Sun Oct 25, 2015 6:14 pm

You're on your own here. I don't have a machine with the tools myself atm

________________________________
Retired
Back to top Go down
Witacha
3D Modeler
3D Modeler
avatar

Game username : Witacha
Server : Land Of The Wolves(Owner)
Female Posts : 1198
Join date : 2012-06-15
Age : 18
Location : France

PostSubject: Re: Is it possible to compile an IT server for Linux?   Sun Oct 25, 2015 6:14 pm

Quote :
Just to confirm, the path with all the cpp files is: '/kito/src/client/src'
Correct?

Exactly
Back to top Go down
http://witacha-asukata.deviantart.com/
CrusoeDaWolf



Posts : 9
Join date : 2014-10-01

PostSubject: Re: Is it possible to compile an IT server for Linux?   Sun Oct 25, 2015 6:26 pm

Hm. I get a whole bunch of error messages when I try compiling from /kito/src/client/src. While snooping around, I found a folder named 'RakNet-3.25' in /kito/deps/. Inside that folder, I looked in another folder named Source. There are also a whole bunch of cpp files, and I seem to get better luck when trying to compile from there, but I still seem to get error messages. Any ideas? Should I also post the output?
Back to top Go down
 
Is it possible to compile an IT server for Linux?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: