[
https://issues.apache.org/jira/browse/ARROW-14188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amir Ghamarian updated ARROW-14188:
-----------------------------------
Description:
I used vcpkg to install arrow versions 4 and 5, trying to build my code that
uses parquet fails by giving link errors of undefined reference.
The same code works on OSX but fails on ubuntu.
My cmake snippet is as follows:
```
find_package(Arrow CONFIG REQUIRED)
get_filename_component(MY_SEARCH_DIR ${Arrow_CONFIG} DIRECTORY)
find_package(Parquet CONFIG REQUIRED PATHS ${MY_SEARCH_DIR})
find_package(Thrift CONFIG REQUIRED)
```
and the linking:
```
target_link_libraries(vision_obj
PUBLIC
....
thrift::thrift
re2::re2 arrow_static parquet_static
)```
I get a lot of errors
was:
I used vcpkg to install arrow versions 4 and 5, trying to build my code that
uses parquet fails by giving link errors of undefined reference.
The same code works on OSX but fails on ubuntu.
My cmake snippet is as follows:
```
find_package(Arrow CONFIG REQUIRED)
get_filename_component(MY_SEARCH_DIR ${Arrow_CONFIG} DIRECTORY)
find_package(Parquet CONFIG REQUIRED PATHS ${MY_SEARCH_DIR})
find_package(Thrift CONFIG REQUIRED)
```
and the linking:
```
target_link_libraries(vision_obj
PUBLIC
....
thrift::thrift
re2::re2 arrow_static parquet_static
)```
> link error on ubuntu
> --------------------
>
> Key: ARROW-14188
> URL: https://issues.apache.org/jira/browse/ARROW-14188
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 4.0.0, 5.0.0
> Environment: Ubuntu 18.04, gcc-9, and vcpkg installation of arrow
> Reporter: Amir Ghamarian
> Priority: Major
> Attachments: linkerror.txt
>
>
> I used vcpkg to install arrow versions 4 and 5, trying to build my code that
> uses parquet fails by giving link errors of undefined reference.
> The same code works on OSX but fails on ubuntu.
> My cmake snippet is as follows:
>
> ```
> find_package(Arrow CONFIG REQUIRED)
> get_filename_component(MY_SEARCH_DIR ${Arrow_CONFIG} DIRECTORY)
> find_package(Parquet CONFIG REQUIRED PATHS ${MY_SEARCH_DIR})
> find_package(Thrift CONFIG REQUIRED)
> ```
> and the linking:
> ```
> target_link_libraries(vision_obj
> PUBLIC
> ....
> thrift::thrift
> re2::re2 arrow_static parquet_static
> )```
> I get a lot of errors
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)