Visual Studio 2003 build

Bill Hoffman bill.hoffman at kitware.com
Tue Feb 14 21:27:55 CET 2006


Hi,  

I am trying to build kdelibs with visual studio 2003.  I am using
the qtwin project: 

http://sourceforge.net/projects/qtwin/

And visual stuido 2003 professional with nmake.

The first error, is from the deprecated stuff.


===================================================================
--- kdemacros.h.cmake   (revision 509438)
+++ kdemacros.h.cmake   (working copy)
@@ -146,9 +146,6 @@
 # if defined(__GNUC__) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MIN
OR__ - 0 >= 2))
   /* gcc >= 3.2 */
 #  define KDE_DEPRECATED __attribute__ ((deprecated))
-# elif defined(_MSC_VER) && (_MSC_VER >= 1300) && (_MSC_VER < 1400)
-  /* msvc >= 7 */
-#  define KDE_DEPRECATED __declspec(deprecated)
 # else
 #  define KDE_DEPRECATED
 # endif

Peter, is there a version of MSC that __declspec(deprecated) works for?
I get a syntax error for the places that use KDE_DEPRECATED if it is set to that.
BTW, on visual 2003, _MSC_VER == 1310.   Peter, can you check in a fix for this?

After fixing that, I am able to build this much:

DCOP.lib  kdecore.lib  kdefx.lib  kdeinit_dcopserver.lib  kdeui.lib
DCOP.dll  kdecore.dll  kdefx.dll  kdeinit_dcopserver.dll  kdeui.dll

Then, it gets stuck here:

 
client.cpp
c:\Hoffman\kde\kdelibs\kdesu\client.cpp(38) : error C2653: 'KDEsuClient' : is no
t a class or namespace name
c:\Hoffman\kde\kdelibs\kdesu\client.cpp(38) : error C2470: 'KDEsuClientPrivate'
: looks like a function definition, but there is no formal parameter list; skipp
ing apparent body
c:\Hoffman\kde\kdelibs\kdesu\client.cpp(48) : error C2027: use of undefined type
 'KDEsuClient'
        c:\Hoffman\kde\kdelibs\kdesu\client.cpp(38) : see declaration of 'KDEsuC
lient'
c:\Hoffman\kde\kdelibs\kdesu\client.cpp(48) : error C2059: syntax error : ')'
c:\Hoffman\kde\kdelibs\kdesu\client.cpp(49) : error C2061: syntax error : identi
fier 'KDEsuClientPrivate'


This problem is from kdesu/client.h:

#ifdef Q_OS_UNIX
// most of the file
#endif //Q_OS_UNIX

If I comment that out, then client.cxx compiles.


Then next error is:
c:\Hoffman\kde\kdelibs\kdesu\process.cpp(26) : fatal error C1083: Cannot open include file: 'termios.h': No such file or directory

This files seems to need some serious porting efforts.  
So, should these files build on win32?  

-Bill







More information about the Kde-buildsystem mailing list