kde4 strigi mingw CMake config.h problem /* #undef ICONV_SECOND_ARGUMENT_IS_CONST 1 */

Pike Man pikeman at pikeman.sytes.net
Fri May 11 14:34:56 CEST 2007


Hi I am using a modified THE portage script to build kde4 using mingw
cmake 2.4.6, strigi from kdesupport svn

The problem is doing cmake on strigi

config.h.cmake:
//////////////////////////////
//misc
//////////////////////////////
#cmakedefine ICONV_SECOND_ARGUMENT_IS_CONST 1
#cmakedefine CMAKE_ANSI_FOR_SCOPE 1

after cmake -g "MingW Makefiles"
config.h:
//////////////////////////////
//misc
//////////////////////////////
/* #undef ICONV_SECOND_ARGUMENT_IS_CONST 1 */
#define CMAKE_ANSI_FOR_SCOPE 1

That cause my compile problem below.
the correct line should say ICONV_SECOND_ARGUMENT_IS_CONST 1

Any Idea Why?

it works correctly when build using VS2005 on another PC.


Pike Man wrote:
>
> Is this a config problem or maybe a source code error?
>
> Thanks
>
> C:\2008\kde4mingw\emerge\bin>emerge kdelibs > emerge.log
>
> ** No index libraries were found. strigidaemon will not be built.
>
> ** It is recommended to install CLucene >= 0.9.16.
>
> ** You will still be able to use deepfind, deepgrep and xmlindexer.
>
> C:\2008\kde4mingw\tmp\strigi-20070318\work\strigi\src\streams\inputstreamreader.
>
> cpp: In member function `int32_t
> Strigi::InputStreamReader::decode(wchar_t*, int
>
> 32_t)':
>
> C:\2008\kde4mingw\tmp\strigi-20070318\work\strigi\src\streams\inputstreamreader.
>
> cpp:79: error: invalid conversion from `char**' to `const char**'
>
> C:\2008\kde4mingw\tmp\strigi-20070318\work\strigi\src\streams\inputstreamreader.
>
> cpp:79: error: initializing argument 2 of `size_t libiconv(void*,
> const char**
>
> , size_t*, char**, size_t*)'
>
> mingw32-make[2]: ***
> [src/streams/CMakeFiles/streams.dir/inputstreamreader.obj]
>
> Error 1
>
> mingw32-make[1]: *** [src/streams/CMakeFiles/streams.dir/all] Error 2
>
> mingw32-make: *** [all] Error 2
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>   




More information about the Kde-windows mailing list