CPCWiki forum

General Category => Emulators => Topic started by: megachur on 09:41, 04 June 21

Title: CPCEPower v2105
Post by: megachur on 09:41, 04 June 21
v2105 - Windows 10 x86 & x64  - MacOS x64 - Linux x64 and Raspberry Pi4

OSD: Added files selection for A: B: TAPE: SNA: and CART: !
FDC: Corrected the sector order when formating track
ALL: Code refactoring and correcting some little bugs
RAW: Better correcting of bad sectors
IPF: Major refactoring/rewrite of the decode Engine and now it is bit aligned (was byte aligned before (8 bits)) 
SDL2: Updated to the last version 2.0.14

Enjoy  :biere: !
Title: Re: CPCEPower v2105
Post by: SkulleateR on 10:22, 04 June 21
Is the Pi4 Version 32 or 64Bit ?


I cannot get it to work on my Pi 400, I even did a new install of SDL 2.0.14 from scratch ....



error while loading shared libraries: libSDL2-2.0.so.0: wrong ELF class: ELFCLASS64
Title: Re: CPCEPower v2105
Post by: SkulleateR on 12:34, 04 June 21
Ok, just wanted to test on Raspbian OS 32 Bit .... no output here, no error message, nothing ....


Just quits back to Terminal ...  ???
Title: Re: CPCEPower v2105
Post by: megachur on 13:01, 04 June 21
Quote from: SkulleateR on 12:34, 04 June 21
Ok, just wanted to test on Raspbian OS 32 Bit .... no output here, no error message, nothing ....


Just quits back to Terminal ...  ???
On my Pi4 B, I use normal Raspberry Pi OS (32-bit) (https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit) with last updates and SDL 2.0.13 by default (if I remember well).
Have you dezipped all the file in the same directory (cpcemu.ini file, IMG, ROM, WAVE, directories and CPCEPower_SDL_Pi4 executable) ?

You should have a nice welcome msg if you execute it from shell by ./CPCEPower_SDL_Pi4...

Same on PI400, no need of SDL 2.0.14 ... last approved 2.0.13 should work...
Title: Re: CPCEPower v2105
Post by: SkulleateR on 13:34, 04 June 21
Ok, still no joy ... tried a fresh Raspbian OS 32Bit install ... extracted all into "cpc"


Getting the same as before :




pi@raspberrypi:~ $ cd cpc
pi@raspberrypi:~/cpc $ ./CPCEPower_SDL_Pi4
pi@raspberrypi:~/cpc $



It just exits back to the pi prompt .....
Title: Re: CPCEPower v2105
Post by: megachur on 19:02, 04 June 21
Quote from: SkulleateR on 13:34, 04 June 21
Ok, still no joy ... tried a fresh Raspbian OS 32Bit install ... extracted all into "cpc"


Getting the same as before :




pi@raspberrypi:~ $ cd cpc
pi@raspberrypi:~/cpc $ ./CPCEPower_SDL_Pi4
pi@raspberrypi:~/cpc $



It just exits back to the pi prompt .....
Strange... I'm sorry about that... I don't know what is wrong exactly... Can anyone try the Pi Version too and report result here ?

There is a prompt just at the beginning after SDL2 init...

What version of SDL2 have you installed ? -:> cf https://www.raspberrypi.org/forums/viewtopic.php?t=58180 (https://www.raspberrypi.org/forums/viewtopic.php?t=58180)
Note : you only need SDL2 library, no other support library.

can you type sdl2-config --version and tell my which version is reported ?
Title: Re: CPCEPower v2105
Post by: SkulleateR on 19:07, 04 June 21
Quote from: megachur on 19:02, 04 June 21
What version of SDL2 have you installed ? -:> cf https://www.raspberrypi.org/forums/viewtopic.php?t=58180 (https://www.raspberrypi.org/forums/viewtopic.php?t=58180)
Note : you only need SDL2 library, no other support library.


I tried various versions, in the moment it's 2.0.14 if I do a SDL2-CONFIG --VERSION ....
Title: Re: CPCEPower v2105
Post by: megachur on 19:12, 04 June 21
Have you get it with
sudo apt install libsdl2-2.0-0

or have you compiled it ?

I suggest to remove yours and get the official to see what appends !
Title: Re: CPCEPower v2105
Post by: SkulleateR on 23:11, 04 June 21
Ok, here we go, did a fresh Raspbian install ....



sudo apt install libsdl2-2.0-0



gets me to : ./CPCEPower_SDL_Pi4: symbol lookup error: ./CPCEPower_SDL_Pi4: undefined symbol: SDL_RWseek

also, I get no SDL2 Version ....


Next try :


sudo apt-get install libsdl2-dev

gets me to the same error as above, but with "sdl2-config --version" I get 2.0.9

now the only way to get higher is compiling it from http://libsdl.org/download-2.0.php (http://libsdl.org/download-2.0.php)

Then I get Version 2.0.14 but I cannot start the emu ..... I'm a bit lost here ....
Title: Re: CPCEPower v2105
Post by: megachur on 07:34, 05 June 21
Ok, sorry about that, the previous CPCEPower_Pi4 was compiled with include and lib of SDL_2.0.13 version on my dev configuration !!!

There is a new compiled version for SDL_2.0.14 here !


Thanks a lot for the reporting.


To compile SDL2 on Rasbian OS : (replace 14 -> 13 for use the executable in the previous zip file ;-))




wget -c https://www.libsdl.org/release/SDL2-2.0.14.tar.gz
tar zxf ./SDL2-2.0.14.tar.gz
cd SDL2-2.0.14
mkdir build && cd build && dir
../configure --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd --disable-video-wayland
make
sudo make install
cd rpi-sdl2-installed/
sudo cp -r * /usr/local/
cd ../../..


Now you should have this msg :





INFO: CPCEPower v2105 (c) 2016-2021 by Megachur running on Linux with 3827 MB using SDL v2.0.14 on a multithread system. Compiled by GNU GCC v8.3.0
Title: Re: CPCEPower v2105
Post by: megachur on 07:40, 05 June 21
Also, I've tried the previous executable and it work well with SDL2_2_0_14...


So, check also that you have last libpng and libzlib installed :


sudo apt install libpng16-16
sudo apt install zlib1g


It can be also a case of non executing the program !
Title: Re: CPCEPower v2105
Post by: SkulleateR on 13:04, 05 June 21
Thanks, I will try this evening when getting home :)

Btw. any chance to compile it for ARM64 ;) ??
Title: Re: CPCEPower v2105
Post by: SkulleateR on 08:13, 08 June 21
Just switched to new executable and it works instantly on 32Bit , thx :)
Powered by SMFPacks Menu Editor Mod