Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with vcpkg dependencies #11

Closed
zcream opened this issue Nov 1, 2020 · 3 comments
Closed

Build fails with vcpkg dependencies #11

zcream opened this issue Nov 1, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@zcream
Copy link

zcream commented Nov 1, 2020

I have cairo installed via vcpkg.

cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:\Users\Administrator\vcpkg\scripts\buildsystems\vcpkg.cmake"

Build still does not detect cairo.
CMakeOutput.log

-- Found PkgConfig: C:/MinGW/bin/pkg-config.exe (found version "0.23")
-- Checking for module 'cairo'
-- No package 'cairo' found
CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPkgConfig.cma
ke:545 (message):
A required package was not found
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.18/Modules/FindPkgConfig.cmake:733 (pkg
check_modules_internal)
CMakeLists.txt:22 (pkg_check_modules)

@sammycage sammycage added the help wanted Extra attention is needed label Nov 2, 2020
@zcream
Copy link
Author

zcream commented Nov 4, 2020

@sammycage I think the problem is the cairo_DIR variable. What do you want it to be ? Are you using cairo as a shared lib or static linked?

@sammycage
Copy link
Owner

Take a look at the script.

if(LUNASVG_ENABLE_CAIRO)
    find_package(PkgConfig REQUIRED)
    pkg_check_modules(CAIRO REQUIRED cairo)
    target_include_directories(lunasvg PRIVATE ${CAIRO_INCLUDE_DIRS})
    target_link_libraries(lunasvg ${CAIRO_LIBRARIES})
    add_subdirectory(source/backends/cairo)

@sammycage
Copy link
Owner

Removed : c06651e

Please consider using the current rasterizer. It is small, simple and fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants