You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Saatvik (JIRA)" <ji...@apache.org> on 2017/06/13 15:29:00 UTC

[jira] [Comment Edited] (PARQUET-1029) Attempting to import Parquet-Cpp to use in my own project

    [ https://issues.apache.org/jira/browse/PARQUET-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048025#comment-16048025 ] 

Saatvik edited comment on PARQUET-1029 at 6/13/17 3:28 PM:
-----------------------------------------------------------

Hi Wes,
I cloned parquet-cpp from [github](https://github.com/apache/parquet-cpp) and built it yesterday(so I guess my shared library should not be out of sync?). 
I tried to run the reader-writer.cc from outside the project. To do so, I built a directory structure like:

-sampleproject
--test.cpp(contains reader-writer.cc source)
--libarrow.so(copied from parquet-cpp/build/latest)
--libparquet.cpp(copied from parquet-cpp/arrow_ep/src/arrow_ep-install/lib)

I then ran the command: 
g++ -std=c++11 -Wall test.cpp -I/$HOME/parquet-cpp/src/ -I/$HOME/parquet-cpp/arrow_ep/src/arrow_ep-install/include/  -L. -lparquet -larrow



was (Author: tangy):
Hi Wes,
I cloned parquet-cpp from [github](https://github.com/apache/parquet-cpp) and built it yesterday(so I guess my shared library should not be out of sync?). 
I tried to run the reader-writer.cc from outside the project. To do so, I built a directory structure like:

-sampleproject
--test.cpp
--libarrow.so(copied from parquet-cpp/build/latest)
--libparquet.cpp(copied from parquet-cpp/arrow_ep/src/arrow_ep-install/lib)

I then ran the command: 
g++ -std=c++11 -Wall test.cpp -I/$HOME/parquet-cpp/src/ -I/$HOME/parquet-cpp/arrow_ep/src/arrow_ep-install/include/  -L. -lparquet -larrow


> Attempting to import Parquet-Cpp to use in my own project
> ---------------------------------------------------------
>
>                 Key: PARQUET-1029
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1029
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>         Environment: 64 Bit Ununtu 14.04
>            Reporter: Saatvik
>            Priority: Minor
>              Labels: documentation, newbie, starter
>
> Relatively new to C++.
> I'm attempting to import Parquet-Cpp into my own C++ source code outside of a project. I've added this questiond here as well: https://stackoverflow.com/questions/44509984/importing-from-a-large-c-library, https://stackoverflow.com/questions/44507840/linking-a-shared-library-from-a-large-github-project?noredirect=1. Basically when I'm trying to link my source code to libparquet.so libraries and header files, the compiler is successful but the linker fails with undefined reference errors.
> I've written about the issue in a lot of detail in the questions above. If required I can explain it again here?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)