Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
26 user(s) are online (18 user(s) are browsing Forums)

Members: 0
Guests: 26

more...

Support us!

Headlines

 
  Register To Post  

Adventures in E-UAE Compiling
Just popping in
Just popping in


See User information
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:
echo $PATH
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:
chmod +x configure
.

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.h

8. Okay, cross your fingers, pray and type make.

I have an X5000/040 and it takes about 6 and a half minutes to compile.

Go to top
Re: Adventures in E-UAE Compiling
Just popping in
Just popping in


See User information
So just a couple of notes:

The file that resulted is about 22 MB large and not quite as "zippy". When I play audio it kinda skips. The one you get from OS4Depot is only about 6 and
is quite responsive. Obviously the file you get when compiling is not very optimized. Hopefully maybe someone can shed some light on optimization.

It's been hit-or-miss regarding other options and compiling, at least for me. I didn't keep track of my attempts at other options. Sorry about that.
Maybe later this week I'll play around with it some more.

I'd love to hear what other people's experiences are, especially those who have more experience in compiling. If I need to clarify or make any corrections let me know.
I'll do my best to fix it.

Go to top
Re: Adventures in E-UAE Compiling
Not too shy to talk
Not too shy to talk


See User information
it would be great if people would include build instructions with their projects, and ideally not rely on configure too - but include the exact makefile and configs that are proven to work, instead of letting everyone have to start the process over each time.

After all, the point of autotools is to support dozens or hundreds of linux variants. But there is only one Amiga variant.

Go to top
Re: Adventures in E-UAE Compiling
Just popping in
Just popping in


See User information
I agree it would be great if people would include build instructions with their projects. I've seen a couple of requests for instructions on how to build E-UAE, and there were no replies.
Last week, in the UAE Wrong Colors thread I asked for instructions and the response I got was run configure and edit some files. So I did a deep dive over the weekend to figure it out.

In the Unix/Linux world most of the time when I compile I find pretty detailed instructions, which typically can be summed up as "get these dependencies and run make." And it just works.

I think part of the problem is that E-UAE has so much legacy code that has to do with other platforms. Maybe its time to fork it and jettison all the stuff that isn't Amiga related.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
6 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project