Author Topic: CPCEPower v2105  (Read 1079 times)

0 Members and 1 Guest are viewing this topic.

Offline megachur

  • CPC664
  • ***
  • Posts: 101
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 134
  • Likes Given: 13
CPCEPower v2105
« on: 11: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: !

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #1 on: 12: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 ....


Code: [Select]
error while loading shared libraries: libSDL2-2.0.so.0: wrong ELF class: ELFCLASS64

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #2 on: 14: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 ...  ???

Offline megachur

  • CPC664
  • ***
  • Posts: 101
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 134
  • Likes Given: 13
Re: CPCEPower v2105
« Reply #3 on: 15:01, 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) 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...
« Last Edit: 15:04, 04 June 21 by megachur »

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #4 on: 15:34, 04 June 21 »
Ok, still no joy ... tried a fresh Raspbian OS 32Bit install ... extracted all into "cpc"


Getting the same as before :


Code: [Select]

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


It just exits back to the pi prompt .....

Offline megachur

  • CPC664
  • ***
  • Posts: 101
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 134
  • Likes Given: 13
Re: CPCEPower v2105
« Reply #5 on: 21:02, 04 June 21 »
Ok, still no joy ... tried a fresh Raspbian OS 32Bit install ... extracted all into "cpc"


Getting the same as before :


Code: [Select]

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
Note : you only need SDL2 library, no other support library.

can you type sdl2-config --version and tell my which version is reported ?
« Last Edit: 21:07, 04 June 21 by megachur »

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #6 on: 21:07, 04 June 21 »
What version of SDL2 have you installed ? -:> cf 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 ....

Offline megachur

  • CPC664
  • ***
  • Posts: 101
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 134
  • Likes Given: 13
Re: CPCEPower v2105
« Reply #7 on: 21: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 !

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #8 on: 01:11, 05 June 21 »
Ok, here we go, did a fresh Raspbian install ....


Code: [Select]
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 :

Code: [Select]
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

Then I get Version 2.0.14 but I cannot start the emu ..... I'm a bit lost here ....

Offline megachur

  • CPC664
  • ***
  • Posts: 101
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 134
  • Likes Given: 13
Re: CPCEPower v2105
« Reply #9 on: 09: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 ;-))


Code: [Select]

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 :



Code: [Select]

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

Offline megachur

  • CPC664
  • ***
  • Posts: 101
  • Country: fr
  • z80 Powaaa !
    • cpc-power
  • Liked: 134
  • Likes Given: 13
Re: CPCEPower v2105
« Reply #10 on: 09: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 :


Code: [Select]
sudo apt install libpng16-16
sudo apt install zlib1g

It can be also a case of non executing the program !

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #11 on: 15:04, 05 June 21 »
Thanks, I will try this evening when getting home :)

Btw. any chance to compile it for ARM64 ;) ??

Offline SkulleateR

  • 464 Plus
  • *****
  • Posts: 463
  • Country: de
  • Liked: 225
  • Likes Given: 129
Re: CPCEPower v2105
« Reply #12 on: 10:13, 08 June 21 »
Just switched to new executable and it works instantly on 32Bit , thx :)