Installation de l'environnement de développement CPCtelera

Distribution de travail : Lubuntu 22.04

I/ Installation de CPCTelera.

Lien :
https://github.com/lronaldo/cpctelera

1/ Création du répertoire de travail.

util01@station40:~$ mkdir AMSTRAD
util01@station40:~$ cd AMSTRAD/
util01@station40:~/AMSTRAD$ 

2/ Téléchargement de l'archive.

util01@station40:~/AMSTRAD$ wget https://github.com/lronaldo/cpctelera/archive/refs/heads/development.zip

3/ Décompression de l'archive.

util01@station40:~/AMSTRAD$ unzip development.zip
util01@station40:~/AMSTRAD$ cd cpctelera-development/
util01@station40:~/AMSTRAD/cpctelera-development$ 

4/ Installation de CPCtelera.

util01@station40:~/AMSTRAD/cpctelera-development$ ./setup.sh 

II/ Installation de l'éditeur de carte Tiled.

Lien :
https://www.mapeditor.org/

1/ Installation des librairies de développement.

util01@station40:~/AMSTRAD$ sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev-tools zlib1g-dev qtdeclarative5-dev qbs

2/ Téléchargement de l'archive.

util01@station40:~/AMSTRAD$ wget https://github.com/mapeditor/tiled/archive/refs/tags/v1.11.0.tar.gz

3/ Décompression de l'archive.

util01@station40:~/AMSTRAD$ tar xvfz v1.11.0.tar.gz
util01@station40:~/AMSTRAD$ cd tiled-1.11.0
util01@station40:~/AMSTRAD/tiled-1.11.0$ 

4/ Installation.

util01@station40:~/AMSTRAD/tiled-1.11.0$ qbs setup-toolchains --detect
util01@station40:~/AMSTRAD/tiled-1.11.0$ qbs setup-qt --detect
util01@station40:~/AMSTRAD/tiled-1.11.0$ qbs install

5/ Lancement de Tiled.

util01@station40:~/AMSTRAD/tiled-1.11.0$ qbs run -p tiled

III/ Installation de l'émulateur xcpc.

Lien :
https://www.xcpc-emulator.net/

1/ Installation des bibliothèques de développement.

util01@station40:~/AMSTRAD$ sudo apt-get install autoconf automake libtool autoconf-archive libgtk-3-dev xorg-dev

2/ Téléchargement de l'archivE.

util01@station40:~/AMSTRAD$ wget https://github.com/ponceto/xcpc-emulator/archive/refs/tags/xcpc-0.52.0.tar.gz

3/ Décompression de l'archive.

util01@station40:~/AMSTRAD$ tar xvfz xcpc-0.52.0.tar.gz
util01@station40:~/AMSTRAD$ cd xcpc-emulator-xcpc-0.52.0/
util01@station40:~/AMSTRAD/xcpc-emulator-xcpc-0.52.0$

4/ Auto-configuration pour la compilation.

util01@station40:~/AMSTRAD/xcpc-emulator-xcpc-0.52.0$ autoreconf -v -i -f

5/ Configuration de la compilation.

util01@station40:~/AMSTRAD/xcpc-emulator-xcpc-0.52.0$ ./configure

6/ Compilation.

util01@station40:~/AMSTRAD/xcpc-emulator-xcpc-0.52.0$ make

7/ Installation.

util01@station40:~/AMSTRAD/xcpc-emulator-xcpc-0.52.0$ sudo make install

8/ Lancement.

util01@station40:~$ xcpc

IV/ Compilation du jeu Sorcerer.

Lien : https://github.com/salvakantero

1/ Téléchargement du code source du jeu.

util01@station40:~$ cd AMSTRAD/cpctelera-development/examples/games/
util01@station40:~/AMSTRAD/cpctelera-development/examples/games$ 
util01@station40:~/AMSTRAD/cpctelera-development/examples/games$ git clone https://github.com/salvakantero/Sorcerers_CPC.git Sorcerers
util01@station40:~/AMSTRAD/cpctelera-development/examples/games$ cd Sorcerers/
util01@station40:~/AMSTRAD/cpctelera-development/examples/games/Sorcerers$ 

2/ Configuration.

Ouvrir :

cfg/build_config.mk

Chercher :

#>> Uses environment variable $(CPCT_PATH)

Ajouter après :

#>> Uses environment variable $(CPCT_PATH)
THIS_FILE_PATH := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
CPCT_PATH      := $(THIS_FILE_PATH)../../../../cpctelera/

3/ Compilation :

util01@station40:~/AMSTRAD/cpctelera-development/examples/games/Sorcerers$ make
...
[sorcerers] Creating Cassette file 'sorcerers.cdt'
'sorcerers.cdt' < 'loader.patch2.bin' {Format:'firmware' Load:'0xBF2A' Run:'0xBF2A' Name:'sorcerers'}
'sorcerers.cdt' < 'screen.patched.showscr.bin' {Format:'miniload' }
'sorcerers.cdt' < 'sorcerers.bin' {Format:'miniload' }
[sorcerers] Successfully created 'sorcerers.cdt'
[sorcerers] Creating Disk File 'sorcerers.dsk'
Removed preexisting sorcerers.dsk to generate a new one
DSK : sorcerers.dsk
------------------------------------
[sorcerers.dsk] Added BIN file 'obj/sorcerers.bin'
[sorcerers] Successfully created 'sorcerers.dsk'
[sorcerers] All files added to sorcerers.dsk. Disc ready.
[sorcerers] Creating Snapshot File 'sorcerers.sna'
[sorcerers] Successfully created 'sorcerers.sna'

4/ Erreurs :

  • Erreur #1 :
##> '/tools/img2cpc/bin/img2cpc' a does not exist or is not readable. This file is required for cpct_img2tileset to work properly. Please, check CPCtelera's tools installation and ensure Img2CPC is correctly installed. 

Solution :

Ouvrir :

~/AMSTRAD/cpctelera-development/cpctelera/tools/scripts/cpct_img2tileset

Chercher :

## Img2CPC utility location
IMG2CPC=

Remplacer par :

## Img2CPC utility location
IMG2CPC=/home/util01/AMSTRAD/cpctelera-development/cpctelera/tools/img2cpc/bin/img2cpc
  • Erreur #2 :
##> '/tools/arkosTracker-1.0/tools/AKSToBIN.exe' does not exist. This file is required for this script to work properly. Please, check CPCtelera installation is okay and this file is in its place and has required user permissions. 

Solution :

Ouvrir :

~/AMSTRAD/cpctelera-development/cpctelera/tools/scripts/cpct_aks2c

Chercher :

## AKS2BIN utility location
AKS2BIN=${CPCT_PATH}/tools/arkosTracker-1.0/tools/AKSToBIN.exe
STK2AKS=${CPCT_PATH}/tools/arkosTracker-1.0/tools/STKToAKS.exe

Remplacer par :

## AKS2BIN utility location
AKS2BIN=/home/util01/AMSTRAD/cpctelera-development/cpctelera/tools/arkosTracker-1.0/tools/AKSToBIN.exe
STK2AKS=/home/util01/AMSTRAD/cpctelera-development/cpctelera/tools/arkosTracker-1.0/tools/STKToAKS.exe

5/ Le jeu Sorcerer sous Xcpc.

s01.png

s02.png