A, didn't know you were talking about Eclipse. I guess you are referring to the Intel(R) IoT developer toolkit Eclipse IDE?
Right now there is no nice support on this yet. So it would require some manual steps. In general:
- get the right ipk package
- extract the content (on Linux: "ar x <your package>.ipk")
- extract "data.tar.gz" into devkit-x86/sysroots/i586-poky-linux/
If it's just to add an include file you could just add into devkit-x86/sysroots/i586-poky-linux/usr/include
AlexT_Intel ha scritto:
Ruscoff, okay looks like due to the way wpa_supplicant build lays out files during compilation, the include files you're looking for are in the wpa-supplicant-dbg package. Just install it, or unpack the ipk file and use the \usr\src\debug\wpa-supplicant\2.2-r1\wpa_supplicant-2.2\src\ directory inside it, it contains the headers
Thanks AlexT for the help. I'm trying to use these libraries but it doesn't work.
I tried to put them into "sysroots\i586-poky-linux\usr\include\wpa_supplicant" and add library "-lwpa_ctrl" but linker says "cannot find -lwpa_ctrl".
I tried to create new project with WPA_supplicant library and compile it but gcc can't compile it, because some libraries miss like "includes.h", "trace.h", and other.
How can i use this library?
Well. I don't see any libraries being built there. Quick look at Google: https://www.google.com/search?q=wpa_ctl&ie=utf-8&oe=utf-8#q=wpa_ctrl.h and e.g. specifically this one: Using wpa_ctrl.h in a external programm suggest that it's actually not intended to be used like a library, by design.
On StackOverflow: linux - including wpa_ctrl.h in a C code - Stack Overflow they suggest to just rip the necessary pieces of the header into your program, which is quite a hack, but may work for you.
Ok,now it's clear.
Thank you very much.
Before these post i searched and visited many sites with google, but none of them showed an effective solution.
When i saw your repository files i hoped that you maybe found an just prepared and simply solution, so i tried many ways to make it works and after some try i request help because i'm newbie with linux. This isn't simple as seems and i understand that better way is to use wpa_cli through system call.
Thank you anyway,i apologise for lost time