Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11796

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

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: C++
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                icook Ian Cook
                Reporter:
                icook Ian Cook
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: