Re: [hatari-users] capsimage5 not properly detected on Ubuntu 14.04 Linux src build |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
- To: hatari-users@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-users] capsimage5 not properly detected on Ubuntu 14.04 Linux src build
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Fri, 4 Dec 2020 20:25:22 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1607109925; bh=SPeW14xp87kvxRgfd8/XvHGEkFrXccX0W46jWDr4hfw=; h=Date:From:To:Subject:From; b=gJQAgqIaqgEAN8GnM6E30nvHzq5WszRm0BUV6SuKNtT7JFqrdJWLbWGZ9gj8gP/8M nd4L271MewN+lMzJ/YQSgQHbz02SxXUdGHxTGrzkyTXJCRRQ+RrAxftRnYypksgyhK aiTLEAvNnq/ZRuD6Kn0wbbaLlPiBTYE76+tb3mE41vk7r+PwKiM2OuEsBPxbvo5qqw 5FMErAmLA3gifokFbDZlAcXOsrXvvYcM1Kktw2PL4Y2mSChxWvD0DerNZX/Xb4+4cR QCuCwIe8pvqZNgX3smHKOVR1eJqdC0jq4SFmuDB6C+S1XN5TAzP4hdBXqbRS9Bp4KS wBit7e6ecVyAw==
Am Thu, 3 Dec 2020 12:57:09 -0800
schrieb Ross Campbell <ross.campbell@xxxxxxxxx>:
> Hi,
>
> I know my Linux distro is old, however, this may be a general
> Linux/cmake issue.
> I've been able to build from git for some time, but it's probably
> been a number of months since I last built hatari from source.
>
> Today, when I did 'git pull' and then './configure && make && sudo
> make install'
>
> hatari built but cmake did not find my capsimage5 install like it is
> supposed to.
>
> After running ./configure
> My CMakeCache.txt file showed:
>
> //Path to a file.
> CAPSIMAGE_INCLUDE_DIR:PATH=CAPSIMAGE_INCLUDE_DIR-NOTFOUND
>
> //Path to a library.
> CAPSIMAGE_LIBRARY:FILEPATH=/usr/local/lib/caps/libcapsimage.so
>
> That's the capsimage4 version of the shared library... so...
> I manually edited this file to:
>
> //Path to a file.
> CAPSIMAGE_INCLUDE_DIR:PATH=/usr/local/include/caps5
>
> //Path to a library.
> CAPSIMAGE_LIBRARY:FILEPATH=/usr/local/lib/caps5/libcapsimage.so
>
> and then 'make' gets as far as:
>
> /home/rcampbel/project/hatari/src/floppy_ipf.c:35:29: fatal error:
> caps/CapsLibAll.h: No such file or directory
> #include <caps/CapsLibAll.h>
>
> compilation terminated.
> make[2]: *** [src/CMakeFiles/hatari.dir/build.make:330:
> src/CMakeFiles/hatari.dir/floppy_ipf.c.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:657: src/CMakeFiles/hatari.dir/all]
> Error 2
> make: *** [Makefile:161: all] Error 2
>
> I tried setting C_INCLUDE_PATH to include /usr/local/include/caps5/
I think you have to rename /usr/local/include/caps5 to
/usr/local/include/caps now (without the trailing 5). IIRC the caps
distribution ships the file in a folder called "caps", so that's
what most users have after installing the caps library.
In the past, Hatari supported both, caps4 and caps5, so we had to
somehow distinguish the different versions and thus looked for the
files in a "caps5" folder. But after support for version 4 has been
removed, we now only support the generic "caps" folder now instead.
HTH,
Thomas