I've been trying to compile my own version of PCem without success. The vanilla v11 binary works great but I would like to compile from hg while waiting for v12. This also happens when I try compiling v11.
If I compile without debug information I get the error:
I use GCC 4.7.2-1. I also followed Dreamer's instructions -- it says that you need to remove the GCC packages from the main installer and to install 4.7.2-1 manually afterwards. That worked for me.
PCem doesn't compile on newest versions of GCC and Leilei advised me to use 4.7.2 which is definitely known to work with PCem. It looks like it's a different issue - the app compiles bus doesn't run properly. Make sure You are using GCC 4.7.2 from the guide and try again. Post up if You mange to do it, and if it doesn't work out we will try to help You
Now this is simplest thing for anyone who wants to compile and dont know how, just download mingw_gcc-5.3.0-3_ready_to_compile_v8.3_for_pcem.7z and extract the content to pcem/src folder, then click Compile_release_build.bat and ... thats it, just wait and PCem_release.exe will be in this folder after the job is done.
I stil prefer Dreamer setup , but it require a bit of doing ,until you make it work, but this is the simplest ever.
Thank you szadycbr! Your solution did the trick. I still don't understand why my own MinGW cannot produce a working executable because AFAIK the setup is exactly the same as in the ready to compile archive.
Glad to hear that it works, but strangely i didnt had to copy anything to src folder (where release was build) to make executable , unless you try to run the exe in this folder, then you need three dll's from gcc/bin folder, libwinpthread-1.dll, libstdc++-6.dll, libgcc_s_dw2-1.dll is that the case?
And dont thank me, thank Altieres.lima for this.
Last edited by szadycbr on Mon 06 Feb, 2017 5:44 pm, edited 1 time in total.
I noticed a strange thing about the dlls. The build I just made doesn't require libwinpthread-1.dll at all. Or more specifically libgcc_s_dw2-1.dll that is included in mingw_gcc-5.3.0-3_ready_to_compile_v8.3_for_pcem.7z does not require libwinpthread-1.dll.
I've just built recent PCem revisions successfully with GCC 5.3 (MinGW) and GCC 6.2 (msys2).
For MinGW, I just performed a full and clean instalation and added some DirectX API headers(see here https://github.com/lifthrasiir/w32api-d ... standalone ).
But it's tricky to compile it on msys2. I added the missing headers and libs, but it still failed to compile cdrom-ioctl.c. I have to compile cdrom-ioctl.c alone, with "-D__MINGW64__" argument, and continue the make process.
Battler wrote:- teepean: The emulator is fataling before RAM is initialized, and then crashing when dumping the RAM. See pclog.txt for why it's fataling.
Here's the output. Is it possible to get the pclog.txt from a successful session?