How beta can you go?

In an effort to gain more ‘nerd points’ (discussion we had at Gran Canaria Airport) and because I was bored, I decided to test something to see how far I would get.

The following was the experiment:

See if I could compile KDE with Visual Studio 2010 beta 1 on Windows 7 RC x86-64.

I can say now: ‘you won’t get far’ ;-) .

After installing Win7 I decided to install VS2010, installation worked out fine (except for the warning during the install: SQL Server 2008 is not compatible with Windows 7, install SP1 after this installation) But then the startup went horrible: the screen did not get rendered, everything stayed black…

This caused me to file a bug with Microsoft and work with NMake & cmd.exe.

The emerge scripts worked like a charm and installed the binary dependencies, but then there was compilation:

CMake x86 does not work with x64 compiler tools, the ‘test compiler’ application causes all kind of undefined reference errors.

I switched to x86 compilation because of this, and there came a curious error when compiling dbus: Microsoft is finally conforming to standards with the new Visual Studio, so this hack from dbus:

/* Make use of the fact that the WSAE* error codes don't

* overlap with errno E* codes. Wrapper functions store

* the return value from WSAGetLastError() in errno.

*/

#if defined(EPROTONOSUPPORT) || \

defined(EAFNOSUPPORT) || \

defined(EWOULDBLOCK)

#error This does not look like Win32 and the Microsoft C library

#endif

does not work anymore (the Microsoft C library is suddenly not the Microsoft C library anymore…).

I decided to give up for now and just installed VS2008 with the Win 7 Platform SDK, it is now compiling Qt and then I can put my marble desktop background back in a few hours :-D

One Response to “How beta can you go?”

  1. Dakon says:

    In the start menu group of Visual Studio there is a group “tools” (at least with MSVC 2008) where command prompts for both 32 and 64 bit build environments are in. You need to start the 64 bit one and use “cmake -G “NMake Makefiles” …” in it to get everything build for 64 bit. I’m not absolutely sure if you need to actually _build_ in that later on, but I think so as the command line compilers need some environment stuff set to find their components AFAIR.

    Another nice idea is to use jom instead of nmake. It lacks support for colorized output but it can build in parallel.

Leave a Reply