mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Alejandro Vázquez" <vazlup@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] makefile to directFB and cairo
Date: Wed, 6 May 2015 00:14:08 +0200	[thread overview]
Message-ID: <CAEt18EVSvhe2wgFVNOa68a9cB2tcBV-LccrQ6CM6ii0wAaD9pQ@mail.gmail.com> (raw)
In-Reply-To: <CAEt18EWC7HJuutD4WuDvjLnjrokn-oqPpLAFte7ZVn-QWK9uDQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1102 bytes --]

Hi!
I can solve the problem. i add in the makefile the next code:
examplecairo:examplecairo.c
$(CC) $^ -Wall `pkg-config --cflags --libs cairo directfb` -o $@

this way compile correctly


2015-04-23 11:18 GMT+02:00 Alejandro Vázquez <vazlup@gmail.com>:

> Hi!,
> i am trying the compile of a example for the library directFB and other
> for library cairo. I have isntall the libraries directFB and Cairo.
> The first step: i create a new package type "src-make-prog".
> 2: copy the example "hello world" in the new file "helloworld*.c"
> 3: I modify the Makefile file  and i  add:
> CFLAGS   = -g -Wall -O2 -MD `pkg-config --cflags directfb`
> LDFLAGS  = -g -Wall -O2 `pkg-config --libs directfb`
>
> for cairo is the same but the flags are:
> CFLAGS   = -g -Wall -O2 -MD `pkg-config --cflags cairo`
> LDFLAGS  = -g -Wall -O2 `pkg-config --libs cairo`
>
> In both cases, the compiler say me:
> undefined reference to `DirectFBInit', etc...
> undefined reference to `cairo_image_surface_create',etc...
>
> Am I doing it the right way or I need something more to add?
>
>

[-- Attachment #1.2: Type: text/html, Size: 1718 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2015-05-05 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-23  9:18 Alejandro Vázquez
2015-05-05 22:14 ` Alejandro Vázquez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEt18EVSvhe2wgFVNOa68a9cB2tcBV-LccrQ6CM6ii0wAaD9pQ@mail.gmail.com \
    --to=vazlup@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox