dbus 1.2.16 compilation errors on win32 (everything was done according to instructions)

Grigory Ptashko gptashko at cmmt.ru
Sun Sep 6 13:22:47 PDT 2009


Hello.
I set up the MinGW + MSYS environment on a Windows 2003 Server. I set up a
cmake environment. In MinGW + MSYS env I have lots of needed libs like
gettext etc. I downloaded dbus 1.2.16 from git snapshots from freedesktop. I
applied the win patch as it was said in README.win. Then I created the build
dir and ran cmake from the windows command prompt with the following
command:

cmake -G "MinGW Makefiles"
-DCMAKE_INSTALL_PREFIX=c:/devel/MinGW ..\dbus-1.2.16\cmake

cmake found expat and the Makefile was created after this.

Then I ran mingw32-make and got the following errors (I skipped the good
lines for the sake of readability):

[ 13%] Building C object
dbus/CMakeFiles/dbus-1.dir/C_/devel/msys/1.0/home/gptashko/build/dbus-1.2.16/dbus/dbus-misc.obj

C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c: In
function `dbus_get_version':
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:166:
error: `DBUS_MAJOR_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:166:
error: (Each undeclared identifier is reported only once
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:166:
error: for each function it appears in.)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:168:
error: `DBUS_MINOR_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:170:
error: `DBUS_MICRO_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c: In
function `_dbus_misc_test':
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:200:
error: `DBUS_MAJOR_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:201:
error: `DBUS_MINOR_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:202:
error: `DBUS_MICRO_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:216:
error: `DBUS_VERSION' undeclared (first use in this function)
C:\devel\msys\1.0\home\gptashko\build\dbus-1.2.16\dbus\dbus-misc.c:239:
error: `DBUS_VERSION_STRING' undeclared (first use in this function)
mingw32-make[2]: ***
[dbus/CMakeFiles/dbus-1.dir/C_/devel/msys/1.0/home/gptashko/build/dbus-1.2.16/dbus/dbus-misc.obj]
Error 1
mingw32-make[1]: *** [dbus/CMakeFiles/dbus-1.dir/all] Error 2
mingw32-make: *** [all] Error 2

Could anyone tell me how can I get over this, please? I am trying hard to
build dbus on win32 for several days already, but no result so far..

Thanks in advance,
Grigory.

-- 
С уважением,
Григорий Пташко

Тел.: +7 (916) 1489766
E-mail: gptashko at cmmt.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20090907/bd849717/attachment.html 


More information about the dbus mailing list