Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(c++): link error when link application with static graphar library build arrow source #627

Open
acezen opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@acezen
Copy link
Contributor

acezen commented Sep 12, 2024

Describe the bug, including details regarding any error messages, version, and platform.

build graphar with arrow from source

cmake .. -DBUILD_ARROW_FROM_SOURCE=ON -DGRAPHAR_BUILD_STATIC=ON
make -j && sudo make install

write a show.cc and link graphar

#include "graphar/graph_info.h"
#include "iostream"


int main() {
    std::string path = "/workspaces/incubator-graphar/testing/neo4j/MovieGraph.graph.yml";
    auto graph_info = graphar::GraphInfo::Load(path);
    std::cout << graph_info.value()->Dump().value() << std::endl;
}
cmake_minimum_required(VERSION 3.15)

project(import)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall")

set(TARGET show)

find_package(OpenSSL REQUIRED)
find_package(graphar REQUIRED)

add_executable(${TARGET} show.cc)
target_link_libraries(${TARGET} PRIVATE graphar)

build

cmake . & make

got link error:
/usr/bin/ld: can not find -lgar_arrow_static: No such file or directory

Component(s)

C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant