Igor Skochinsky wrote:
> Hello All,
>
> Tuesday, April 28, 2009, 7:29:46 PM, Dick wrote:
>
> DH> Latest.
> DH> Paaleese commit any time.
>
> So I decided to try the legendary CMake compatibility and compile
> OpenOCD with native Win32 MSVC. The makefile generation went mostly
> without a hitch, but the actual compilation ran into a lot of issues,
> mainly because of C99 and GNU-specific features.
>
> Main issues:
>
> 1) variable declarations not at the start of block
> 2) designated initializers (.field = value)
> 3) no unistd.h
>
> I've been going through the files trying to fix it up and now have
> most of it compiling, but I wonder if this will be useful for anyone
> else? Or C99 will be required for OpenOCD?
>
Igor,
First, thanks for trying it.
Please always state your build environment. What operating system, and
what tool chain is it trying to use?
mingw32?
cygwin?
I will assume windows in the discussion below:
Then be aware of my remarks that it has not been tested on Windows.
There is some massaging required. It would only take about an hour to
get it to work on windows, but my Windows days are mostly over.
To deal with your issues, and assuming Windows, I would stick with the
GNU compiler as your first attempt, and this means Mingw. So when
generating your make files, be sure and use the command line option with
tells it to use Mingw, not MS VC. Also make sure all your toolchain
commands are in your path, including svn client and gcc.
You are blazing a trail. You are leader, and as such there will be some
experimentation required. Here is a hint:
http://www.cmake.org/cmake/help/cmake2.6docs.html#opt:-Ggenerator-name
Read the section on "generators" and stick with gnu gcc from mingw and
you should get through it.
Regards,
Dick
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development