Or How I Stopped Worrying and Learned to Love Configure (more or less)So I got a bug up my keister this weekend to compile E-UAE. Since Odysee doesn't play well with Github, I used my Winblows machine to download a zip file with the
source code and copied it over to my Amiga. After a fair amount of trial and error, along with a bit of gnashing of teeth, I got it to compile. For anyone interested,
these are the steps I took to get it done.
1. Make sure you have all the dependencies. Obviously, you need the SDK installed. You also might need to download some packages. These were the ones I needed:
a. Awk/Nawk. You can get that here:
OS4 DEPOT-Awk b. libz. You can get that here:
OS4 DEPOT-libz c. mpega (just the header files). You can get that here:
OS4 DEPOT-mpega-includes Most of these have Autoinstall, the mpega header files go into
SDK:local/common/include.
2. Acquire Khval's e-uae 1-0-0-uae-1-1-2 source code. How you do that is pretty much up to you. I had to use my Winblows machine to get it. Make sure you're in the 1.1.2 branch.
3. Go to the drawer where your source code is. You should see
configure in that drawer. From now on, any files or drawers I reference will be relative to that drawer.
Type
sh to open a unix shell. You'll notice that all your directory/volume names will be preceded by a /. No colons.
Type Quote:
to make sure your environment is set. If you see paths that start with /SDK, you're good to go.
If you see ones that start with /Cygwin, you might want to go to your
S:User-Startup file and comment out the line that says Quote:
execute Cygnix:s/Cygnix-Startup
and reboot.
4. Edit the configure script. Any text editor will do. I use LiteXL because it shows line numbers. Search for the line that says Quote:
BSDSOCKOBJS='bsdsocket-posix-new.$(OBJEXT) bsdsocket.$(OBJEXT)'
.
Delete bsdsocket-posix-new.$(OBJECT), leaving only bsdsocket.$(OBJECT).
5. Make the configure script executable again by typing Quote:
.
6. Now you can run configure by typing Quote:
./configure --enable-bsdsock
7. Don't run make just yet. You need to edit 2 more files, both called sysconfig.h First, open
src/sysconfig.h Search for a series of #define SIZEOF_ statements and correct them to read:
Quote:
#define SIZEOF_CHAR 1
#define SIZEOF_INT 4
#define SIZEOF_LONG 4
#define SIZEOF_LONG_LONG 8
#define SIZEOF_SHORT 2
#define SIZEOF_VOID_P 4
Do the same thing for
src/tools/sysconfig.h8. Okay, cross your fingers, pray and type
make.
I have an X5000/040 and it takes about 6 and a half minutes to compile.