[Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Discussion of development and patch submission.
JosepMa
Posts: 136
Joined: Tue 20 Jun, 2017 6:25 pm

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by JosepMa » Sat 28 Apr, 2018 5:51 pm

altieres.lima wrote:
Sat 28 Apr, 2018 2:11 pm
How to include all dll's in exe?
Just locate them in msys2 and copy them into your final dist folder.
They are:

libexpat-1.dll
libgcc_s_dw2-1.dll
libjpeg-8.dll
liblzma-5.dll
libopenal-1.dll
libpng16-16.dll
libstdc++-6.dll
libtiff-5.dll
libwinpthread-1.dll
SDL2.dll
wxbase30u_gcc_custom.dll
wxbase30u_xml_gcc_custom.dll
wxmsw30u_adv_gcc_custom.dll
wxmsw30u_core_gcc_custom.dll
wxmsw30u_html_gcc_custom.dll
wxmsw30u_xrc_gcc_custom.dll
zlib1.dll


If you actually asked how to build pcem with static linking instead of dynamic linking, I looked briefly and I don't see any simple way to do it.
You might be able to build it with one of the manually written Makefiles (inside the src folder) and modify the LIBS= definition to include the options -Bstatic or -Bdynamic as needed.

User avatar
KingDaveRa
Posts: 22
Joined: Thu 06 Oct, 2016 9:00 pm
Location: UK
Contact:

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by KingDaveRa » Tue 25 Dec, 2018 10:23 pm

I've followed through the build instructions, and come to a juddering halt:

Code: Select all

Dave@DESKTOP-HTLI9DO MSYS ~/pcem
# ./configure --enable-networking --enable-release-build
configure: loading site script /etc/config.site
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/Dave/pcem':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Config.log is attached.

I get no errors installing, but I find gcc in /mingw32/bin/gcc.exe which isn't in the path. I'd have expected that to be added automatically (and I've re-started MSYS2, even run it as administrator and re-installed).

Shall I just add that, or is there something else subtly different since the guide was written?
Attachments
config.log
(7.68 KiB) Downloaded 70 times

shermanp
Posts: 121
Joined: Sat 18 Feb, 2017 2:09 am

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by shermanp » Tue 25 Dec, 2018 10:46 pm

That's weird. I can't think of anything that would have fundamentally changed since I made this guide. In fact, I recently updated my own MSYS2 installation a few weeks ago.

Are you using the MSYS2 MingGW shell. You should be using that, and not the MSYS2 MSYS shell.

It's really strange that it's not finding gcc.

User avatar
KingDaveRa
Posts: 22
Joined: Thu 06 Oct, 2016 9:00 pm
Location: UK
Contact:

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by KingDaveRa » Tue 25 Dec, 2018 11:17 pm

I've been using MSYS2 MSYS, as the guide said. I'll give it a whirl with the MingGW shell instead.

User avatar
ruben_balea
Posts: 87
Joined: Mon 08 May, 2017 11:24 pm
Location: Spain

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by ruben_balea » Tue 25 Dec, 2018 11:24 pm

MSYS2 MSYS is used during setup only, to compile PCem switch to MSYS2 MinGW32

User avatar
KingDaveRa
Posts: 22
Joined: Thu 06 Oct, 2016 9:00 pm
Location: UK
Contact:

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by KingDaveRa » Tue 25 Dec, 2018 11:27 pm

There we go, that fixed it. A subtlety I'd not noticed!

Thanks :)

shermanp
Posts: 121
Joined: Sat 18 Feb, 2017 2:09 am

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by shermanp » Tue 25 Dec, 2018 11:54 pm

I've updated the original guide to hopefully make it clearer that one needs to switch shells from the "Prepare and Compile PCem" step onward.

User avatar
omarsis81
Posts: 678
Joined: Thu 17 Dec, 2015 6:20 pm

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by omarsis81 » Thu 03 Jan, 2019 7:04 pm

Is this guide for the Linux build? How can I compile it under Windows?

darksabre76
Posts: 60
Joined: Tue 12 Sep, 2017 4:33 am
Location: Seattle, WA, USA
Contact:

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by darksabre76 » Thu 03 Jan, 2019 7:19 pm

MSYS2 is a Windows build environment

User avatar
omarsis81
Posts: 678
Joined: Thu 17 Dec, 2015 6:20 pm

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by omarsis81 » Fri 04 Jan, 2019 1:48 pm

darksabre76 wrote:
Thu 03 Jan, 2019 7:19 pm
MSYS2 is a Windows build environment
Please forgive my silly question, I saw all those $ shell commands that looked like linux

shermanp
Posts: 121
Joined: Sat 18 Feb, 2017 2:09 am

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Post by shermanp » Fri 04 Jan, 2019 8:29 pm

omarsis81 wrote:
Fri 04 Jan, 2019 1:48 pm
darksabre76 wrote:
Thu 03 Jan, 2019 7:19 pm
MSYS2 is a Windows build environment
Please forgive my silly question, I saw all those $ shell commands that looked like linux
That's because MSYS2 is basically a stripped down linux distribution (Arch I believe) compiled to run on windows. It contains a linux shell, package manager, and all the *nix programs one would expect to compile software in the *nix manner (./configure, make etc.)

Post Reply