Prerequisites and Building

Here we speak about Code and Design.
User avatar
nemerle
Posts: 398
Joined: Thu Jan 10, 2013 3:40 pm

Post by nemerle » Sat Sep 02, 2006 5:15 pm

Prerequisites and Building
---
To get the sources from our svn. Get svn client (TortoiseSVN is the best one for win platforms), point it to svn://trac.cohemu.net/cohemu , download.
----
So, you’ve downloaded the sources, now what?
Most important thing is a build system, we’re using a nice multiplatform/multi compiler one: CMake: www.cmake.org.
Our database of choice is postgresql, after getting postgres and cmake you’ll have to get some libraries. ACE,
libpgsql, which is a part of the pgsql 8.1 install package, and a zlib. We also use parts of Boost ( only object pools for now).
You might want to get yourself swig too.
----

First step: You have to build the ACE framework. ( consult ACE’s building guide to see how it should be done)
Second step: Run cmake selecting the right build system, set all relevant library/include paths. Generate an output makefile/vcproj+sln/*.
Third step: Run your generated build file through your compiler suite of choice.
Cross your fingers :)
[color=red:9840591f33][b:9840591f33]WARNING[/b:9840591f33]: Amount of help we can provide is limited, so forgive us if we disregard some questions while answering others.[/color:9840591f33]
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

coxemu_forgotten_user
Posts: 150
Joined: Thu Jan 01, 1970 12:00 am

Post by coxemu_forgotten_user » Mon Sep 11, 2006 12:22 pm

when i build ACE Framework i got many errors is there another way to build the emu ???
pls help me

User avatar
nemerle
Posts: 398
Joined: Thu Jan 10, 2013 3:40 pm

Post by nemerle » Mon Sep 11, 2006 12:58 pm

Nope, you cannot build the emu without ace.
Did you follow ace's compilation instructions ?
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

desinger
Posts: 5
Joined: Mon Sep 11, 2006 12:25 pm

Post by desinger » Mon Sep 11, 2006 4:03 pm

Yes i follow ace compilation instuction i try difrent metods but evry time i got error
Why you not upload Ace library on some one site to download evry one need this file/s
sorry for my bad english :oops:
ps. The error is ..
[quote:7e05c0eb1b]c:\\ACE_wrappers\\ace/config-win32-common.h(530) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
XML_Svc_Conf.cpp
c:\\ACE_wrappers\\ace/config-win32-common.h(530) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
WIN32_Proactor.cpp
c:\\ACE_wrappers\\ace/config-win32-common.h(530) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
WIN32_Asynch_IO.cpp
c:\\ACE_wrappers\\ace/config-win32-common.h(530) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
WFMO_Reactor.cpp
c:\\ACE_wrappers\\ace/config-win32-common.h(530) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory
UUID.cpp[/quote:7e05c0eb1b]

malign
Posts: 61
Joined: Fri Sep 02, 2005 11:39 pm

Post by malign » Mon Sep 11, 2006 5:35 pm

desinger:

You need to tell your compiler where your Windows(tm) includes are located. Ie, if you are using gcc, use the -I option. -I/path/to/includes

I am not sure what compiler you are using, but giving us that information would be helpful. Also, be sure those header files actually reside on your hard disk somewhere.

--malign

User avatar
nemerle
Posts: 398
Joined: Thu Jan 10, 2013 3:40 pm

Post by nemerle » Mon Sep 11, 2006 6:30 pm

And if you're using some version of free microsoft's visual c++, you might lack the required includes ( you need to get yourself windows platform sdk from microsoft's website )
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

desinger
Posts: 5
Joined: Mon Sep 11, 2006 12:25 pm

Post by desinger » Mon Sep 11, 2006 6:33 pm

I use Visual C++ 2005 Expres edition also i try under Cygwin to compile but it give me another error in rules.local.GNU i read build instructions many times and i'm sure i do evrything that is wrire there.

PotajiTo
Posts: 10
Joined: Mon Aug 14, 2006 10:22 pm

Post by PotajiTo » Mon Sep 11, 2006 7:47 pm

Well, I compiled ace, and set the paths on cmake, but I get this error:
D:\\cohemu\\Common\\src\\GameServerInterface.cpp(71): error C2039: 'ExpectClient' : is not a member of 'GameServer'
when I build the solution in vs 2003. Can any one point me in the right direction?
Thanks!
PD: Is not just that error, but that is the first one.

User avatar
nemerle
Posts: 398
Joined: Thu Jan 10, 2013 3:40 pm

Post by nemerle » Mon Sep 11, 2006 8:17 pm

Sorry about that. I've must have commited one of my in-progress files :)
If gods are willing i might have that part finished by the end of this week
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

desinger
Posts: 5
Joined: Mon Sep 11, 2006 12:25 pm

Post by desinger » Mon Sep 11, 2006 9:58 pm

And if gods are willing you might upload compiled version of emu on someone site :lol:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest