You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Chengxin Ma (Jira)" <ji...@apache.org> on 2019/12/18 12:07:00 UTC
[jira] [Created] (ARROW-7434) [GLib] Homebrew packages seem not
working
Chengxin Ma created ARROW-7434:
----------------------------------
Summary: [GLib] Homebrew packages seem not working
Key: ARROW-7434
URL: https://issues.apache.org/jira/browse/ARROW-7434
Project: Apache Arrow
Issue Type: Bug
Components: GLib
Affects Versions: 0.15.1
Environment: macOS 10.15.2
Reporter: Chengxin Ma
After installing {{apache-arrow}} and {{apache-arrow-glib}} via {{Homebrew}} according to the [Installation Guide|https://arrow.apache.org/install/], I wrote a very simple program to test if they were successfully installed.
{code}
$ cat hello_world.c
#include <stdio.h>
#include <arrow-glib/arrow-glib.h>
int main(int argc, char **argv) {
printf("Hello, World! \n");
}
{code}
{{gcc}} gave the following error:
{code}
$ gcc -o hello_world hello_world.c
In file included from hello_world.c:3:
In file included from /usr/local/include/arrow-glib/arrow-glib.h:22:
/usr/local/include/arrow-glib/gobject-type.h:22:10: fatal error: 'glib-object.h' file not found
#include <glib-object.h>
^~~~~~~~~~~~~~~
1 error generated.
{code}
Is there any step that I didn’t follow here?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
Re: [jira] [Created] (ARROW-7434) [GLib] Homebrew packages seem not working
Posted by Chengxin Ma <cx...@protonmail.ch.INVALID>.
It works. Thanks!
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, December 18, 2019 2:52 PM, Jeroen Ooms <je...@gmail.com> wrote:
> Try this:
>
> gcc -o hello_world hello_world.c $(pkg-config --libs --cflags arrow-glib)
>
> On Wed, Dec 18, 2019 at 1:07 PM Chengxin Ma (Jira) jira@apache.org wrote:
>
> > Chengxin Ma created ARROW-7434:
> >
> > --------------------------------
> >
> > Summary: [GLib] Homebrew packages seem not working
> > Key: ARROW-7434
> > URL: https://issues.apache.org/jira/browse/ARROW-7434
> > Project: Apache Arrow
> > Issue Type: Bug
> > Components: GLib
> > Affects Versions: 0.15.1
> > Environment: macOS 10.15.2
> > Reporter: Chengxin Ma
> >
> >
> > After installing {{apache-arrow}} and {{apache-arrow-glib}} via {{Homebrew}} according to the [Installation Guide|https://arrow.apache.org/install/], I wrote a very simple program to test if they were successfully installed.
> > {code}
> > $ cat hello_world.c
> > #include <stdio.h>
> > #include <arrow-glib/arrow-glib.h>
> > int main(int argc, char **argv) {
> > printf("Hello, World! \n");
> > }
> > {code}
> > {{gcc}} gave the following error:
> > {code}
> > $ gcc -o hello_world hello_world.c
> > In file included from hello_world.c:3:
> > In file included from /usr/local/include/arrow-glib/arrow-glib.h:22:
> > /usr/local/include/arrow-glib/gobject-type.h:22:10: fatal error: 'glib-object.h' file not found
> > #include <glib-object.h>
> > ^~~~~~~~~~~~~~~
> > 1 error generated.
> > {code}
> > Is there any step that I didn’t follow here?
> > --
> > This message was sent by Atlassian Jira
> > (v8.3.4#803005)
Re: [jira] [Created] (ARROW-7434) [GLib] Homebrew packages seem not working
Posted by Jeroen Ooms <je...@gmail.com>.
Try this:
gcc -o hello_world hello_world.c $(pkg-config --libs --cflags arrow-glib)
On Wed, Dec 18, 2019 at 1:07 PM Chengxin Ma (Jira) <ji...@apache.org> wrote:
>
> Chengxin Ma created ARROW-7434:
> ----------------------------------
>
> Summary: [GLib] Homebrew packages seem not working
> Key: ARROW-7434
> URL: https://issues.apache.org/jira/browse/ARROW-7434
> Project: Apache Arrow
> Issue Type: Bug
> Components: GLib
> Affects Versions: 0.15.1
> Environment: macOS 10.15.2
> Reporter: Chengxin Ma
>
>
> After installing {{apache-arrow}} and {{apache-arrow-glib}} via {{Homebrew}} according to the [Installation Guide|https://arrow.apache.org/install/], I wrote a very simple program to test if they were successfully installed.
>
> {code}
> $ cat hello_world.c
> #include <stdio.h>
>
> #include <arrow-glib/arrow-glib.h>
>
> int main(int argc, char **argv) {
> printf("Hello, World! \n");
> }
> {code}
>
> {{gcc}} gave the following error:
>
> {code}
> $ gcc -o hello_world hello_world.c
> In file included from hello_world.c:3:
> In file included from /usr/local/include/arrow-glib/arrow-glib.h:22:
> /usr/local/include/arrow-glib/gobject-type.h:22:10: fatal error: 'glib-object.h' file not found
> #include <glib-object.h>
> ^~~~~~~~~~~~~~~
> 1 error generated.
> {code}
>
> Is there any step that I didn’t follow here?
>
>
>
>
> --
> This message was sent by Atlassian Jira
> (v8.3.4#803005)