MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Aquaplus P/ECE ("piece") emulator
#397661 - 01/06/24 04:12 AM Attachment: Screenshot 2024-01-05 195610.png 42 KB (0 downloads)


I had to use the msys64-2022-01-12 to build the tools. mkpfi and pfar

This is from the piemu-master source. I tried the piemu_old that the dev told people to use, and I couldn't get those to make.

There will be some errors on building the tools from the piemu-master but the tools run just fine.

There are no sounds so I don't know what went wrong. I didn't build the emulator. I got it from here. https://github.com/autch/piemu/issues/3 piemu_3x_ea7ce8.zip

This game is called WireRobo Piece.

Game just like the PC version. Just without the kid on the screen and no video. lol

Forgot to say that the games have to be added into the piece.pfi file in order to play the games. The piece.pfi will not change size after a game added. Stayed at 2.00mb

Testing some games out.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


I was trying to build it. Twice got an error. Dev tried to help me out. new [Re: Dullaron]
#397673 - 01/10/24 04:59 AM


He told me to do this.


Quote:


$ pacman -S mingw64/mingw-w64-x86_64-SDL2 msys/cmake mingw64/mingw-w64-x86_64-gcc git
$ git clone -b modernize https://github.com/autch/piemu.git
$ cd piemu
$ mkdir BUILD
$ cd BUILD
$ CC=x86_64-w64-mingw32-gcc cmake ../
$ ninja




Already in the msys64-2022-01-12.exe. No need to redownload the tools.

Error #1. WinMain

[30/30] Linking C executable piemu.exe
FAILED: piemu.exe
cmd.exe /C "cd . && D:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe CMakeFiles/piemu.dir/bcu.c.obj CMakeFiles/piemu.dir/emu.c.obj CMakeFiles/piemu.dir/fram.c.obj CMakeFiles/piemu.dir/lcdc.c.obj CMakeFiles/piemu.dir/piemu.c.obj CMakeFiles/piemu.dir/usbc.c.obj CMakeFiles/piemu.dir/core.c.obj CMakeFiles/piemu.dir/flash.c.obj CMakeFiles/piemu.dir/iomem.c.obj CMakeFiles/piemu.dir/main.c.obj CMakeFiles/piemu.dir/sram.c.obj -o piemu.exe -Wl,--out-implib,libpiemu.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,-Bstatic -lSDL2main -Wl,-Bdynamic -lSDL2 libc33core.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): in function main': C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to WinMain'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Then he told me to do this.


Quote:


try to uncomment SDLmain line in piemu/CMakeLists.txt, or change its order among them

piemu/CMakeLists.txt

Lines 88 to 92 in 19d95d5

target_link_libraries(piemu
${SDL2_LIBRARIES}
c33core
# SDLmain
)




Error #2. lSDLmain

FAILED: piemu.exe
cmd.exe /C "cd . && D:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe CMakeFiles/piemu.dir/bcu.c.obj CMakeFiles/piemu.dir/emu.c.obj CMakeFiles/piemu.dir/fram.c.obj CMakeFiles/piemu.dir/lcdc.c.obj CMakeFiles/piemu.dir/piemu.c.obj CMakeFiles/piemu.dir/usbc.c.obj CMakeFiles/piemu.dir/core.c.obj CMakeFiles/piemu.dir/flash.c.obj CMakeFiles/piemu.dir/iomem.c.obj CMakeFiles/piemu.dir/main.c.obj CMakeFiles/piemu.dir/sram.c.obj -o piemu.exe -Wl,--out-implib,libpiemu.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -Wl,-Bstatic -lSDL2main -Wl,-Bdynamic -lSDL2 -lSDLmain libc33core.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lSDLmain
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Using the msys64-2022-01-12.exe from here. https://www.mamedev.org/tools/

How I fix this? I will send the him the fix. Post this link to there.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



URherenow
Reged: 09/21/03
Posts: 4260
Loc: Japan
Send PM


Re: I was trying to build it. Twice got an error. Dev tried to help me out. new [Re: Dullaron]
#397674 - 01/10/24 12:27 PM Attachment: piemu2.png 25 KB (0 downloads)


I just did exactly what is written in the first quote, and had no issues building whatsoever. Are you actually launching msys2, or are you launching mingw64? Because when you're building a windows executable, you should be launching (and following those instructions within) mingw64.

Although trying to run piemu, I get an error that SDL2.dll is missing. EDIT: Grabbed it from: https://github.com/libsdl-org/SDL/releases/tag/release-2.28.5 and put it in the directory, now I need to get a piece.pfi file.

EDIT2: K, got the piece.pfi using the update at https://aquaplus.jp/piece/dl/update120.html and mkpfi.exe from the tools directory. Not sure where to go from here or how to use it/install games, but it seems I had no trouble building it and making it work.

Edit3: The slot game I tried doesn't work. Found this: https://www.asahi-net.or.jp/~cs8k-cyu/piece/re.html and was able to install it, and it works. But it's weird. I'm not quite sure what it is. Anything you can recommend to try installing/playing?

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Just broke my personal record for number of consecutive days without dying!



URherenow
Reged: 09/21/03
Posts: 4260
Loc: Japan
Send PM


Re: I was trying to build it. Twice got an error. Dev tried to help me out. new [Re: URherenow]
#397675 - 01/10/24 12:57 PM Attachment: piemu3.png 17 KB (0 downloads)




[ATTACHED IMAGE]

Attachment



Just broke my personal record for number of consecutive days without dying!



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


I got it now. new [Re: URherenow]
#397678 - 01/11/24 06:47 AM Attachment: Screenshot 2024-01-11 053501.png 31 KB (0 downloads)


[26/30] Building C object tools/CMakeFiles/mkpfi.dir/pfi.c.obj
C:/msys64/home/KingH/piemu/tools/pfi.c: In function 'PFIOpen':
C:/msys64/home/KingH/piemu/tools/pfi.c:37:49: warning: multi-character character constant [-Wmultichar]
37 | if((pfi->header.signature & 0xffffff00) == ('PFI0' & 0xffffff00))
| ^~~~~~
[30/30] Linking C executable piemu.exe

I'm using this now. https://docs.mamedev.org/initialsetup/compilingmame.html#using-a-standard-msys2-installation

I won't be needing the msys64-2022-01-12.exe anymore.

[ATTACHED IMAGE]

Attachment



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Download here. new [Re: Dullaron]
#397681 - 01/11/24 04:53 PM Attachment: piemu.zip 1568 KB (2 downloads)


Be sure to read the notes. No games included.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Bigger screen. I edited the source. Changed from 4 to 8. new [Re: Dullaron]
#397700 - 01/16/24 04:45 AM Attachment: piemu.zip 301 KB (0 downloads)


Drop this into the piemu folder. Replace the other one.

Edit main.c and then find this. Info here. https://github.com/autch/piemu/issues/3#issuecomment-1089883077

128 * 4, 88 * 4, SDL_WINDOW_ALLOW_HIGHDPI);

Change both 4 to a higher number. The emulator screen will be bigger.

Pointing out that some games will run too fast. I notice this issue last night. Unplayable speed. Zoom to game over. Nothing that you can do about the speed behavior.

Note: Do not beg the MAME Dev team. Just use what we have for now.



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB



Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM


Someone said to use the 1.18. Info here. new [Re: URherenow]
#397704 - 01/16/24 01:59 PM Attachment: Screenshot 2024-01-16 055704.png 148 KB (0 downloads)


I'm not posting the link to this site because there are some games links.

I will try the BIOS version 1.18 to see the games behavior change.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 290 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 392