On Sat, Oct 13, 2012 at 12:28 AM, Peter Stuge <pe...@stuge.se> wrote: >> The way I solve the issue is to put the header file and lib >> file to the respective location (eg: MinGW include and lib >> directory. And this works very well for OpenOCD since it >> only needs a few external library (eg: libusb-win32, libftdi >> and libusb-1.0/libusbx). > > It is a mess. Why not use the tools to your advantage? Maintain a > single prefix and use pkg-config; you will never have to bother > with include paths or linker search paths again! It is actually > incredibly simple.
If you come out with a simple instruction to cross compile openocd (using libusb-1.0, libusb-win32, libftdi) with the help of pkg-config under Linux, that would be helpful. Thanks in advance. As for MinGW/MSys, there is a package manager as part of the installer (mingw-get) but it does not have the functionality of pkg-config. You can manipulate CFLAGS and LDFLAGS if you do not want to copy the header and lib files to the default directories. But I consider that as even more problematic than copying the files. Copying files is not feasible for big project with many dependencies, but for openocd, it is really not that bad. -- Xiaofan ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel