Re: [hatari-users] More build issues - hatari-latest, Ubuntu 14.04, capsimage 5.1, capsimage 4.2

[ Thread Index | Date Index | More Archives ]

Le 23/01/2018 à 05:01, Ross Campbell a écrit :
Thanks to help here, I found my issue with *DETECTING*
on Ubuntu,
- the .h files need to all be in /usr/local/include/caps5
- the file that gets built from source and installed into /usr/local/lib needs to be copied to /usr/local/lib/caps5 - you must symlink in /usr/local/lib/caps5 to and
NOW configure and cmake will detect capsimage 5!

however, when I attempt to build I get errors. I've tried make clean, clean source checkout, I've different compilers.. still no luck.

No luck with capsimage 5.1 or capsimage 4.2... am I missing something?



I think there's a problem in the way you installed caps include on your system :

-- Found CAPSIMAGE: /usr/local/lib/caps5/

here, caps5 is found in /usr/local/lib

[ 65%] Building C object src/CMakeFiles/hatari.dir/floppy_ipf.c.o
In file included from /home/rcampbel/project/hatari/caps5/CapsLibAll.h:7:0,
                  from /home/rcampbel/project/hatari/src/floppy_ipf.c:33:
/home/rcampbel/project/hatari/caps5/CapsFDC.h:134:23: error: expected ‘)’ before ‘*’ token
  typedef void (__cdecl *CAPSFDCHOOK)(PCAPSFDC pfdc, UDWORD state);
/home/rcampbel/project/hatari/caps5/CapsFDC.h:198:2: error: unknown type name ‘CAPSFDCHOOK’
   CAPSFDCHOOK cbirq;   // irq line change callback

but here, the include files come from the local dir /home/rcampbel/project/hatari/caps5/ instead of /usr/local/include/caps5

As Hatari looks for include in src/ dir first, maybe you should remove caps5 from hatari/ dir to force using the files in /usr/local/include


Mail converted by MHonArc 2.6.19+