From user-return-585-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Thu Jul 30 11:09:30 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 276C2180660 for ; Thu, 30 Jul 2020 13:09:30 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 3C84612462A for ; Thu, 30 Jul 2020 11:09:29 +0000 (UTC) Received: (qmail 99614 invoked by uid 500); 30 Jul 2020 11:09:28 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 99604 invoked by uid 99); 30 Jul 2020 11:09:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2020 11:09:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 03E22181471 for ; Thu, 30 Jul 2020 11:09:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.199 X-Spam-Level: X-Spam-Status: No, score=-0.199 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, JMQ_SPF_NEUTRAL=0.5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=xhochy.com header.b=Iw9q69iI; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=jcW+nRiK Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DN6tWyvYed3P for ; Thu, 30 Jul 2020 11:09:26 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=66.111.4.29; helo=out5-smtp.messagingengine.com; envelope-from=uwelk@xhochy.com; receiver= Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id D6BF37D3FA for ; Thu, 30 Jul 2020 11:09:25 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AE1ED5C00A1 for ; Thu, 30 Jul 2020 07:09:18 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute3.internal (MEProxy); Thu, 30 Jul 2020 07:09:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xhochy.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm3; bh=k7ixfrHCfH3dLc2TCbmIwz0Bo7siPnz 96WkbPXDtvYM=; b=Iw9q69iIQwDE2WCqGKtY+LYsoBFiPHklLNIZQ8ONcN5BZUV 1HQSlh5oiMXhh0XB1fi+NcMYAfImFp9gIhFwAnIekxrEbdF0z7NVx9umIDFtF5f3 C/RVuQF7UNfLT+zqGvixBcBddYdiyZwIzRLnQ9YmeZn7LC7P0C2RyLSBnimLo/0z XrLh7QR08WZ+cgH8FynNdqfS1TKAP5wUJ6Kc0vASXWCOOiTveYbbqV7GOULWJvHN WoNTvN6d7m+Lz+tZefvnYcIQ5S/vtnFnFtMezoEzXKw6JhMy3KaBm4Hyr4U8jW3O aR/AFOML8v4KlSEZrWCLgS3/HyS1HZYbzR5Freg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=k7ixfr HCfH3dLc2TCbmIwz0Bo7siPnz96WkbPXDtvYM=; b=jcW+nRiK+rgbqQ/fnsdXG4 hTjs80touG7owbMWkxjSDkRlbQwRfY2o6z0+quh7f1bbcj0J2IMG/OzDmOVAmHDy x25FQGdo9AfDAsNhBRelLrwkjMk66R+MHdYKL5BRSItCFJBuVbTHv65YIS7YTi9F ZmE16xAz4APc/5G59STFnf28RNjrfZC5VIrsHL37k3EeNIB2Kd/P7ipwQmSi3k3l wkNvEm0hor1olYli6JlGJ6ZCwCONoj04N7nwsHPQDmVNwIboXEWb1OfDDko+nmXB 7fHlUWc29qydg+XhZpvlzao7lcE7H6I4bZR9c9GpHI0HYxQoyE3InZmtA/+uGveg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrieeigdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreertdenucfhrhhomhepfdgffigvucfnrdcumfhorhhnfdcuoehufigvlhhkseighhho tghhhidrtghomheqnecuggftrfgrthhtvghrnhepleejueeiffffleeiuedufeegkedvhe etkeegudetkeefveffhfffleekgefgudegnecuffhomhgrihhnpegrphgrtghhvgdrohhr ghdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepuhifvghlkhesgihhohgthhihrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 59EF9188007B; Thu, 30 Jul 2020 07:09:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-128-gd51a832-fm-20200728.001-gd51a8328 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Thu, 30 Jul 2020 13:08:57 +0200 From: "Uwe L. Korn" To: user@arrow.apache.org Subject: Re: Parquet with CMake and conda Content-Type: multipart/alternative; boundary=c558be02ed9a4eef8013861c33f61efd --c558be02ed9a4eef8013861c33f61efd Content-Type: text/plain Hello, you should add find_package(Parquet REQUIRED) target_link_libraries(parquet_test PRIVATE parquet_shared) to your CMake setup. This will also then link the Parquet libraries in addition to the Arrow libraries. You need to use the FindParquet.cmake that is included in the Arrow sources. Cheers Uwe On Thu, Jul 30, 2020, at 11:12 AM, Sebastian F wrote: > Hi everyone, > > I am having some trouble using the C++ parquet Libraries, even to get the minimal examples working. Basically I am installing the arrow-cpp and cmake into a conda environment calling "conda install -c conda-forge arrow-cpp cmake". Using the minimal CMake example taken from the docs (https://arrow.apache.org/docs/cpp/cmake.html) I get as far as creating arrow tables. However if I try to compile this https://github.com/apache/arrow/blob/master/cpp/examples/parquet/parquet-arrow/reader-writer.cc, I get "undefined reference to `parquet::arrow::OpenFile" for basically everything that involves Parquet. Do I have to install or link more stuff to use Parquet? Searching the documentation did not get me very far, I could not find a working example for my configuration. > This is my CMakeLists: > > cmake_minimum_required(VERSION 3.18) > project(parquet_test) > > find_package(Arrow REQUIRED) > > message(STATUS "Arrow version: ${ARROW_VERSION}") > message(STATUS "Arrow SO version: ${ARROW_FULL_SO_VERSION}") > > add_executable(parquet_test main.cpp) > > target_link_libraries(parquet_test PRIVATE arrow_shared) > > > Trying find_package from here: https://github.com/apache/arrow/blob/master/cpp/examples/parquet/parquet-arrow/CMakeLists.txt just threw an Error and said it could not find anything. I hope this is not a stupid question, I am in no way a C++ pro. > > Thanks very much! --c558be02ed9a4eef8013861c33f61efd Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hello,

you should add 


<= tbody style=3D"box-sizing:border-box;">
find_package(Parquet= REQUIRED)
target_link_libraries(parquet_test PRIVATE parquet_sha= red)

to= your CMake setup. This will also then link the Parquet libraries in add= ition to the Arrow libraries. You need to use the FindParquet.cmake that= is included in the Arrow sources.

Cheers
Uwe


On Thu, Jul= 30, 2020, at 11:12 AM, Sebastian F wrote:
Hi everyone,
<= div>
I am having some trouble using the C++ parquet Librar= ies, even to get the minimal examples working. Basically I am installing= the arrow-cpp and cmake into a conda environment calling "conda install= -c conda-forge arrow-cpp cmake". Using the minimal CMake example taken = from the docs (https://arrow.apache.org/docs/cpp/cmake.html) I ge= t as far as creating arrow tables. However if I try to compile this = ;https://github.co= m/apache/arrow/blob/master/cpp/examples/parquet/parquet-arrow/reader-wri= ter.cc, I get "undefined reference to `parquet::arrow::OpenFile" for= basically everything that involves Parquet. Do I have to install or lin= k more stuff to use Parquet? Searching the documentation did not get me = very far, I could not find a working example for my configuration.
This is my CMakeLists:

project(parquet_test)

find= _package(Arrow REQUIRED)
<= br>
message(S= TATUS "Arrow version: ${ARROW_= VERSION}")
message(STATUS "Arrow SO version: $= {ARROW_FULL_SO_VERSION}")
=
add_executable<= /span>(parquet_test main.cpp)
target_link_librar= ies(parquet_test PRIVATE arrow_shared)


Trying find_package from here: https://github.com/apache/arrow/blob/master/cpp/exampl= es/parquet/parquet-arrow/CMakeLists.txt just threw an Error and said= it could not find anything. I hope this is not a stupid question, I am = in no way a C++ pro.

Thanks very much!

--c558be02ed9a4eef8013861c33f61efd--