On Tue, Apr 9, 2013 at 4:28 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:

> It is better that you use pkg-config. But I am not
> an expert on using pkg-config under a cross build
> environment.
>

I don't remember anyone adding pkg-config support to OpenOCD. Patches are
welcome. You may be better off just manually setting CFLAGS and LDFLAGS to
point to wherever you built/installed libusb.

There are some caveats when using pkg-config for cross-compiling. You have
to set the correct environment variable to make sure the build system's
libs aren't included in the search path. There are tutorials out there that
suggest you set the wrong one so beware.

Building natively on Windows is generally much more complicated and messy
than cross-compiling OpenOCD on a linux box.

/Andreas
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to