lr-hatari failed to build linux mint
-
I am getting hatari.libretro.so not found after installing from source
I searched through the install and found this "In file included from ./src/includes/caps5/CapsLibAll.h:5:0,
from src/floppy_ipf.c:30:
./src/includes/caps5/CommonTypes.h:13:9: error: unknown type name ‘uint8_t’
typedef uint8_t UBYTE;
^~~~~~~
./src/includes/caps5/CommonTypes.h:14:9: error: unknown type name ‘uint16_t’
typedef uint16_t UWORD;
^~~~~~~~
./src/includes/caps5/CommonTypes.h:15:9: error: unknown type name ‘uint32_t’
typedef uint32_t UDWORD;
^~~~~~~~
./src/includes/caps5/CommonTypes.h:16:9: error: unknown type name ‘uint64_t’
typedef uint64_t UQUAD;
^~~~~~~~
src/floppy_ipf.c:49:2: error: unknown type name ‘CapsLong’
CapsLong CapsImage[ MAX_FLOPPYDRIVES ]; /* For the IPF disk images */
^~~~~~~~
src/floppy_ipf.c:66:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Trk ( struct CapsFdc *pc , CapsULong State );
^~~~~~~~~
src/floppy_ipf.c:67:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Irq ( struct CapsFdc *pc , CapsULong State );
^~~~~~~~~
src/floppy_ipf.c:68:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Drq ( struct CapsFdc *pc , CapsULong State );
^~~~~~~~~
src/floppy_ipf.c: In function ‘IPF_MemorySnapShot_Capture’:
src/floppy_ipf.c:133:26: error: ‘IPF_CallBack_Irq’ undeclared (first use in this function)
IPF_State.Fdc.cbirq = IPF_CallBack_Irq;
^~~~~~~~~~~~~~~~
src/floppy_ipf.c:133:26: note: each undeclared identifier is reported only once for each function it appears in
src/floppy_ipf.c:134:26: error: ‘IPF_CallBack_Drq’ undeclared (first use in this function); did you mean ‘IPF_CallBack_Irq’?
IPF_State.Fdc.cbdrq = IPF_CallBack_Drq;
^~~~~~~~~~~~~~~~
IPF_CallBack_Irq
src/floppy_ipf.c:135:26: error: ‘IPF_CallBack_Trk’ undeclared (first use in this function); did you mean ‘IPF_CallBack_Drq’?
IPF_State.Fdc.cbtrk = IPF_CallBack_Trk;
^~~~~~~~~~~~~~~~
IPF_CallBack_Drq
src/floppy_ipf.c: In function ‘IPF_Init’:
src/floppy_ipf.c:284:24: error: ‘IPF_CallBack_Irq’ undeclared (first use in this function)
IPF_State.Fdc.cbirq = IPF_CallBack_Irq;
^~~~~~~~~~~~~~~~
src/floppy_ipf.c:285:24: error: ‘IPF_CallBack_Drq’ undeclared (first use in this function); did you mean ‘IPF_CallBack_Irq’?
IPF_State.Fdc.cbdrq = IPF_CallBack_Drq;
^~~~~~~~~~~~~~~~
IPF_CallBack_Irq
src/floppy_ipf.c:286:24: error: ‘IPF_CallBack_Trk’ undeclared (first use in this function); did you mean ‘IPF_CallBack_Drq’?
IPF_State.Fdc.cbtrk = IPF_CallBack_Trk;
^~~~~~~~~~~~~~~~
IPF_CallBack_Drq
src/floppy_ipf.c: In function ‘IPF_Insert’:
src/floppy_ipf.c:320:2: error: unknown type name ‘CapsLong’
CapsLong ImageId;
^~~~~~~~
src/floppy_ipf.c:321:2: error: unknown type name ‘CapsLong’
CapsLong ImageType;
^~~~~~~~
src/floppy_ipf.c:331:39: warning: passing argument 1 of ‘CAPSGetImageTypeMemory’ from incompatible pointer type [-Wincompatible-pointer-types]
ImageType = CAPSGetImageTypeMemory ( pImageBuffer , ImageSize );
^~~~~~~~~~~~
In file included from ./src/includes/caps5/CapsLibAll.h:9:0,
from src/floppy_ipf.c:30:
./src/includes/caps5/CapsLib.h:41:23: note: expected ‘PUBYTE {aka int *}’ but argument is of type ‘Uint8 * {aka unsigned char *}’
ExtSub SDWORD __cdecl CAPSGetImageTypeMemory(PUBYTE buffer, UDWORD length);
^~~~~~~~~~~~~~~~~~~~~~
src/floppy_ipf.c:354:55: error: ‘CapsULong’ undeclared (first use in this function)
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~
src/floppy_ipf.c:354:65: error: expected ‘)’ before ‘ImageSize’
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~
src/floppy_ipf.c:354:39: warning: passing argument 2 of ‘CAPSLockImageMemory’ from incompatible pointer type [-Wincompatible-pointer-types]
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~~~~
In file included from ./src/includes/caps5/CapsLibAll.h:9:0,
from src/floppy_ipf.c:30:
./src/includes/caps5/CapsLib.h:21:23: note: expected ‘PUBYTE {aka int *}’ but argument is of type ‘Uint8 * {aka unsigned char *}’
ExtSub SDWORD __cdecl CAPSLockImageMemory(SDWORD id, PUBYTE buffer, UDWORD length, UDWORD flag);
^~~~~~~~~~~~~~~~~~~
src/floppy_ipf.c:354:7: error: too few arguments to function ‘CAPSLockImageMemory’
if ( CAPSLockImageMemory ( ImageId , pImageBuffer , (CapsULong)ImageSize , DI_LOCK_MEMREF ) == imgeOk )
^~~~~~~~~~~~~~~~~~~
In file included from ./src/includes/caps5/CapsLibAll.h:9:0,
from src/floppy_ipf.c:30:
./src/includes/caps5/CapsLib.h:21:23: note: declared here
ExtSub SDWORD __cdecl CAPSLockImageMemory(SDWORD id, PUBYTE buffer, UDWORD length, UDWORD flag);
^~~~~~~~~~~~~~~~~~~
src/floppy_ipf.c: At top level:
src/floppy_ipf.c:470:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Trk ( struct CapsFdc *pc , CapsULong State )
^~~~~~~~~
src/floppy_ipf.c:499:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Irq ( struct CapsFdc *pc , CapsULong State )
^~~~~~~~~
src/floppy_ipf.c:518:53: error: unknown type name ‘CapsULong’
static void IPF_CallBack_Drq ( struct CapsFdc *pc , CapsULong State )
^~~~~~~~~
Makefile.libretro:219: recipe for target 'src/floppy_ipf.o' failed
make: *** [src/floppy_ipf.o] Error 1
make: *** Waiting for unfinished jobs....
^CMakefile.libretro:219: recipe for target 'libretro/uae-cpu-pregen/cpuemu.o' failed"Am running linux mint 19.3 tricia cinnamon
using the latest update of Retropie 4.5.17Any ideas please @mitu?
PS have tried github nightly buid and even though it works .ipf roms do not automatically load (just loads desktop and drives are not readable)
-
Hm, there is a build error on the
x86
platform, though I get a different one than yours. -
I think I did this module. Would be useful to know which versions of GCC are involved in first post. I'll take a look ( @mitu let me know if you are so we don't waste time) :-) I know it used to build ok. Probably newer GCC or header issues.
-
Building with the Raspbian Buster
gcc
(8) seems fine, on an Ubuntu 18.04 (gcc 7.5) I get a linking error (libcapsimage.5.1
not found ) which seems to resolve if we move the scriptmoduleLDFLAGS
at the end of the link command (-L./lib -l:libcapsimage.so.5.1
to appear at the end).
But I don't have the error in the parent post (which appears when buildinglibcapsimage
).I see Linux Mint 9.3 has the same
gcc
version as said Ubuntu LTS release. Checking on the current Stretch release right now to see if it's the same error.EDIT: Looks ok on Raspbian Stretch - no errors installing.
@Ghostof1980 can you post the complete log message from installing
lr-hatari
(orhatari
) to pastebin.com ? -
-
Somehow, it looks like the RetroPie patch for
lr-hatari
doesn't get applied. Try removing/clearing the source folder and re-install again. -
@mitu sorry that was my bad, still not working though https://pastebin.com/DFz9ddC3
-
While this is a different error, it's the same I got on Ubuntu 18.04 and it's fixable. We'll see how to modify the scriptmodule build step to fix it.
-
Thank you!
-
@Ghostof1980 update your RetroPie-Setup script and then try installing again
lr-hatari
. -
@mitu FWIW: Your change worked. Thx!
-
It works, brilliant job thank you!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.