On Wed, Apr 29, 2009 at 5:08 PM, Dick Hollenbeck <[email protected]> wrote:
> How do you build openocd on windows, does it require CYGWIN or is there
> another way?

MinGW and cygwin should work, not sure if there are other ways to compile it.

> Using CMake on Windows, a reasonable goal would be to ween ourselves of the
> requirement for Cygwin.  However to achieve this, there are probably runtime
> issues in the code and also build issues to deal with.  The first may
> require source code modifications.   I have no experience with OpenOCD on
> windows.

I think mingw works currently, although I haven't tried.
Cygwin is currently not a requirement, just an option.

> And I am allergic to Windows, so there will need to be a "CMake on Windows"
> champion to step up and take this bull by the horns.

Good luck finding that one :)


> You can defer that goal and get yourself running on Cygwin for now.  I would
> look at these links and modify the src/CMakeLists.txt file accordingly:
>
> http://www.cmake.org/cmake/help/cmake2.6docs.html#section_Generators
>
> At line 299 there is the if(CYGWIN) test.  I believe by using the proper
> command line option to cmake, namely the -G option, you essentially can tell
> Cmake that you are on cygwin.  Then it sets the CYGWIN variable, which in
> turn sets our IS_CYGWIN at line 300.

I found two problems with that, first the whole block of if's needs to
be moved up, before the configure_file() call. And the set() functions
in that block all have a superfluous comma in them.

With these changes the config.h works. But there is still some problem
with cygwin include file conflicts. I am looking at this right now.


Michael
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to