[Resolved] Re: graphics/vulkan-loader build error

From: Janos Dohanics <web_at_3dresearch.com>
Date: Sun, 12 Nov 2023 04:54:18 UTC
On Sat, 11 Nov 2023 19:19:47 -0500
Janos Dohanics <web@3dresearch.com> wrote:

> Hello,
> 
> This is a FreeBSD 12.4-STABLE r373264 system.
> 
> Trying to build graphics/vulkan-loader:
> 
> # make install clean
> ===>  License APACHE20 accepted by the user
> ===>   vulkan-loader-1.3.269 depends on file: /usr/local/sbin/pkg -
> found => KhronosGroup-Vulkan-Loader-v1.3.269_GH0.tar.gz doesn't seem
> to exist in /usr/ports/distfiles/. [...]
> CMake Error at loader/CMakeLists.txt:21 (target_link_libraries):
>   The link interface of target "loader_specific_options" contains:
> 
>     Vulkan::Headers
> 
>   but the target was not found.  Possible reasons include:
> 
>     * There is a typo in the target name.
>     * A find_package call is missing for an IMPORTED target.
>     * An ALIAS target is missing.[...]
> 
> 
> CMake Generate step failed.  Build files cannot be regenerated
> correctly. *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/ports/graphics/vulkan-loader
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/graphics/vulkan-loader

After upgrading

devel/cmake-core
devel/cmake
graphics/vulkan-headers

graphics/vulkan-loader compiled and installed with no error.

Apologies for the noise and thanks to David Wolfskill for helpful
hints.

-- 
Janos Dohanics