Re: [hatari-users] Compilation error with Hatari 2.2.0 on Linux

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-users Archives ]


Hi,

With my old Mercurial checkout, I was getting this error even
after Thomas' recent CMake commit to fix it.

I don't get it anymore with fresh git checkout though, so it
might have been some stale CMake cache item.

It's a bit weird how it's able to break although CMake says that
it didn't actually find CAPSIMAGE, or when one manually changes
the config with ccmake TUI.


	- Eero

On 2/9/19 9:46 AM, Nicolas Pomarède wrote:
Le 09/02/2019 à 00:29, Eero Tamminen a écrit :
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. :-/



Hi

that's strange, nothing has changed in the capsimage cmake since several releases. Could it be an older cache that was not removed ? Or a change in cmake itself ?

Did you try with a clean install (for example the latest sources from http://download.tuxfamily.org/hatari/2.2.0) ?








Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/