Usando mi PC con Ubuntu como cassette para el CPC6128
- ron
- Mensajes: 21856
- Registrado: 28 Oct 2010 14:20
- Ubicación: retrocrypta
- Agradecido : 3862 veces
- Agradecimiento recibido: 4754 veces
Re: Usando mi PC con Ubuntu como cassette para el CPC6128
he hecho
git clone https://github.com/ralferoo/cpctools.git
Una vez dentro he compilado del tirón 2cdt, iDSK, playtzx y sounder
./configure y make... aaaaa correr. Si en la Pi no te compila igual es que te falta alguna dependencia o que aún no está portada a Raspbian. U otra opción es que use código exclusivo X86 y no rule en ARM sin necesidad de port.
Confirmo que la he compilado igualmente bien en PowerPC. Voy a probar en Raspbian y te digo algo....
git clone https://github.com/ralferoo/cpctools.git
Una vez dentro he compilado del tirón 2cdt, iDSK, playtzx y sounder
./configure y make... aaaaa correr. Si en la Pi no te compila igual es que te falta alguna dependencia o que aún no está portada a Raspbian. U otra opción es que use código exclusivo X86 y no rule en ARM sin necesidad de port.
Confirmo que la he compilado igualmente bien en PowerPC. Voy a probar en Raspbian y te digo algo....
- ron
- Mensajes: 21856
- Registrado: 28 Oct 2010 14:20
- Ubicación: retrocrypta
- Agradecido : 3862 veces
- Agradecimiento recibido: 4754 veces
Re: Usando mi PC con Ubuntu como cassette para el CPC6128
PlayTZX en Linux retropie 4.4.32-v7+ #924 SMP Tue Nov 15 18:11:28 GMT 2016 armv7l GNU/Linux
Funcionando !!! y compilan el resto de uitilidades sin problema.
Al final esto es lo que cuenta:
-rw-r--r-- 1 pi pi 259120 Nov 27 20:36 playtzx.o
-rwxr-xr-x 1 pi pi 224952 Nov 27 20:36 playtzx
Funcionando !!! y compilan el resto de uitilidades sin problema.
Código: Seleccionar todo
pi@retropie:~/ron/cpctools/playtzx-0.12b $ ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether lots of warnings requested... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
pi@retropie:~/ron/cpctools/playtzx-0.12b $ make
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c audio.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c playtzx.c
playtzx.c: In function ‘IdentifyC64ROM’:
playtzx.c:534:35: warning: pointer targets in passing argument 2 of ‘GetC64ROMName’ differ in signedness [-Wpointer-sign]
GetC64ROMName(name + 8, data);
^
playtzx.c:483:1: note: expected ‘char *’ but argument is of type ‘unsigned char *’
GetC64ROMName(char *name, char *data)
^
playtzx.c:537:36: warning: pointer targets in passing argument 2 of ‘GetC64ROMName’ differ in signedness [-Wpointer-sign]
GetC64ROMName(name + 12, data);
^
playtzx.c:483:1: note: expected ‘char *’ but argument is of type ‘unsigned char *’
GetC64ROMName(char *name, char *data)
^
playtzx.c: In function ‘GetCheckSum’:
playtzx.c:818:5: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return ("OK");
^
playtzx.c:821:5: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return (pstr);
^
playtzx.c: In function ‘main’:
playtzx.c:1163:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
mem = (char *) malloc(flen);
^
In file included from /usr/include/string.h:635:0,
from playtzx.c:26:
playtzx.c:1172:14: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(mem, "ZXTape!")) {
^
playtzx.c:1172:14: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
playtzx.c:1172:14: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(mem, "ZXTape!")) {
^
playtzx.c:1172:14: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
playtzx.c:1172:14: warning: pointer targets in passing argument 1 of ‘__builtin_strlen’ differ in signedness [-Wpointer-sign]
if (strcmp(mem, "ZXTape!")) {
^
playtzx.c:1172:14: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
playtzx.c:1172:14: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(mem, "ZXTape!")) {
^
playtzx.c:1172:14: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
playtzx.c:1172:14: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(mem, "ZXTape!")) {
^
playtzx.c:1172:14: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
playtzx.c:1172:14: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness [-Wpointer-sign]
if (strcmp(mem, "ZXTape!")) {
^
playtzx.c:1172:14: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
playtzx.c:1392:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
data = &mem[block[curr] + 1];
^
playtzx.c:1397:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[0]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1398:22: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
datalen = Get2(&data[2]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1429:61: warning: pointer targets in passing argument 1 of ‘GetCheckSum’ differ in signedness [-Wpointer-sign]
data[datalen - 1], data[datalen - 1], GetCheckSum(data, datalen));
^
playtzx.c:808:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
GetCheckSum(unsigned char *data, int len)
^
playtzx.c:1440:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_pilot = ConvSB(Get2(&data[0]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1441:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_sync1 = ConvSB(Get2(&data[2]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1442:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_sync2 = ConvSB(Get2(&data[4]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1443:29: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit0 = ConvSB(Get2(&data[6]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1444:29: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit1 = ConvSB(Get2(&data[8]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1446:46: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
speed = (int) ((1710.0 / (double) Get2(&data[8])) * 100.0);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1447:20: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
pilot = Get2(&data[10]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1449:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[13]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1450:22: warning: pointer targets in passing argument 1 of ‘Get3’ differ in signedness [-Wpointer-sign]
datalen = Get3(&data[15]);
^
playtzx.c:167:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get3(unsigned char *mem)
^
playtzx.c:1469:61: warning: pointer targets in passing argument 1 of ‘GetCheckSum’ differ in signedness [-Wpointer-sign]
data[datalen - 1], data[datalen - 1], GetCheckSum(data, datalen));
^
playtzx.c:808:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
GetCheckSum(unsigned char *data, int len)
^
playtzx.c:1472:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Pilot pulse: %5d T-States\n", Get2(data - 18));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1478:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Sync first pulse: %5d T-States\n", Get2(data - 16));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1481:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Sync second pulse: %5d T-States\n", Get2(data - 14));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1484:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Bit-0 pulse: %5d T-States\n", Get2(data - 12));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1487:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Bit-1 pulse: %5d T-States\n", Get2(data - 10));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1501:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_pilot = ConvSB(Get2(&data[0]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1502:20: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
pilot = Get2(&data[2]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1519:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Pulse length: %5d T-States\n", Get2(data));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1539:36: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_pulse = ConvSB(Get2(&data[0]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1561:29: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit0 = ConvSB(Get2(&data[0]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1562:29: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit1 = ConvSB(Get2(&data[2]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1564:46: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
speed = (int) ((1710.0 / (double) Get2(&data[2])) * 100.0);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1567:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[5]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1568:22: warning: pointer targets in passing argument 1 of ‘Get3’ differ in signedness [-Wpointer-sign]
datalen = Get3(&data[7]);
^
playtzx.c:167:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get3(unsigned char *mem)
^
playtzx.c:1582:61: warning: pointer targets in passing argument 1 of ‘GetCheckSum’ differ in signedness [-Wpointer-sign]
data[datalen - 1], data[datalen - 1], GetCheckSum(data, datalen));
^
playtzx.c:808:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
GetCheckSum(unsigned char *data, int len)
^
playtzx.c:1585:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Bit-0 pulse: %5d T-States\n", Get2(data - 10));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1588:70: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(tstr, " Bit-1 pulse: %5d T-States\n", Get2(data - 8));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1602:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_pulse = ConvSB(Get2(&data[0]));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1610:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[2]); /* (Should work for frequencies upto 48000) */
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1612:22: warning: pointer targets in passing argument 1 of ‘Get3’ differ in signedness [-Wpointer-sign]
datalen = Get3(&data[5]);
^
playtzx.c:167:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get3(unsigned char *mem)
^
playtzx.c:1618:63: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
datalen, (int) (0.5 + (3500000.0 / (double) Get2(&data[0]))));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1664:16: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
Get2(data), (int) (0.5 + (3500000.0 / (double) Get2(data))));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1664:63: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
Get2(data), (int) (0.5 + (3500000.0 / (double) Get2(data))));
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1679:23: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_pilot = Get2(&data[0]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1680:20: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
pilot = Get2(&data[2]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1681:23: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_sync1 = Get2(&data[4]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1682:23: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_sync2 = Get2(&data[6]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1683:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit0_f = Get2(&data[8]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1684:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit0_s = Get2(&data[10]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1685:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit1_f = Get2(&data[12]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1686:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit1_s = Get2(&data[14]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1688:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_finishbyte_f = Get2(&data[17]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1689:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_finishbyte_s = Get2(&data[19]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1690:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_finishdata_f = Get2(&data[21]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1691:30: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_finishdata_s = Get2(&data[23]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1692:26: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_trailing = Get2(&data[25]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1693:23: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
trailing = Get2(&data[27]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1696:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[31]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1697:22: warning: pointer targets in passing argument 1 of ‘Get3’ differ in signedness [-Wpointer-sign]
datalen = Get3(&data[33]);
^
playtzx.c:167:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get3(unsigned char *mem)
^
playtzx.c:1699:31: warning: pointer targets in passing argument 2 of ‘IdentifyC64ROM’ differ in signedness [-Wpointer-sign]
IdentifyC64ROM(datalen, data, 1);
^
playtzx.c:519:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
IdentifyC64ROM(int pos, unsigned char *data, int type)
^
playtzx.c:1758:22: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit0 = Get2(&data[0]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1759:22: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sb_bit1 = Get2(&data[2]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1761:26: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
num_lead_in = Get2(&data[5]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1765:23: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
trailing = Get2(&data[10]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1767:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[13]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1768:22: warning: pointer targets in passing argument 1 of ‘Get3’ differ in signedness [-Wpointer-sign]
datalen = Get3(&data[15]);
^
playtzx.c:167:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get3(unsigned char *mem)
^
playtzx.c:1823:24: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
tzx_pause = Get2(&data[0]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1946:25: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
loop_count = Get2(&data[0]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:1988:23: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
call_num = Get2(&data[0]);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:2035:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
data = &mem[block[curr] + 1];
^
playtzx.c:2311:13: warning: array subscript has type ‘char’ [-Wchar-subscripts]
printf(" This tape is made for %s !\n", hid[0][data[2]]);
^
playtzx.c:2359:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sprintf(pstr, " %s %s\n", spdstr, hid[d[0]][d[1]]);
^
playtzx.c:2359:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
playtzx.c:2362:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sprintf(pstr, " %s: %s\n", htype[d[0]], hid[d[0]][d[1]]);
^
playtzx.c:2362:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
playtzx.c:2362:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
playtzx.c:2365:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
lastlen = strlen(htype[d[0]]);
^
playtzx.c:2449:73: warning: pointer targets in passing argument 1 of ‘Get2’ differ in signedness [-Wpointer-sign]
sprintf(pstr, "%s %s %5d %s %s %s\n", spdstr, tstr4, Get2(&data[1]), tstr3, tstr, tstr2);
^
playtzx.c:161:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
Get2(unsigned char *mem)
^
playtzx.c:2531:9: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
sprintf(pstr, "\0");
^
playtzx.c:2599:31: warning: pointer targets in passing argument 2 of ‘IdentifyC64ROM’ differ in signedness [-Wpointer-sign]
IdentifyC64ROM(datalen, data, 0);
^
playtzx.c:519:1: note: expected ‘unsigned char *’ but argument is of type ‘char *’
IdentifyC64ROM(int pos, unsigned char *data, int type)
^
playtzx.c:2601:9: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
sprintf(pstr, "\0");
^
playtzx.c:2666:9: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
sprintf(pstr, "\0");
^
gcc -g -O2 -Wall -o playtzx audio.o playtzx.o
Al final esto es lo que cuenta:
-rw-r--r-- 1 pi pi 259120 Nov 27 20:36 playtzx.o
-rwxr-xr-x 1 pi pi 224952 Nov 27 20:36 playtzx
- cpcbegin
- Mensajes: 425
- Registrado: 27 Ago 2014 22:02
- Agradecido : 295 veces
- Agradecimiento recibido: 196 veces
- Contactar:
Re: Usando mi raspberry pi como cassette para el CPC6128
Gracias, ya lo he conseguido en la raspberry pi tenía que instalar algunos paquetes más:
https://www.youtube.com/watch?v=KHzhiIYs6dQ
Código: Seleccionar todo
sudo apt-get install texinfo build-essential automake
https://www.youtube.com/watch?v=KHzhiIYs6dQ
- ron
- Mensajes: 21856
- Registrado: 28 Oct 2010 14:20
- Ubicación: retrocrypta
- Agradecido : 3862 veces
- Agradecimiento recibido: 4754 veces
¿Quién está conectado?
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 2 invitados