Thank you! I was finally able to compile the application correctly from your guide and information from you links.
Here is my detailed and complete procedure to compile PCem for Windows which can update this current guide and help someone who have difficulty.
Install MSYS2 then automatically launch MSYS2 64 bit once installed.
Type :
Install : Yes / Complete Update : Yes
The application must close after installed the updates.
Start MSYS2 MSYS from Windows Start menu and type :
Install : Yes
Install the default development tools :
Code: Select all
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
Default=all (enter) / Install : Yes
Install the tools to get PCem sources from GitHub and for unzip :
Install : Yes
Install the prerequisites to build PCem :
Code: Select all
pacman -Sy mingw-w64-{i686,x86_64}-ntldd-git mingw-w64-{i686,x86_64}-toolchain mingw-w64-{i686,x86_64}-SDL2 mingw-w64-{i686,x86_64}-openal mingw-w64-{i686,x86_64}-wxWidgets mingw-w64-{i686,x86_64}-libpcap mingw-w64-{i686,x86_64}-cmake
Default=all (enter) / Install : Yes
Get and download the latest updated sources of PCem from GitHub :
Code: Select all
git clone https://github.com/sarah-walker-pcem/pcem
Close MSYS2 MSYS with this command :
You can change or update the source code from this path "C:\msys64\home\%username%\pcem".
32 bit compilation
If you want to compile PCEm in 32 Bit then : Launch MSYS2 MinGW x86 from Windows Start menu.
Type :
Code: Select all
cd pcem
mkdir build_x86 && cd build_x86
cmake -G "MSYS Makefiles" -DUSE_NETWORKING=ON -DCMAKE_BUILD_TYPE=Release ..
make
Copy of 32 bit files libraries and compiled application to Release directory :
Code: Select all
cd src && mkdir release && cd release && cp ~/pcem/build_x86/src/pcem.exe ./ && cp /mingw32/bin/libcrypto-1_1.dll ./ && cp /mingw32/bin/libdeflate.dll ./ && cp /mingw32/bin/libexpat-1.dll ./ && cp /mingw32/bin/libgcc_s_dw2-1.dll ./ && cp /mingw32/bin/libjbig-0.dll ./ && cp /mingw32/bin/libjpeg-8.dll ./ && cp /mingw32/bin/libLerc.dll ./ && cp /mingw32/bin/liblzma-5.dll ./ && cp /mingw32/bin/libopenal-1.dll ./ && cp /mingw32/bin/libpcap.dll ./ && cp /mingw32/bin/libpng16-16.dll ./ && cp /mingw32/bin/libssl-1_1.dll ./ && cp /mingw32/bin/libstdc++-6.dll ./ && cp /mingw32/bin/libtiff-5.dll ./ && cp /mingw32/bin/libwebp-7.dll ./ && cp /mingw32/bin/libwinpthread-1.dll ./ && cp /mingw32/bin/libzstd.dll ./ && cp /mingw32/bin/SDL2.dll ./ && cp /mingw32/bin/wxbase30u_gcc_custom.dll ./ && cp /mingw32/bin/wxbase30u_xml_gcc_custom.dll ./ && cp /mingw32/bin/wxmsw30u_adv_gcc_custom.dll ./ && cp /mingw32/bin/wxmsw30u_core_gcc_custom.dll ./ && cp /mingw32/bin/wxmsw30u_html_gcc_custom.dll ./ && cp /mingw32/bin/wxmsw30u_xrc_gcc_custom.dll ./ && cp /mingw32/bin/zlib1.dll ./
Close MSYS2 MSYS with this command :
You can get the files of the release with Explorer or Run from this path : "C:\msys64\home\%username%\pcem\build_x86\src\release".
64 bit compilation
If you want to compile PCEm in 64 Bit then : Launch MSYS2 MinGW x64 from Windows Start menu.
Type :
Code: Select all
cd pcem
mkdir build_amd64 && cd build_amd64
cmake -G "MSYS Makefiles" -DUSE_NETWORKING=ON -DCMAKE_BUILD_TYPE=Release ..
make
Copy of 64 bit files libraries and compiled application to Release directory :
Code: Select all
cd src && mkdir release && cd release && cp ~/pcem/build_amd64/src/pcem.exe ./ && cp /mingw64/bin/libcrypto-1_1-x64.dll ./ && cp /mingw64/bin/libdeflate.dll ./ && cp /mingw64/bin/libexpat-1.dll ./ && cp /mingw64/bin/libgcc_s_seh-1.dll ./ && cp /mingw64/bin/libjbig-0.dll ./ && cp /mingw64/bin/libjpeg-8.dll ./ && cp /mingw64/bin/libLerc.dll ./ && cp /mingw64/bin/liblzma-5.dll ./ && cp /mingw64/bin/libopenal-1.dll ./ && cp /mingw64/bin/libpcap.dll ./ && cp /mingw64/bin/libpng16-16.dll ./ && cp /mingw64/bin/libssl-1_1-x64.dll ./ && cp /mingw64/bin/libstdc++-6.dll ./ && cp /mingw64/bin/libtiff-5.dll ./ && cp /mingw64/bin/libwebp-7.dll ./ && cp /mingw64/bin/libwinpthread-1.dll ./ && cp /mingw64/bin/libzstd.dll ./ && cp /mingw64/bin/SDL2.dll ./ && cp /mingw64/bin/wxbase30u_gcc_custom.dll ./ && cp /mingw64/bin/wxbase30u_xml_gcc_custom.dll ./ && cp /mingw64/bin/wxmsw30u_adv_gcc_custom.dll ./ && cp /mingw64/bin/wxmsw30u_core_gcc_custom.dll ./ && cp /mingw64/bin/wxmsw30u_html_gcc_custom.dll ./ && cp /mingw64/bin/wxmsw30u_xrc_gcc_custom.dll ./ && cp /mingw64/bin/zlib1.dll ./
Close MSYS2 MSYS with this command :
You can get the files of the release with Explorer or Run from this path : "C:\msys64\home\%username%\pcem\build_amd64\src\release".
And voilà, you can test your work !