**** BEGIN LOGGING AT Wed Jan 15 02:59:59 2014 Jan 15 04:54:53 Using autotools to compile my custom software, what is the best way to include library directory in Makefile.am ? ( I plan to use something like : soft_LDFLAGS = -lfcgi -lpq -lpqxx -L/usr/local/pgsql/lib -L/usr/lib -L/usr/local/lib ) Will I have to bypass the LDFLAGS from the Makefile in the recipe ? Jan 15 05:31:23 weebet: not sure what you're asking Jan 15 05:32:16 your default LDFLAGS in Makefile.am and only override in the recipe if necessary Jan 15 05:32:26 *put Jan 15 05:34:09 i would do the makefile.am as if for a "normal" native build Jan 15 11:11:20 morning all Jan 15 11:11:31 hi there Jan 15 11:12:07 initrdscripts - I'm using initramfs-live-boot_1.0.bb Jan 15 11:12:37 it says DEPENDS = "virtual/kernel" Jan 15 11:12:39 RDEPENDS_${PN} = "udev udev-extraconf" Jan 15 11:12:45 only Jan 15 11:12:55 and somehow busybox finds its way into the image as well Jan 15 11:13:06 who pulls in busybox into that initramfs? Jan 15 11:14:16 initramfs-framework? Jan 15 11:14:43 well, initramfs-framework RDEPENDS on busybox, so that would be my guess Jan 15 12:46:32 nerdboy to link against the library, I have to override ldflags in the recipe to point where ? In staging area ? -L${STAGING_DIR}/usr/local/pgsql/lib Jan 15 14:15:47 Is fbsplash available in Yocto? Can't find it.. Or some other lightweight program to display .ppm image on FB. Jan 15 14:21:34 kbart: psplash should do that Jan 15 14:29:39 bluelightning, thanks, I'll check it out. Jan 15 14:47:56 when using autotools, how to override the cflags, ldflags and ldadd ? Jan 15 14:49:03 weebet: you mean override from within the recipe? Jan 15 14:49:40 ndec: yes, within the recipe. My software needs to load 4-5 libraries from other package Jan 15 14:50:16 just do CFLAGS += then, in the recipe outside of any function. Jan 15 14:50:54 you can do that for any variable that is set by bitbake in the run script. Jan 15 14:50:58 I bet same for LDFLAGS and LDADD ? and I have to point to the staging dir area ? Jan 15 14:51:02 that said, the default search paths will include the sysroot where the other recipe will have put its libs, unless it put them in non-standard locations Jan 15 14:51:25 LDFLAGS, yet, since i am using it. LDADD i don't know. Jan 15 14:51:38 thank you kergoth and ndec Jan 15 14:51:47 np. Jan 15 15:02:31 what is the difference between 'bitbake image -c populate_sdk' and using ADT? Is ADT some generic toolchain? Jan 15 15:06:39 adt == sysroot + eclipse plugin + qemu, as the documentation states at http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html#adt-intro-section Jan 15 15:08:16 I assume ADT can use toolchains made with populate_sdk? Jan 15 15:09:57 that's a good question :) Jan 15 15:10:46 adt includes the toolchain, and i am assuming that's the same toolchain that can be built with populate_sdk. Jan 15 15:10:49 no? Jan 15 15:13:44 * kergoth shrugs, never used it personally, one would hope so Jan 15 15:13:57 there are multiple parts to the ADT.... Jan 15 15:14:07 but ya, the populate_sdk toolchain can be used with the ADT components.. Jan 15 15:14:22 been a while since I used Eclipse though Jan 15 15:14:55 ndec: its the same pieces, yes Jan 15 15:15:12 ok, that's what i thought... that makes sense Jan 15 15:16:50 I need to learn about eclipse etc Jan 15 15:16:55 so I can explain it to people Jan 15 15:17:29 well, my position is to avoid learning about it, so that I don't have to explain to anyone ... Jan 15 15:17:52 i am using the SDK thought, but not the GUI stuff. Jan 15 15:19:07 we have stupid customers :) Jan 15 15:19:24 I am having great success with the sdk though Jan 15 15:19:31 who hopefull aren't on irc. Jan 15 15:19:35 :) Jan 15 15:19:50 where the definition of stupid is people who are comfortbale in guis :) Jan 15 15:19:54 it's not as if the channel was logged ;-) Jan 15 15:20:33 which is funny, because I completely suck at gui code dev Jan 15 15:28:18 we did something pretty interesting on that front, we created a script that converts an ipk feed into a p2 repository, so you can pick and choose binary packages to install into a sysroot relative to the eclipse install it's being installed into. alternative to a monolithic sdk, delivery mechanism wise, between the person running bitbake and the hypothetical application developer running eclipse Jan 15 15:28:32 use the eclipse add/remove software dialog to install the packages from the feed Jan 15 15:29:14 kergoth sounds interesting.. Jan 15 15:29:36 I've definitely had questions about doing that kind of thing.. (then people usually use eclipse once and go, umm ya.... back to the CLI) ;) Jan 15 15:29:36 not perfect, it only sets up one sysroot atm, so native/nativesdk aren't available, but it's a different approach Jan 15 15:29:39 I had a friend "fix" an sdk by building the missing package and installing it into the unpakced sdk :) Jan 15 15:29:57 Crofton|work, ya thats the 'normal' way we hack things if needed.. Jan 15 15:30:14 but between the sstate-cache and the SDK based on filesystems.. 90% of the problems are gone.. Jan 15 15:30:28 it's the other 10% where the stuff like Kergoth mentioned would be nice Jan 15 15:30:31 downside to the script at the moment is it's written in python, not java, so it hardcodes knowledge of the p2 repository format and metadata, rather than emitting the java objects into xml which would be the maintainable way.. Jan 15 15:30:33 * kergoth nods Jan 15 15:31:01 I'm not sure how useful it *really* is, as I haven't heard much customer feedback, but yeah, something to ponder.. Jan 15 15:31:14 I'm hoping as the 'Toaster' progresses, that that stuff will be less and less needed.. Jan 15 15:34:29 indeed Jan 15 15:39:58 in my makefile.am I have AM_LDFLAGS = with native compilation directory (ie: /usr/local/pgsql/lib). In my recipe I use LDFLAGS += ${STAGING_DIR}/usr/local/pgsql/lib . When I run bitbake, it complains that /usr/local/pgsql/lib is unsafe for crosscompiling. How can I do to solve this issue ? Jan 15 15:40:34 don't do that :) use configure.ac to find the pgsql library Jan 15 15:40:42 I am scared that if I write in my recipe LDFLAGS = ${STAGING_DIR}.... I will miss some cross compilation information Jan 15 15:41:15 rburton: how can I do that ? Jan 15 15:42:57 weebet: if the library supports it, ideally using pkg-config. ie PKG_CHECK_MODULES(PQ, libpq). that defines PQ_CFLAGS and PQ_LIBS Jan 15 15:44:31 rburton: nice hint. Thank you Jan 15 16:11:44 What could be the reason for " Error: apriltags not found in the base feeds" ? apriltags is my own recipe.. Jan 15 16:12:28 when I did bitbake apriltags it was successful but when i try to bitbake console-image, i get this error Jan 15 16:28:43 I have a best practices question. I want to build my custom image for my target hardware and for qemu so developers can do desktop development. Should I use the same build directory for both and just select a different machine on the command line or should I use different build directories and just have separate local.conf files? Jan 15 16:29:26 there really isn't a best practice for that. either mode of operation should work fine Jan 15 16:30:53 kergoth: thanks Jan 15 17:00:19 Anyone tried building meta-ivi with master? Jan 15 17:00:31 seems the dbus update changed its api and broke common-api-c++-dbus Jan 15 17:02:43 dbus's api should have been stable unless that was using private api Jan 15 17:05:23 not sure Jan 15 17:05:23 error: 'dbus_message_set_body_length' was not declared Jan 15 17:05:26 is the particular issue Jan 15 17:05:39 don't know that it was an api change, just seems likely with the error Jan 15 17:05:44 I am nearly done with my first package, 3 more to go ! but I have a strange problem. bitbake tells me that my non debug package contain .debug directory (autotool package). yes, I don't know why it is creating a debug directory. what could be the problem ? Jan 15 17:08:04 Zaif: most likely is that the apriltags package ended up being empty and thus was never produced Jan 15 17:08:59 weebet: just do FILES_${PN}-dbg += "" Jan 15 17:11:38 why does autotool build debug. I don't want the debug information Jan 15 17:13:09 it isn't autotools. we pass in cflags to ensure it happens, then we split it out into a separate binary package. thus its available if you want it, but doesn't cause much harm Jan 15 17:13:47 thank you kergoth and bluelightning Jan 15 17:20:14 even if I run ./configure and make native on my PC. I see there is a -g added to the g++ command. Jan 15 17:20:47 bitbake will run over all binaries produced and split out the debug sections Jan 15 17:20:57 so they get packaged separately Jan 15 17:21:05 (fwiw, almost every distro does this) Jan 15 17:21:42 kergoth: that's a meta-ivi addition Jan 15 17:22:17 bluelightning: Thank you for the hint. Yes, the package is empty, will change the recipe Jan 15 17:22:57 kergoth: http://git.yoctoproject.org/cgit/cgit.cgi/meta-ivi/tree/recipes-core-ivi/dbus/dbus/dbus-DBusMessage-add-support-for-custom-marshaling.patch#n146 Jan 15 17:23:08 yeah, saw that, i missed the bbappend warning :) Jan 15 17:23:11 thanks Jan 15 17:23:14 * kergoth muttersa nd rolls eyes Jan 15 17:23:27 * kergoth beats on meta-ivi Jan 15 17:24:40 kergoth: good man. with a pointy stick, i hope. Jan 15 17:24:46 indeed! Jan 15 17:27:25 * kergoth thinks about adapting the meta-mentor setup scripts into a bb-configure-layers script, which could add/remove specific layers, by name or path, and all layers which provide a requested machine, to the existing bblayers, and reorder them by BBFILE_PRIORITY Jan 15 17:29:47 Ah, I see, dbus, among other bbappends, are fixed in an outstanding meta-ivi patchset which was posted 10 days ago, but which still hasn't been applied Jan 15 17:29:57 and naturally meta-ivi master doesn't build as a result at this time Jan 15 17:30:00 * kergoth mutters some more Jan 15 17:30:05 * kergoth temporarily forks Jan 15 17:45:39 Has anyone used qemu arm with a machine other than versatilepb so that you can have a memory larger than 128M? How would I go about using something different? Jan 15 17:49:21 adding this to the recipe : FILES_${PN}-dbg += "${WORKDIR}/packages-split/fcgi/usr/bin/" I get the same error ( QA Issue: non debug package contains .debug directory: .... Jan 15 17:49:47 tlwoerner, see kergoth meta-ivi muttering :) Jan 15 18:07:48 heh :) Jan 15 18:16:54 rburton: bluelightning hi Jan 15 18:17:08 what is the best way to develop a software that have dependencies? Jan 15 18:17:16 developing within Yocto does not seem to be easy Jan 15 18:17:35 but if I develop outside, I would need to add the Yocto environment to the software, like include path, library path, etc. Jan 15 18:17:45 that is a bit weird, too. Jan 15 18:17:53 is the SDK creation meant to address such cases, or what? Jan 15 18:18:10 yes Jan 15 18:18:10 In case of Linux, this is of course not a problem since Linux does not really have dependencies other than toolchain stuff. Jan 15 18:18:27 so the best way would be to create a minimal SDK? Jan 15 18:19:12 containing all the necessary libs, like openssl, etc, and the headers? Jan 15 18:19:24 rburton: bluelightning ^ Jan 15 18:19:44 bitbake my-image -c populate_sdk Jan 15 18:20:08 rburton: what will that do? Jan 15 18:20:18 populate a SDK from your image Jan 15 18:20:28 so it will give an SDK installer? Jan 15 18:20:44 or it will create a path for me where I would need to clone my project into? Jan 15 18:22:08 it makes a giant sdk tarball Jan 15 18:22:42 which is your sysroot for building outside of bitbake Jan 15 18:23:00 OK, so basically anyone developing software on top of Yocto is using SDK, right? Jan 15 18:23:10 I mean that is the intended design decision to address this use case? Jan 15 18:23:25 so creating the SDK is not rarity when someone develops a software on top of the base Yocto system? Jan 15 18:26:09 pretty much Jan 15 18:26:56 meta-toolchain gives you the basic cross-toolchain and do_populate_sdk gives you the toolchain plus all your image depends Jan 15 18:29:07 thanks. Jan 15 18:32:43 Crofton|work: kergoth: wonderful!! :-D Jan 15 18:33:40 i'm surprised nobody replied a couple days ago when i emailed that maybe the layer handling should/could be (partially at least) moved out of the hands of the user Jan 15 18:34:03 * kergoth must have missed that thread Jan 15 18:36:15 https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg47868.html Jan 15 18:39:24 for what its worth, mentor uses repo and custom setup scripts too :) Jan 15 18:44:39 tlwoerner: oe-lite handles this in a slightly interesting way. they use a higher level tool called oe, and it not only is used to do builds, but also to clone their own internally handled manifest, which includes a bitbake format config file that describes the layers and versions to clone down. oe clone; cd foo; oe bake blah Jan 15 18:45:17 wheel reinvention, yes, but at least its integrated and officlal to the project.. Jan 15 18:46:28 kergoth: thanks! i had never heard of oe-lite Jan 15 18:46:44 it was originally an oe/bitbake fork, but they went their own way with a lot of things Jan 15 18:46:59 I wish he'd call it something else Jan 15 18:46:59 some of it is quite interesting Jan 15 18:47:03 agreed Jan 15 22:01:02 I just got bitten by a quirk wherein a variable name happened to end with an _override. Jan 15 22:01:43 And it occurs to me to wonder: How much harm, if any, would be done by leaving the original full names around also when a variable is determined to be a possible override? Jan 15 22:27:52 seebs: thats what we used to do, iirc Jan 15 22:37:23 Also, I would be much happier if the diagnostics from things like get_machine_branch in the kernel recipes tree gave slightly better insight on what they were trying to do which failed. Jan 15 23:25:40 Anyone know how the symlinks in tmp/deploy/images get created? I'm generating .md5 files in there as well but not sure how to get the symlinks to update too... Jan 15 23:29:59 read image.bbclass and see the IMAGE_FSTYPE variables Jan 15 23:36:26 kergoth: Hmm.... Still a bit puzzled - so should I be defining md5 as an image type as well? Or am I trying to do something a bit outside the scope of how things are intended to work? Jan 16 00:46:22 wb behanw_ Jan 16 00:49:13 well, you scared him off Jan 16 01:50:09 Crofton|work: i scare canadians **** ENDING LOGGING AT Thu Jan 16 02:59:59 2014