darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.52k stars 444 forks source link

cmake error #1465

Open LongMeters opened 10 months ago

LongMeters commented 10 months ago

Build Log What is the build error?

/darling/build# cmake ..
Including component: cli_dev
Including component: cli
Including component: python
Including component: ruby
Including component: perl
Including component: dev_gui_common
Including component: dev_gui_frameworks_common
Including component: dev_gui_stubs_common
Including component: system
Including component: core
Python 2 not available; bytecode compilation is disabled
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) 
Did not find required libraries (Vulkan and LLVM); building without Metal support
CMake Warning at cmake/dsym.cmake:48 (message):
  Cannot find llvm-dsymutil, will not produce debug information
Call Stack (most recent call first):
  CMakeLists.txt:174 (FindDsymutil)

-- Compiler include path detected as /usr/lib/llvm-15/lib/clang/15.0.7/include/
-- Configuring done
CMake Error at cmake/use_ld64.cmake:183 (add_dependencies):
  The dependency target "PDFKit" of target "Quartz" does not exist.
Call Stack (most recent call first):
  src/frameworks/Quartz/CMakeLists.txt:63 (reexport)

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

System Information ubuntu 22.04

CuriousTommy commented 10 months ago

@LongMeters How did you clone the Darling project? Did you recursively clone the submodules?

LongMeters commented 10 months ago

i used this command git clone --recursive https://github.com/darlinghq/darling.git

CuriousTommy commented 10 months ago

Looks like PDFKit lives in src/frameworks/PDFKit. Does this folder exist on your machine? Are there any files in the folder?

What does git status return?

Andrew-J-Larson commented 3 months ago

I was also getting these errors via Fedora through WSL2 on Windows 11.

Solved it by installing llvm-devel, glslang, and python2 from DNF, and then installed VulkanSDK from https://vulkan.lunarg.com/sdk/home#linux where I used the SDK Installer download, extracted to the directory I wanted it to stay on my system, and used the setup-env.sh to set the environment variables to find the Vulkan libraries.

EDIT: Just noticed you were getting some other error after those, unsure if this resolves your The dependency target "PDFKit" of target "Quartz" does not exist. error.