From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yh0-x22b.google.com ([2607:f8b0:4002:c01::22b]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1YlDHE-0006OS-Gf for ptxdist@pengutronix.de; Thu, 23 Apr 2015 11:18:32 +0200 Received: by yhcb70 with SMTP id b70so1715462yhc.0 for ; Thu, 23 Apr 2015 02:18:25 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 23 Apr 2015 11:18:25 +0200 Message-ID: From: =?UTF-8?Q?Alejandro_V=C3=A1zquez?= Content-Type: multipart/mixed; boundary=001a11c2c0fc0c70e8051460c36b Subject: [ptxdist] makefile to directFB and cairo List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --001a11c2c0fc0c70e8051460c36b Content-Type: multipart/alternative; boundary=001a11c2c0fc0c70e3051460c369 --001a11c2c0fc0c70e3051460c369 Content-Type: text/plain; charset=UTF-8 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? --001a11c2c0fc0c70e3051460c369 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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&= quot; in the new file "helloworld*.c"
3: I modify the M= akefile file =C2=A0and i =C2=A0add:
CFLAGS =C2=A0 =3D -g -Wall -O= 2 -MD `pkg-config --cflags directfb`
LDFLAGS =C2=A0=3D -g -Wall -= O2 `pkg-config --libs directfb`

for cairo is the s= ame but the flags are:
CFLAGS =C2=A0 =3D -g -Wall -O2 -MD `pkg-co= nfig --cflags cairo`
LDFLAGS =C2=A0=3D -g -Wall -O2 `pkg-config -= -libs cairo`

In both cases, the compiler say me:= =C2=A0
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?=

--001a11c2c0fc0c70e3051460c369-- --001a11c2c0fc0c70e8051460c36b Content-Type: text/x-csrc; charset=US-ASCII; name="helloworlddf.c" Content-Disposition: attachment; filename="helloworlddf.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i8tyh72o0 I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KI2luY2x1ZGUgPGRpcmVjdGZi Lmg+CgpzdGF0aWMgSURpcmVjdEZCICpkZmIgPSBOVUxMOwpzdGF0aWMgSURpcmVjdEZCU3VyZmFj ZSAqcHJpbWFyeSA9IE5VTEw7CnN0YXRpYyBpbnQgc2NyZWVuX3dpZHRoICA9IDA7CnN0YXRpYyBp bnQgc2NyZWVuX2hlaWdodCA9IDA7CgojZGVmaW5lIERGQkNIRUNLKHguLi4pICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcCiAgeyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKICAgIERGQlJlc3VsdCBlcnIg PSB4OyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXAogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcCiAg ICBpZiAoZXJyICE9IERGQl9PSykgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIFwKICAgICAgeyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgXAogICAgICAgIGZwcmludGYoIHN0ZGVyciwgIiVzIDwlZD46XG5cdCIsIF9f RklMRV9fLCBfX0xJTkVfXyApOyBcCiAgICAgICAgRGlyZWN0RkJFcnJvckZhdGFsKCAjeCwgZXJy ICk7ICAgICAgICAgICAgICAgICAgICAgICAgIFwKICAgICAgfSAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXAogIH0KCmludCBtYWluIChpbnQg YXJnYywgY2hhciAqKmFyZ3YpCnsKICBERkJTdXJmYWNlRGVzY3JpcHRpb24gZHNjOwoKICBERkJD SEVDSyAoRGlyZWN0RkJJbml0ICgmYXJnYywgJmFyZ3YpKTsKICBERkJDSEVDSyAoRGlyZWN0RkJD cmVhdGUgKCZkZmIpKTsKICBERkJDSEVDSyAoZGZiLT5TZXRDb29wZXJhdGl2ZUxldmVsIChkZmIs IERGU0NMX0ZVTExTQ1JFRU4pKTsgIAoKICBkc2MuZmxhZ3MgPSBEU0RFU0NfQ0FQUzsKICBkc2Mu Y2FwcyAgPSBEU0NBUFNfUFJJTUFSWSB8IERTQ0FQU19GTElQUElORzsKCiAgREZCQ0hFQ0sgKGRm Yi0+Q3JlYXRlU3VyZmFjZSggZGZiLCAmZHNjLCAmcHJpbWFyeSApKTsKICBERkJDSEVDSyAocHJp bWFyeS0+R2V0U2l6ZSAocHJpbWFyeSwgJnNjcmVlbl93aWR0aCwgJnNjcmVlbl9oZWlnaHQpKTsK ICBERkJDSEVDSyAocHJpbWFyeS0+RmlsbFJlY3RhbmdsZSAocHJpbWFyeSwgMCwgMCwgc2NyZWVu X3dpZHRoLCBzY3JlZW5faGVpZ2h0KSk7CgogIERGQkNIRUNLIChwcmltYXJ5LT5TZXRDb2xvciAo cHJpbWFyeSwgMHg4MCwgMHg4MCwgMHhmZiwgMHhmZikpOwogIERGQkNIRUNLIChwcmltYXJ5LT5E cmF3TGluZSAocHJpbWFyeSwKCQkJICAgICAgICAgICAgICAgICAgICAgIDAsIHNjcmVlbl9oZWln aHQgLyAyLAoJCQkgICAgICAgc2NyZWVuX3dpZHRoIC0gMSwgc2NyZWVuX2hlaWdodCAvIDIpKTsK ICBERkJDSEVDSyAocHJpbWFyeS0+RmxpcCAocHJpbWFyeSwgTlVMTCwgMCkpOwoKICBzbGVlcCAo NSk7CgogIHByaW1hcnktPlJlbGVhc2UoIHByaW1hcnkgKTsKICBkZmItPlJlbGVhc2UoIGRmYiAp OwoKICByZXR1cm4gMjM7Cn0K --001a11c2c0fc0c70e8051460c36b Content-Type: application/octet-stream; name=Makefile Content-Disposition: attachment; filename=Makefile Content-Transfer-Encoding: base64 X-Attachment-Id: f_i8tyi3oi1 IwojIFNpbXBsZSBkZXZlbG9wbWVudCBtYWtlZmlsZQojCgojCiMgYWRkIG1vcmUgZmxhZ3MgaGVy ZSwKIyBidXQgZG9uJ3QgcmVtb3ZlIHRoZSAiKz0iCiMKQ0ZMQUdTICs9IC1PMiAtZyAtV2FsbCAt TUQgYHBrZy1jb25maWcgLS1jZmxhZ3MgZGlyZWN0ZmJgIy1Xc2lnbi1jb21wYXJlIC1XZmxvYXQt ZXF1YWwgLVdmb3JtYXQtc2VjdXJpdHkgIy1XZXJyb3IKQ1BQRkxBR1MgKz0KTERGTEFHUyArPSAt ZyAtV2FsbCAtTzIgYHBrZy1jb25maWcgLS1saWJzIGRpcmVjdGZiYAoKCmFsbDogaGVsbG93b3Js ZGRmCgpjbGVhbjoKCS1ybSAtZiBoZWxsb3dvcmxkZGYKCmluc3RhbGw6CgoKLlBIT05ZOiBhbGwg aW5zdGFsbCBjbGVhbgoKIyBlbmQgb2YgZGV2ZWxvcG1lbnQgbWFrZWZpbGUK --001a11c2c0fc0c70e8051460c36b Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --001a11c2c0fc0c70e8051460c36b--