|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Archive::General Support Archive area for General Support's posts that were moved here after an inactivity period of 90 days. |

08-20-2003, 02:48 AM
|
Sarnak
|
|
Join Date: Feb 2003
Posts: 81
|
|
I need a guide to compiling using GCC
Is anybody able to publish a guide for compiling Binarys using GCC?
The gcc package itself is genrally not very helpfull, and I dont have access to .NET Visual Studio. I noticed in another thread that gcc is the only free compiler that is supported (WOW, the search button got used).
hehehe
Well thanx guys
__________________
MoonPhoenix ServerOp
|

11-11-2003, 11:07 PM
|
Sarnak
|
|
Join Date: Nov 2002
Posts: 96
|
|
I need one of these as well because unless I find a friend with VS.net 2003 or Visual C++, I'm going to have to use GCC to compile with. I found the following link
http://www.everquestserver.com/forum...&highlight=gcc
And I am searching the site and google but would love it if someone who has already compiled EQEMU with GCC could post what they did to get it working.
|

11-12-2003, 12:10 AM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|

11-12-2003, 04:50 AM
|
Sarnak
|
|
Join Date: Feb 2003
Posts: 81
|
|
Thanx, but I learnt to use MS Visual C++ since my original post. EQEmu compiles beautifully
__________________
MoonPhoenix ServerOp
|
 |
|
 |

11-12-2003, 09:33 PM
|
Sarnak
|
|
Join Date: Nov 2002
Posts: 96
|
|
First thanks for the link Trumpcard and thanks moonphoenix for the files. I unfortunately am having trouble with both. I won't go into all of the file problems here since they involve a different topic but I would like a bit more help with gcc if I could get it.
I went to gcc.gnu.org and downloaded what I believe is gcc_3_3_2 fron cvs. I downloaded it that way because I don't know anything about tar.gz or gzip even after playing the program.
Now that I have the files (in some form) I don't know what to do with them. I went back to the GCC site and read a fair deal of documentation, including a section on "Installation" of gcc. None of what I read made much sense and what did got me worried that I needed about ten other programs to compile the compiler GCC. If that is the case then I'm probably not going to learn anything more about GCC, because I know when I'm way out of my league. And with this stuff, I'm getting really close.
I also downloaded and installed cygwin because I was under the impression, from other posts I've read, that I needed cygwin to run GCC under windows.
I've read over the help file you posted Trumpcard several times but I cannot see where I am supposed to do the "cd world," "make" and other commands. I would assume in the gcc program but I'm at a loss as to how I turn the GCC files I downloaded into a program and I'm also at a loss as to how I run GCC in cygwin. I have some ideas, and I've tried some things but nothing I've tried has worked.
What I want to know is do I need to compile GCC to run it so that I can compile world.exe, zone.exe and EMUSharMem.dll? If I don't need to do all that, then how do I run GCC? Through cygwin somehow? What commands do I need to get it to run in cygwin?
Just so you know, I'm on a WinXP machine with a P4 1.4gh processor. I have 512 mb ram and 40gigs HD.
I'm starting to think finding a person who has a copy of Visual Studio might not be so hard after all compared with getting GCC to run on a windows machine.
|
 |
|
 |
 |
|
 |

11-12-2003, 10:16 PM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
From reading over your post, my recommedation is that you wait till the binary is released. It is going to be ALOT of work for someone completely unfamiliar with development to try and set up the compiler, figure out how to compile the code, then set up and run the server. I dont want to discourage you from trying if you are wanting to learn, buit if you just want the server software as the end product, you're going to go through ALOT of effort for very little.
gcc is a linux compiler, it's not going to do any good downloading it for windows. Those install instructions are for a linux build of EQEMU, it 1st off requires LINUX. There are no instructions for building gcc or setting up your compiler, in the linux world, thats typically taken care of for you, and as such is left as an exercise for the reader.
cygwin is a LINUX port to windows (another OS, not WINDOWS) that will run within the wndows machine, it has gcc as a part of it.
for people that want to play with the code and compile, and dont want to buy a compiler, its the best best. I've never built and run eqemu from inside it, but I've been told it can be done.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|
 |
|
 |

11-12-2003, 11:42 PM
|
Sarnak
|
|
Join Date: Nov 2002
Posts: 96
|
|
Yeah, I had a feeling I was getting into deeper water than I could tread but I wanted to try because it started off as a fun challenge. I am still a bit interested in learning some of this for it's own sake, especially cygwin, since it's on my computer but you don't have to teach me. I would love to hear from those people that said they got eqemu to compile from it, though. If one of those people would happen to read this and could step forward and say what steps they took to make it work, I'd love trying to duplicate their actions. But barring that, yeah, I don't see my setting up a DR server as being a likelihood. But this has been very educational despite the frustrations involved. I especially liked learning about CVS. I was amazed at how fast that program downloaded files with my slow connection.
|

11-13-2003, 12:15 AM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
The instructions I linked you too should work just fine for cygwin, so long as you have the mysql and zlib headers installed (you pick them as part of the install process)
You can use cvs inside of cygwin to pull down the source code, and then put them somewhere in your cygwin directory, and use the linux readme instructions to compile them.
By all means, experiment, learn and feel free to post what you've been able to accomplish. I'd like to hear 100% that someone was able to compile, and run the latest eqemu code from within cygwin, it might put a stopper in the pieholes of everyone screaming about not wanting to buy Microsoft compilers... LOL....
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|
 |
|
 |

11-13-2003, 01:24 AM
|
Hill Giant
|
|
Join Date: Nov 2003
Posts: 168
|
|
Quote:
cygwin is a LINUX port to windows (another OS, not WINDOWS) that will run within the wndows machine, it has gcc as a part of it.
|
This is actually a misconception that is quite painful to those of us who have contributed to GNU and the FSF (see http://www.gnu.org/, Stallman is much more elegant than I). LINUX is an operating system. It is getting quite large (~80mb of kernel source), but it would still be pretty unimpressive without all of the GNU tools - so much so that there have even been movements to start refering to the whole system as "GNU-Linux" or something similar. Interestingly, this dependency isn't mutual. The GNU tools are generally written in C and are highly portable. Cygwin is simply a collection of GNU tools packaged with an abstraction layer. My guess is that it is the sheer size of the system combined with the fact that RedHat provides and supports it that confuses people into thinking that it is related to Linux. It isn't. The GNU tools predate Linux. At one point this layer was called a "POSIX" emulation layer, and its main (almost sole) purpose was to provide UNIX style forking under Windows95. NT based operating systems are already POSIX compliant, so the abstraction layer is really pretty thin, these days. Still, it is the best bet for easy porting. Most packages port without any changes whatsoever.
Quote:
Originally Posted by Trumpcard
The instructions I linked you too should work just fine for cygwin, so long as you have the mysql and zlib headers installed (you pick them as part of the install process)
|
You need to hunt for and enable the ipc install options, too... the unix style semaphore stuff is fairly new to cygwin, and I think it may still be an optional package for some reason.
Quote:
Originally Posted by astartae
I've read over the help file you posted Trumpcard several times but I cannot see where I am supposed to do the "cd world," "make" and other commands.
|
1) fire up a bash shell
2) md eqemu
3) cd eqemu
4) cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/eqemu login
5) cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/eqemu -z3 co eqemu
Now, you should be able to proceed by following the Linux instructions.
I've got to agree w/ Trump, though... This isn't worth it for you, unless your goal is just to learn something new. The process will require that you learn many new technologies. OTOH, becoming proficient with the system will open all kinds of new doors for you.
p.s. You may have to modify/disable the sharedmem stuff for a cygwin compile.
|
 |
|
 |
 |
|
 |

11-13-2003, 01:42 AM
|
Demi-God
|
|
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
|
|
Quote:
This is actually a misconception that is quite painful to those of us who have contributed to GNU and the FSF
|
Yes yes yes, linux is the kernel, not the OS, however, it goes along with the hacker debate. LINUX has come to mean the entire kit and kaboodle, not just the kernel.. Thats how the general public recognizes it (its an abstraction). I mean after all, how much sense does it make to say 'Im using a GNU tool/app layer built on top of a Linux 2.6 kernel' as opposed to saying..
'I run Linux'
You know as well as I do when dealing with endusers (ie computer neophytes) that you have to roll everything up and simplify it. Most complain about it, but all experts in any industry have to do it and deal with it when dealing with people outside of their specialization.
I bet you're one of those people that whines about the fact that the term 'hacker' was stolen by the media...
I'm going to create an xml .dtd file with an <anal> element for you people!!!
I understand what you are saying though, it can always be firstrating seeing your work misrepresented/misunderstood, but it's the round the table game....
LOL
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|
 |
|
 |
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 01:33 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |