Skip to content

[C++] Test, fix, and document debug builds with vcpkg packages #27647

Closed as not planned

Description

@asfimport

ARROW-11580 makes it straightforward to use vcpkg for dependencies. This has been well-tested with release builds, but there are some loose ends with debug builds. vcpkg installs debug libraries for the dependencies, but there are some problems linking them when -DCMAKE_BUILD_TYPE=DEBUG. I was able to get a debug build to succeed on Windows with VS 2019 by turning some features off

    -DARROW_FLIGHT=OFF ^
    -DARROW_GANDIVA=OFF ^
    -DARROW_WITH_THRIFT=OFF ^
    -DARROW_PARQUET=OFF ^ 

but there were linking errors when I turned any of those on. I think some of these errors can be resolved by setting additional \*\_MSVC\_\* prefix/suffix variables or by working around limitations of which dependencies vcpkg can and cannot install as dynamic link libraries.

I tested this after installing dynamic link libraries with vcpkg and with -DARROW_DEPENDENCY_USE_SHARED=ON. We should also test debug builds with static dependencies and on Linux and Mac.

Reporter: Ian Cook / @ianmcook

Related issues:

Note: This issue was originally created as ARROW-11796. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Feb 26, 2021

    @asfimport
    Author

    Ian Cook / @ianmcook:
    I was able to turn on ARROW_PARQUET and get it to build by setting

    -DThrift_SOURCE=BUNDLED ^
    -DBOOST_SOURCE=BUNDLED ^
  2. asfimport commented on May 22, 2021

    @asfimport
    Author

    Ian Cook / @ianmcook:
    See the related conversation at microsoft/vcpkg#17975

  3. asfimport commented on Apr 21, 2022

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    cc @kou. This may be the same as ARROW-15415; at least it's closely related :-)

  4. asfimport commented on Aug 26, 2022

    @asfimport
    Author

    Todd Farmer / @toddfarmer:
    This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned per project policy. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.

  5. added
    Status: stale-warning
    and removed on Sep 23, 2026
  6. thisisnic commented on Sep 23, 2026

    @thisisnic
    Member

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  7. removed
    Status: stale-warning
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions