**** BEGIN LOGGING AT Fri Nov 06 02:59:57 2009 Nov 06 15:05:25 Hi everyone... I have a question about SlugOS: I downloaded the tarball so that I have a working cross-development platform. I can easily compile some little programs. But I cannot link pcap to my program. It says: "error: pcap.h: No such file or directory" What can I do to use pcap? Nov 06 15:06:28 Its complaining it doesnt exist/similar... Nov 06 15:08:50 Reedy: with normal gcc I can compile. So I think I have to add the pcap-headers to the cross-dev-platform. Do you know how? Nov 06 15:09:45 Are you building an optware package? Nov 06 15:20:06 Reedy: I don't know, what that is. I found a source-code on the www and tried to compile it. That's all. Nov 06 15:20:20 what for, pcap? Nov 06 15:21:34 Reedy: to receive a udp-packet using the pcap-library Nov 06 15:22:08 Reedy: this is my intention, but the source code itself just does nothing. It only detects the network interfaces. Nov 06 15:22:30 have you made pcap etc from optware? Nov 06 15:22:59 Reedy: what is optware? And how can I make pcap from it? :-) Nov 06 15:23:14 optware is the package repository for slugos Nov 06 15:23:32 so when you do ipkg install blah, it installs from optware Nov 06 15:24:51 there only seems ot be pcapsipdump Nov 06 15:24:52 Reedy: ah... no, I have no ipkg on my nslu, but that's another problem. I am trying to cross-compile source-code from my home-computer for the nslu. It works great until I want to use external libraries e.g. pcap. Nov 06 15:25:45 Reedy: I downloaded the tarball from http://www.slug-firmware.net/ to have this cross-dev-platform. And with this I am trying to compile. Nov 06 15:36:18 savenger: for slugos, you either use openembedded bitbake framework, or use optware framework Nov 06 15:36:42 these take care of staging libs, so packages can find them Nov 06 15:37:06 in the case of optware, you do libpcap-stage first Nov 06 15:37:23 then "make -ipk" Nov 06 15:39:16 eno: and in case of openembedded? Inside the tarball I downloaded, there's such an openembedded-folder. Nov 06 15:39:55 you write .bb file Nov 06 15:40:37 eno: I still don't get it :-) What do I write inside this bb-file and where to I put that file? Nov 06 15:41:30 you'll need to search the web for openembedded resource Nov 06 15:41:46 you can also find existing example.bb Nov 06 15:41:58 (I don't know too much about OE) Nov 06 15:43:16 http://www.kernel-labs.org/files/openembedded-guide/openembedded-guide.html Nov 06 15:43:28 http://www.uv-ac.de/openembedded/openembedded.html Nov 06 15:45:54 eno: thanks.... Nov 06 15:46:11 eno: lol, the second link... chapter 8 is always "to be done" :-) Nov 06 15:46:18 these are from my bookmarks, there might be newer and better resource Nov 06 15:46:39 you should try to build an existing .bb first Nov 06 15:46:53 and join #openembedded if you have any question Nov 06 15:47:27 eno: ok, thank you very much Nov 06 15:47:36 personally, i feel optware framework is easier to understand Nov 06 15:47:53 I'm biased, of course Nov 06 15:48:14 eno: :-) Nov 06 15:48:59 eno: why is the openembedded framework distributed with the firmware tarball and not the optware framework? Nov 06 15:54:37 eno: while I'm reading through this openembedded stuff... I have the feeling, we missunderstood each other. I do not want to create a package for the nslu, but a simple executable. I have this armeb-unknown-linux-gnu-gcc command in my SlugOS/slugos-nslu2be.tmp/cross/armv5teb/bin folder and that's exactly doing what I want with one exception: I cannot link pcap to it. Isn't there a place, where I can put the pcap-files, so that the com Nov 06 16:03:34 savenger: for one package, you build libpcap first, install (stage) it somewhere Nov 06 16:04:14 then use -I and -L flag of armeb-unknown-linux-gnu-gcc Nov 06 16:04:48 for some platform, optware builds toolchain from scratch; for some, optware downloads binary toolchain Nov 06 16:05:05 for optware/slugos5be, optware just use slugos toolchain Nov 06 16:15:48 eno: the command doesn't seem to take -I or -L Nov 06 16:19:10 gcc sure should take -I and -L Nov 06 16:20:22 eno: on my computer, the pcap.h is inside /usr/src/include. But when i try armeb-linux-gnueabi-gcc -I/usr/src/include it keeps saying "error: pcap.h: No such file or directory" Nov 06 16:20:38 eno: am I doing something wrong? Nov 06 16:57:41 savenger: try some small example, add -v to gcc command Nov 06 16:57:56 it's not obvious from the error message **** ENDING LOGGING AT Sat Nov 07 02:59:57 2009