Re: [hatari-users] Compilation error with Hatari 2.2.0 on Linux |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
Hi,
I'm now getting also errors from this file:
-------------------------------------------
$ cmake
....
-- Could NOT find CAPSIMAGE (missing: CAPSIMAGE_LIBRARY
CAPSIMAGE_INCLUDE_DIR)
....
- capsimage : v5 not found, install it to use .IPF, .RAW and .CTR
disk images
$ make
[ 49%] Building C object src/CMakeFiles/hatari.dir/floppy_ipf.c.o
/home/eero/work/hatari/src/floppy_ipf.c:33:30: fatal error:
caps5/CapsLibAll.h: No such file or directory
#include <caps5/CapsLibAll.h>
^
compilation terminated.
src/CMakeFiles/hatari.dir/build.make:518: recipe for target
'src/CMakeFiles/hatari.dir/floppy_ipf.c.o' failed
make[2]: *** [src/CMakeFiles/hatari.dir/floppy_ipf.c.o] Error 1
$ grep CAPS config.h
#define HAVE_CAPSIMAGE 1
#define CAPSIMAGE_VERSION 5
-------------------------------------------
If I remove config.h, calling cmake adds the CAPSIMAGE defines
back although it says that it didn't find CAPSIMAGE!
Same thing whether I have in ccmake advanced options:
CAPSIMAGE_INCLUDE_DIR CAPSIMAGE_INCLUDE_DIR-NOTFOUND
CAPSIMAGE_LIBRARY CAPSIMAGE_LIBRARY-NOTFOUND
Or those values being empty.
Only way to build Hatari now is manually removing the CAPSIMAGE
defines from config.h before calling make. :-/
- Eero
On 2/1/19 11:21 AM, Nicolas Pomarède wrote:
Le 01/02/2019 à 03:41, tuxic@xxxxxxxxx a écrit :
Hi,
trying to compile Hatari 2.2.0 on Linux gives me this error:
[ 2%] Built target build68k
[ 5%] Built target gencpu
[ 24%] Built target UaeCpu
[ 27%] Built target Floppy
[ 35%] Built target Debug
[ 39%] Built target Falcon
[ 49%] Built target GuiSdl
[ 49%] Building C object src/CMakeFiles/hatari.dir/floppy_ipf.c.o
/home/mccramer/data/pools/pool05/hatari-2.2.0/src/floppy_ipf.c:64:2:
error: unknown type name ‘CapsLong’
CapsLong CapsImage[ MAX_FLOPPYDRIVES ]; /* Image Id or -1 if drive
empty */
^~~~~~~~
...
The system is a GENTOO system.
Currentlu only an older version of Hatari is provided by emerge, the
Gentoo package system.
Hatari 2.1.0 compiles fine on the system.
How can I compile Hatari successfully?
Thank you very much in advance for any help!
Cheers!
Meino
hi
based on these logs, it seems you're trying to build Hatari with
capslib/ipf support (that should be reported at the end when you run
./configure), but some capslib's headers were not found.
did you try to install capslib libraries ? If so, you can try to remove
them and Hatari should compile fine. In a 2nd time, you can then try to
add capslib library (see the docs in Hatari, there's a part about where
capslib files should be located on your system)
Nicolas