Guide to set up environment to compile?
Guide to set up environment to compile?
Is there a guide to compile pcem on windows 8.1? Thanks in advanced.
-
- Posts: 3
- Joined: Wed 10 Dec, 2014 9:23 pm
Re: Guide to set up environment to compile?
This doesn't work anymore, but I'm leaving it here for prosperity. I've also included the patch files, although I don't know if they are needed anymore.
Set up MinGW using this guide http://www.dosbox.com/wiki/BuildingDOSBox (only the Installing MinGW section).
Paste the attachment on this post to your MSYS home folder (e.g. C:\MinGW\msys\1.0\home\Administrator). And run it with
Once it's finished running, there will be a PCem.exe file under your src folder. What I would do then, is download an official build of PCem, and just replace the PCem.exe file with the one you have made.
Note that this method includes patches from this post viewtopic.php?f=3&t=97 to minimise the amount of external DLL's.
Set up MinGW using this guide http://www.dosbox.com/wiki/BuildingDOSBox (only the Installing MinGW section).
Paste the attachment on this post to your MSYS home folder (e.g. C:\MinGW\msys\1.0\home\Administrator). And run it with
Code: Select all
sh BuildPCem.txt
Note that this method includes patches from this post viewtopic.php?f=3&t=97 to minimise the amount of external DLL's.
- Attachments
-
- Static.patch
- (881 Bytes) Downloaded 377 times
-
- FreeAlut.patch
- (421 Bytes) Downloaded 374 times
-
- BuildPCem.txt
- (1.63 KiB) Downloaded 788 times
Last edited by ZummiGummi on Fri 29 Apr, 2016 10:13 am, edited 2 times in total.
Re: Guide to set up environment to compile?
Thanks ZummiGummi, works good.
Tested successful compile on Windows POSReady 2009 (WinXP continuation I suppose) 32 bit.
Note for anyone following this that there are some typos on the setting up MinGW for DosBox page. In particular are typo in part to setup zlib library (should be zlib-1.2.8.tar.xz (not .gz as in instructions).
Also version of libpng has been updated to libpng-1.6.16.tar.gz.
build script provided by ZummiGummi takes care of the rest!
Once you run it once you can just use the part of the script after the #PCem section:
Thanks again!
Tested successful compile on Windows POSReady 2009 (WinXP continuation I suppose) 32 bit.
Note for anyone following this that there are some typos on the setting up MinGW for DosBox page. In particular are typo in part to setup zlib library (should be zlib-1.2.8.tar.xz (not .gz as in instructions).
Also version of libpng has been updated to libpng-1.6.16.tar.gz.
build script provided by ZummiGummi takes care of the rest!
Once you run it once you can just use the part of the script after the #PCem section:
Code: Select all
# PCEm
wget -c http://www.retrosoftware.co.uk/hg/pcem/archive/tip.zip
unzip tip.zip
cd PCem*
wget --no-check-certificate -c https://dl.dropboxusercontent.com/s/0mbj7xyaeiw6g6x/Static.patch
wget --no-check-certificate -c https://dl.dropboxusercontent.com/s/qjfwfsab9trubom/FreeAlut.patch
patch -p1 < Static.patch
patch -p1 < FreeAlut.patch
cd src
make -f Makefile.mingw
Re: Guide to set up environment to compile?
What is weird is that Windows POSReady 2009 does not run in PCem (installer freezes on format options) but XP does.amadama wrote:Thanks ZummiGummi, works good.
Tested successful compile on Windows POSReady 2009 (WinXP continuation I suppose) 32 bit.
Note for anyone following this that there are some typos on the setting up MinGW for DosBox page. In particular are typo in part to setup zlib library (should be zlib-1.2.8.tar.xz (not .gz as in instructions).
Also version of libpng has been updated to libpng-1.6.16.tar.gz.
build script provided by ZummiGummi takes care of the rest!
Once you run it once you can just use the part of the script after the #PCem section:
Thanks again!Code: Select all
# PCEm wget -c http://www.retrosoftware.co.uk/hg/pcem/archive/tip.zip unzip tip.zip cd PCem* wget --no-check-certificate -c https://dl.dropboxusercontent.com/s/0mbj7xyaeiw6g6x/Static.patch wget --no-check-certificate -c https://dl.dropboxusercontent.com/s/qjfwfsab9trubom/FreeAlut.patch patch -p1 < Static.patch patch -p1 < FreeAlut.patch cd src make -f Makefile.mingw
Re: Guide to set up environment to compile?
What is weird is that Windows POSReady 2009 does not run in PCem (installer freezes on format options) but XP does.
Not sure why but possibly because of this:
https://msdn.microsoft.com/en-us/librar ... 60%29.aspx
Differences between Windows XP SP3 and POSReady 2009:
https://technet.microsoft.com/en-us/lib ... 29.aspx#Q4
What is the difference between POSReady 2009 and Windows XP Professional?
Windows Embedded POSReady 2009 contains the following Embedded Enabling Features:
File-Based Write Filter (FBWF), which redirects writes to disk to RAM and helps protect the underlying OS image.
USB Boot, which allows installation from a USB key.
Office productivity applications are not licensed to be run on POSReady.
POS for .NET is included with POSReady.
POSReady does not contain Help files, which reduces its footprint.
Both products use the same management software.
For more information, see POSReady 2009 vs. Windows XP Professional (PDF).http://go.microsoft.com/fwlink/?LinkId=159099
-
- Posts: 3
- Joined: Wed 10 Dec, 2014 9:23 pm
Re: Guide to set up environment to compile?
Glad it worked. BTW, you only needed to do the Installing MinGW section. But at least you have everything setup for compiling DOSBox
I've updated the DOSBox wiki, so everything should be correct now.
I've updated the DOSBox wiki, so everything should be correct now.
Re: Guide to set up environment to compile?
Thanks ZummiGummi, I figured as much but wanted to do the whole setup to do DosBox as well.ZummiGummi wrote:Glad it worked. BTW, you only needed to do the Installing MinGW section. But at least you have everything setup for compiling DOSBox
I've updated the DOSBox wiki, so everything should be correct now.
thanks again!
Re: Guide to set up environment to compile?
I am trying to compile the latest builds of PCem and am getting errors. I have fixed most of the errors in Build.sh, but can't seem to get OpenAl to make correctly:
Here is the error:
I would appreciate any help that can be provided. I would also appreciate if someone could give me current advice on how to setup a build environment.
Thank you
Here is the error:
Code: Select all
error: redefinition of 'struct timespec'
struct timespec {
^
In file included from d:\mingw\include\time.h:53:0
in file
Thank you
Re: Guide to set up environment to compile?
Download this: http://citadel.ringoflightning.net/msys64_gcc52.7z (this is my server so it's safe) and create a tmp folder under the MSYS64 folder, then run mingw32.bat, cd to the PCem source folder, and do:
make -fmakefile.mingw
.
make -fmakefile.mingw
.
Re: Guide to set up environment to compile?
Thanks Battler,
Normally I wouldn't go for the quick download. But I can see how yours is configured differently to mine and that might help me work out why OpenAL is giving me issues.
Normally I wouldn't go for the quick download. But I can see how yours is configured differently to mine and that might help me work out why OpenAL is giving me issues.