Build instructions for MinGW?

Discussion of development and patch submission.
emendelson
Posts: 3
Joined: Wed 12 Jul, 2017 6:50 pm

Build instructions for MinGW?

Postby emendelson » Sat 15 Jul, 2017 11:18 am

A few months ago, JohnElliott added emulation for the Genius MDA video card, as described in this thread:

viewtopic.php?f=3&t=652

I'd like to test this with WordPerfect's text and graphic video driver for the Genius board, but I haven't been able to find up-to-date build instructions for use with MinGW; I'd like to test under Windows. Are these instructions here, and I simply need to look harder? Or would someone generous be willing to post instructions? I've build DOSBox and SheepShaver under MinGW, so I know the basics.

Thanks for any help.
szadycbr
Posts: 182
Joined: Mon 21 Nov, 2016 6:23 pm

Re: Build instructions for MinGW?

Postby szadycbr » Sat 15 Jul, 2017 11:53 am

Hi there, Dreamer did nice build guide which helped me viewtopic.php?f=3&t=597&p=4696&hilit=build+guide#p4696
All types of Makefiles are in /src directory, to build on mingw in linux ,32bit , 64bit , wx-sdl2 version etc. but generally if you follow dreamer guide you should have not much problems.
Last edited by szadycbr on Sat 15 Jul, 2017 8:33 pm, edited 1 time in total.
JosepMa
Posts: 69
Joined: Tue 20 Jun, 2017 6:25 pm

Re: Build instructions for MinGW?

Postby JosepMa » Sat 15 Jul, 2017 8:29 pm

Dou you mave msys 1 mingw, or do you have msys 2 mingw64?

If you have the latter, things almost work, except a few issues: First one, you need to explicitly compile using the Makefile.mingw in the src subfolder.
Then, you will need to fix a few errors in the source that make it not compile with that setup, which are a few indentation issues, and some #ifdefs that don't work correctly ( the one in cdrom_ctrl.c, you need to change MINGW64 for MINGW32 . MINGW64 is defined only when compiling in 64bit).

The dependencies are openal, allegro and... I think not much more.
emendelson
Posts: 3
Joined: Wed 12 Jul, 2017 6:50 pm

Re: Build instructions for MinGW?

Postby emendelson » Sun 16 Jul, 2017 2:41 am

I'm using msys 1 MinGW, and will try the instructions as soon as I get back to my development machine, I hope tomorrow. When you say "things almost work" with msgs 2, does that mean that "things just work" with msgs 1?

I found the reqs folder that Dreamer mentioned here:

https://bitbucket.org/svajoklis/pcem/sr ... lis_repack

and I'm including the link in case anyone else has trouble finding it.

Thanks for this. I'll report on progress.
User avatar
omarsis81
Posts: 538
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Build instructions for MinGW?

Postby omarsis81 » Mon 17 Jul, 2017 9:32 am

I was able to create my own build with that guide and I have very low knowledge with programming. I had a few problems, but finally I can create my own EXE

the one problem I remember I have is that in "soundopenal.c" I have to edit it every time a new release is made and change the following lines
#include <AL/al.h> --> #include <al.h>
#include <AL/alc.h> --> #include <alc.h>

and copy those two files into the main folder. I'm pretty sure it has to do with the "path" config, but this is the only way I could solve it
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: Build instructions for MinGW?

Postby Battler » Mon 17 Jul, 2017 12:23 pm

That's because every variant of MinGW seems to have minor variations with regards to include paths. I wish they decided on one set of include and had all the variants stick to it.
emendelson
Posts: 3
Joined: Wed 12 Jul, 2017 6:50 pm

Re: Build instructions for MinGW?

Postby emendelson » Wed 19 Jul, 2017 1:39 pm

Thanks to everyone for all these instructions. I'm working my way slowly through removing and installing packages, and will report back with any questions. Thanks again!
ndavis82
Posts: 45
Joined: Sun 25 Dec, 2016 5:54 am

Re: Build instructions for MinGW?

Postby ndavis82 » Wed 19 Jul, 2017 3:33 pm

omarsis81 wrote:I was able to create my own build with that guide and I have very low knowledge with programming. I had a few problems, but finally I can create my own EXE

the one problem I remember I have is that in "soundopenal.c" I have to edit it every time a new release is made and change the following lines
#include <AL/al.h> --> #include <al.h>
#include <AL/alc.h> --> #include <alc.h>

and copy those two files into the main folder. I'm pretty sure it has to do with the "path" config, but this is the only way I could solve it

Thank you! I was having trouble with this as well.

Return to “Development”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest