D-BUS unresolved symbols when compiling qdbus

Matt Rogers mattr at kde.org
Wed Nov 15 19:58:44 CET 2006


On Wednesday 15 November 2006 10:11, Peter Kümmel wrote:
> Paulo Jorge Guedes wrote:
> > Hi,
> >
> > I compiled and installed winDBus-10.11.2006 with nmake (release and
> > debug) and when building qdbus (4.2.1) I got this linking errors:
> >
> > link /LIBPATH:"d:\qt-win-opensource-src-4.2.1\lib" /LIBPATH:"d:\qt-win-o
> > pensource-src-4.2.1\lib" /NOLOGO /DEBUG /DLL /incremental:no
> > /OUT:"..\..\..\lib\
> > QtDBusd4.dll" @C:\DOCUME~1\pjguedes\LOCALS~1\Temp\nm1B78.tmp
> > qdbusconnection.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due
> > to '/INCR
> > EMENTAL:NO' specification
> >    Creating library ..\..\..\lib\QtDBusd4.lib and object
> > ..\..\..\lib\QtDBusd4.e
> > xp
> > dbus-1d.lib(dbus-sysdeps-util-win.obj) : error LNK2019: unresolved
> > external symb
> > ol __imp__CloseWindowStation at 4 referenced in function
> > __dbus_user_at_console
> > dbus-1d.lib(dbus-sysdeps-util-win.obj) : error LNK2019: unresolved
> > external symb
> > ol __imp__GetUserObjectInformationA at 20 referenced in function
> > __dbus_user_at_con
> > sole
> > dbus-1d.lib(dbus-sysdeps-util-win.obj) : error LNK2019: unresolved
> > external symb
> > ol __imp__OpenWindowStationA at 12 referenced in function
> > __dbus_user_at_console
> > ..\..\..\lib\QtDBusd4.dll : fatal error LNK1120: 3 unresolved externals
> > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> > 8\VC\BIN\l
> > ink.EXE"' : return code '0x460'
> > Stop.
> >
> > Can this be a problem with windbus?
> >
> > Paulo
>
> QtDBus-win32.patch misses a -luser32.
>
> Does it help when you add it to tools/qdbus/src/src.pro, line 45?
>
> win32 {
>    LIBS += -lws2_32 -ladvapi32 -lnetapi32 -luser32
>
>
> Peter

Or more like the windows dbus port misses an -luser32. Adding it to either 
places makes it all work
-- 
Matt



More information about the Kde-windows mailing list