Compiling kdelibs with Visual-Studio 2003

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Mon Oct 30 16:34:07 CET 2006


Von: Stefan Eilers <stefan.eilers at basyskom.de>
> Hi Folks!
> 
> While compiling kdelibs on windows (using VS 2003 with SP1) I found  
> two real serious issues which I want to discuss here..
> 
> 1. kcookiejaradaptor.h:
> 
> It contains a real big string ( Q_CLASSINFO("D-Bus Introspection",  
> "" ...) which exceeds the maximum length of the compiler. As this  
> problem occures within the automatic generated moc file, I'm not sure  
> hot to fix this.
> 
> 
> 2. The keramik style has a real weird compiling problem:
> 
> [ 64%] Building CXX object kstyles/keramik/CMakeFiles/keramik.dir/ 
> keramik.obj
> keramik.cpp
> C:\KDE\kdelibs\kstyles\keramik\keramik.cpp(684) : error C2059:  
> Syntaxfehler: '>'
> C:\KDE\kdelibs\kstyles\keramik\keramik.cpp(684) : error C2143:  
> Syntaxfehler: Es
> fehlt ';' vor '}'
> C:\KDE\kdelibs\kstyles\keramik\keramik.cpp(687) : error C2143:  
> Syntaxfehler: Es
> fehlt ';' vor '}'
> C:\KDE\kdelibs\kstyles\keramik\keramik.cpp(687) : fatal error C1004:  
> Unerwartete
> s Dateiende gefunden
> NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1.NET\Vc7\bin\cl.exe':  
> Rⁿckgabe-C
> ode '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual  
> Studio .NET 2003\
> VC7\BIN\nmake.exe"': Rⁿckgabe-Code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual  
> Studio .NET 2003\
> VC7\BIN\nmake.exe"': Rⁿckgabe-Code '0x2'
> Stop.
> 
> Does anybody has the same problem and see why this happens?
Looks like msvc 7.1 still can't compile this construct:

template<> const char* kstyleName<type>() { return name; } \
    Q_EXPORT_PLUGIN(KStyleFactory<type>)

I've no problems with msvc8 - looks like msvc8 is the only compiler support ed by kdelibs on win32 for now... but don't try to compile kdepimlibs. :-(

Although I'm happy to see people trying to compile kdelibs4/win, I must say that this isn't the real problem for now. The important work has to be done here: http://sf.net/projects/windbus

Christian
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the Kde-windows mailing list