Hi,<br><br>(git clone git://<a href="http://cgit.freedesktop.org/dbus/dbus/">cgit.freedesktop.org/dbus/dbus/</a>)<br>It seems that DBUS_MAJOR_VERSION macros are not defined.<br>What is the step to have those macro defined ?<br>
<br>Thx<br>Sincerely<br>Julien<br><br>See the following log<br><br>cmake -G &quot;MinGW Makefiles&quot; ../dbus/cmake<br>-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>-- Check for working C compiler: C:/mingw/bin/gcc.exe<br>
-- Check for working C compiler: C:/mingw/bin/gcc.exe -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: C:/mingw/bin/g++.exe<br>-- Check for working CXX compiler: C:/mingw/bin/g++.exe -- works<br>
-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Found windows supplementary package location: C:/Program Files/win32libs<br>-- Found LibXml2: C:/Program Files/win32libs/lib/libxml2.dll.a<br>
-- Found libexpat: C:/Program Files/win32libs/lib/libexpat.dll.a<br>-- Looking for dirent.h<br>-- Looking for dirent.h - found<br>-- Looking for io.h<br>-- Looking for io.h - found<br>-- Looking for grp.h<br>-- Looking for grp.h - not found<br>
-- Looking for sys/poll.h<br>-- Looking for sys/poll.h - not found<br>-- Looking for sys/time.h<br>-- Looking for sys/time.h - found<br>-- Looking for sys/wait.h<br>-- Looking for sys/wait.h - not found<br>-- Looking for time.h<br>
-- Looking for time.h - found<br>-- Looking for unistd.h<br>-- Looking for unistd.h - found<br>-- Looking for stdio.h<br>-- Looking for stdio.h - found<br>-- Looking for sys/syslimits.h<br>-- Looking for sys/syslimits.h - not found<br>
-- Looking for errno.h<br>-- Looking for errno.h - found<br>-- Looking for backtrace<br>-- Looking for backtrace - not found.<br>-- Looking for getgrouplist<br>-- Looking for getgrouplist - not found.<br>-- Looking for getpeerucred<br>
-- Looking for getpeerucred - not found.<br>-- Looking for nanosleep<br>-- Looking for nanosleep - not found.<br>-- Looking for getpwnam_r<br>-- Looking for getpwnam_r - not found.<br>-- Looking for setenv<br>-- Looking for setenv - not found.<br>
-- Looking for socketpair<br>-- Looking for socketpair - not found.<br>-- Looking for unsetenv<br>-- Looking for unsetenv - not found.<br>-- Looking for writev<br>-- Looking for writev - not found.<br>-- Looking for setrlimit<br>
-- Looking for setrlimit - not found.<br>-- Looking for socklen_t<br>-- Looking for socklen_t - not found.<br>-- Performing Test HAVE_CMSGCRED<br>-- Performing Test HAVE_CMSGCRED - Failed<br>-- Looking for sys/types.h<br>
-- Looking for sys/types.h - found<br>-- Looking for stdint.h<br>-- Looking for stdint.h - found<br>-- Looking for stddef.h<br>-- Looking for stddef.h - found<br>-- Check size of short<br>-- Check size of short - done<br>
-- Check size of int<br>-- Check size of int - done<br>-- Check size of long<br>-- Check size of long - done<br>-- Check size of long long<br>-- Check size of long long - done<br>-- Check size of __int64<br>-- Check size of __int64 - done<br>
<br>set -DDBUS_INSTALL_SYSTEM_LIBS=1 to install runtime libraries too<br>set DBUSDIR (environment or cmake option) to overwrite the default install directory<br><br><br>                  D-BUS 1.1.1-2<br>                  ==========<br>
<br>        prefix:<br>        exec_prefix:<br>        libdir:<br>        bindir:                   D:/workspace/build_dbus/bin<br>        sysconfdir:<br>        localstatedir:<br>        datadir:                  D:/workspace/build_dbus/test/data<br>
        source code location:     D:/workspace/dbus/cmake/..<br>        c compiler:               gcc.exe<br>        cflags:<br>        cflags debug:             -g<br>        cflags release:           -O3 -DNDEBUG<br>        cxx compiler:             g++.exe<br>
        cxxflags:<br>        cxxflags debug:           -g<br>        cxxflags release:         -O3 -DNDEBUG<br>        64-bit int:               long long<br>        32-bit int:               int<br>        16-bit int:               short<br>
        Doxygen:                  DOXYGEN-NOTFOUND<br>        xmlto:                    XMLTO-NOTFOUND<br>        gcc coverage profiling:   OFF<br>        Building unit tests:      ON<br>        Building verbose mode:    ON<br>
        Building w/o assertions:  OFF<br>        Building w/o checks:      OFF<br>        installing system libs:   OFF<br>        Building Doxygen docs:<br>        Using XML parser:         Expat<br>        System bus address:       tcp:host=localhost,port=12434<br>
        Session bus address:      tcp:host=localhost,port=12434<br><br>NOTE: building with unit tests increases the size of the installed library and renders it insecure.<br>NOTE: building with verbose mode increases library size, may slightly increase security risk, and decreases per<br>
NOTE: building with assertions increases library size and decreases performance.<br><br>-- Configuring done<br>CMake Warning (dev) at bus/CMakeLists.txt:124 (add_executable):<br>  Policy CMP0003 should be set before this line.  Add code such as<br>
<br>    if(COMMAND cmake_policy)<br>      cmake_policy(SET CMP0003 NEW)<br>    endif(COMMAND cmake_policy)<br><br>  as early as possible but after the most recent call to<br>  cmake_minimum_required or cmake_policy(VERSION).  This warning appears<br>
  because target &quot;bus-test&quot; links to some libraries for which the linker must<br>  search:<br><br>    ws2_32, advapi32, netapi32<br><br>  and other libraries with known full path:<br><br>    C:/Program Files/win32libs/lib/libexpat.dll.a<br>
<br>  CMake is adding directories in the second list to the linker search path in<br>  case they are needed to find libraries from the first list (for backwards<br>  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable<br>
  or disable this behavior explicitly.  Run &quot;cmake --help-policy CMP0003&quot; for<br>  more information.<br>This warning is for project developers.  Use -Wno-dev to suppress it.<br><br>-- Generating done<br>-- Build files have been written to: D:/workspace/build_dbus<br>
<br>D:\workspace\build_dbus&gt;mingw32-make<br>Scanning dependencies of target dbus-1<br>[  0%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-address.obj<br>[  1%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-auth.obj<br>
[  2%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-auth-script.obj<br>[  3%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-bus.obj<br>[  4%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-connection.obj<br>
[  5%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-credentials.obj<br>[  6%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-errors.obj<br>[  7%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-keyring.obj<br>
[  8%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-marshal-header.obj<br>[  9%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-marshal-byteswap.obj<br>[ 10%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-marshal-recursive.obj<br>
[ 11%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-marshal-validate.obj<br>[ 12%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-message.obj<br>[ 13%] Building C object dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-misc.obj<br>
D:\workspace\dbus\dbus\dbus-misc.c: In function `dbus_get_version&#39;:<br>D:\workspace\dbus\dbus\dbus-misc.c:166: error: `DBUS_MAJOR_VERSION&#39; undeclared (first use in this function)<br>D:\workspace\dbus\dbus\dbus-misc.c:166: error: (Each undeclared identifier is reported only once<br>
D:\workspace\dbus\dbus\dbus-misc.c:166: error: for each function it appears in.)<br>D:\workspace\dbus\dbus\dbus-misc.c:168: error: `DBUS_MINOR_VERSION&#39; undeclared (first use in this function)<br>D:\workspace\dbus\dbus\dbus-misc.c:170: error: `DBUS_MICRO_VERSION&#39; undeclared (first use in this function)<br>
D:\workspace\dbus\dbus\dbus-misc.c: In function `_dbus_misc_test&#39;:<br>D:\workspace\dbus\dbus\dbus-misc.c:200: error: `DBUS_MAJOR_VERSION&#39; undeclared (first use in this function)<br>D:\workspace\dbus\dbus\dbus-misc.c:201: error: `DBUS_MINOR_VERSION&#39; undeclared (first use in this function)<br>
D:\workspace\dbus\dbus\dbus-misc.c:202: error: `DBUS_MICRO_VERSION&#39; undeclared (first use in this function)<br>D:\workspace\dbus\dbus\dbus-misc.c:216: error: `DBUS_VERSION&#39; undeclared (first use in this function)<br>
D:\workspace\dbus\dbus\dbus-misc.c:239: error: `DBUS_VERSION_STRING&#39; undeclared (first use in this function)<br>mingw32-make[2]: *** [dbus/CMakeFiles/dbus-1.dir/D_/workspace/dbus/dbus/dbus-misc.obj] Error 1<br>mingw32-make[1]: *** [dbus/CMakeFiles/dbus-1.dir/all] Error 2<br>
mingw32-make: *** [all] Error 2<br>