multiple pathes in cmake variables

Ralf Habacker ralf.habacker at freenet.de
Fri Feb 10 09:31:15 CET 2006


Ralf Habacker schrieb:
> Hi,
>
> kdewin32 requires two additional pathes to include. I have tried
>
>
> KDEWIN32_INCLUDE_DIR:PATH=c:\daten\kde4\kdelibs\win\include;c:\daten\kde4\kdelibs\win\include\mingw;
>
> but this results into an error.
>
> C:\Daten\kde4\CMake\bin\cmake.exe -E cmake_depends  "MinGW Makefiles" 
> C:\Daten\kde4\kdelibs C:\Daten\kde4\kdelibs\dcop C:\Daten\kde4\kde
> \dcop\CMakeFiles\DCOP.dir\DependInfo.cmake
> CMake Error: Invalid escape sequence \d
> CMake Error: Syntax error in cmake code at
> C:/Daten/kde4/kdelibs/dcop/CMakeFiles/CMakeDirectoryInformation.cmake:34:
> syntax error, unexpected cal_ERROR, expecting $end (4), when parsing 
> string "c:\daten\kde4\kdelibs\win\include"
> CMake Error: Invalid escape sequence \d
> CMake Error: Syntax error in cmake code at
> C:/Daten/kde4/kdelibs/dcop/CMakeFiles/CMakeDirectoryInformation.cmake:35:
> syntax error, unexpected cal_ERROR, expecting $end (4), when parsing 
> string "c:\daten\kde4\kdelibs\win\include\mingw"
> CMake Error: Target DependInfo.cmake file not found
> CMake Error: Directory Information file not found
>
>
> Any idea how to fix ?
>   
Update: These two pathes are required also for configuring because 
otherwise some functions will be redeclared.

\kdelibs\dcop\dcopclient.cpp
In file included from c:/daten/kde4/kdelibs/win/include/mingw/unistd.h:26,
                 from C:/Daten/kde4/kdelibs/config.h:336,
                 from C:\Daten\kde4\kdelibs\dcop\dcopclient.cpp:33:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winsock2.h:614: 
error: declaration of C function `int gethostname(char*, int)' con
flicts with
C:/Daten/kde4/kdelibs/config.h:327: error: previous declaration `int 
gethostname(char*, unsigned int)' here
In file included from C:\Daten\kde4\kdelibs\dcop\dcopclient.cpp:33:
C:/Daten/kde4/kdelibs/config.h:460: error: declaration of C function 
`int unsetenv(const char*)' conflicts with
c:/daten/kde4/kdelibs/win/include/mingw/stdlib.h:55: error: previous 
declaration `void unsetenv(const char*)' here
C:/Daten/kde4/kdelibs/config.h:472: error: declaration of C function 
`int usleep(unsigned int)' conflicts with
c:/daten/kde4/kdelibs/win/include/mingw/unistd.h:106: error: previous 
declaration `void usleep(unsigned int)' here
In file included from C:\Daten\kde4\kdelibs\dcop\dcopclient.cpp:40:
c:/daten/kde4/kdelibs/win/include/mingw/sys/stat.h:26:1: warning: 
"S_ISSOCK" redefined
In file included from C:\Daten\kde4\kdelibs\dcop\dcopclient.cpp:33:
C:/Daten/kde4/kdelibs/config.h:482:1: warning: this is the location of 
the previous definition
mingw32-make[2]: *** [dcop/CMakeFiles/DCOP.dir/dcopclient.obj] Error 1
mingw32-make[2]: Leaving directory `C:/Daten/kde4/kdelibs'
mingw32-make[1]: *** [dcop/CMakeFiles/DCOP.dir/all] Error 2
mingw32-make[1]: Leaving directory `C:/Daten/kde4/kdelibs'
mingw32-make: *** [all] Error 2

> Ralf
>
>
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem
>   



More information about the Kde-buildsystem mailing list