Skip to content

[arrow] CMake Linker Usage? #18538

@xanderdunn

Description

@xanderdunn

@ianmcook Thanks a lot for upgrading arrow to 4.0.0 in #17975.

I'm installing arrow 4.0.0 with vcpkg install arrow[dataset,s3,parquet].

vcpkg prints this usage text after installation:

The package arrow:x64-linux provides CMake targets:

    find_package(arrow CONFIG REQUIRED)
    # Note: 9 target(s) were omitted.
    target_link_libraries(main PRIVATE LZ4::lz4 re2::re2 arrow_static zstd::libzstd)

When I add find_package(Arrow CONFIG REQUIRED) to my CMakeLists.txt, the linker doesn't find the library at all:

target_link_libraries(main PRIVATE arrow_static)

Linker error:

/usr/bin/ld: cannot find -larrow_static

I see the libs are at:

$ l vcpkg/installed/x64-linux/lib/ | grep arrow
-rw-r--r-- 1 xander xander   32M Jun 18 07:24 libarrow.a
-rw-r--r-- 1 xander xander  3.2M Jun 18 07:24 libarrow_dataset.a

What is the expected usage of linking against arrow using vcpkg? The given arrow_static isn't working for me.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions