jasinliu commented on PR #628:
URL: 
https://github.com/apache/incubator-graphar/pull/628#issuecomment-2358217424

   > Hi @jasinliu
   > 
   > Seems it works as expected:
   > 
   > The problem comes from your CMakeList.txt: you are linking a static 
library libgraphar.a, which bundled libarrow.a; and `Arrow::arrow_static` again.
   > 
   > How about a revised CMakeList.txt like this:
   > 
   > ```
   > cmake_minimum_required(VERSION 3.15)
   > 
   > project(show)
   > 
   > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall")
   > 
   > set(TARGET show)
   > 
   > find_package(OpenSSL REQUIRED)
   > find_package(graphar REQUIRED)
   > # find_package(Arrow REQUIRED)
   > 
   > add_executable(${TARGET} show.cc)
   > target_link_libraries(${TARGET} PRIVATE graphar)
   > ```
   
   
   Thanks for the reminder.
   
   But I also need arrow header in system to enable `#include <arrow/api.h>`. 
Although I can install arrow separately to use the header file, this may cause 
the header file of arrow(in system) to be inconsistent with the actual 
implementation(libgraphar_bundled_dependencies.a).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to