[Kde-windows] Problem building kdelibs

Ralf Habacker ralf.habacker at freenet.de
Wed Nov 23 07:23:30 CET 2005



Albert Astals Cid schrieb:

> A Dimarts 22 Novembre 2005 23:38, Ralf Habacker va escriure:
>
>> Albert Astals Cid schrieb:
>>
>>> Hi, i downloaded kdelibs from trunk and scons, did scons to
>>> "configure" and scons to build and it can not even build the
>>> first file (dcop/client/dcop.o), i think it builds "a bit more"
>>> so maybe i'm missing something or doing something very wrong.
>>>
>>> I'm using windows cmd, scons 0.96.91, kdelibs from today and
>>> mingw32-gcc 3.4.2
>>>
>>> Any idea?
>>
>> Do you have run "scons configure" at first ?
>
>
> No, but the first scons produced the same output, so yes i ran it.

okay

>> The prelimary compiling howto for mingw on
>>
http://webdev.cegit.de/snapshots/kde-windows/bksys/doc/html/how-to-compile-
>> with-mingw.html may help.
>
>
> Did not help much :-/
>
> After adding
>
> obj.includes += ' ../../win/include ' in Sconscript of dcop/client
> i've reduced the error to the attached
>
> Any tip?

Your configuration seems not to be complete, because there are missing
pathes. With mingw the following definitions should be there

F:\daten\kdelibs>type cache\generic.cache.py
PREFIX = 'C:\\Qt\\'
LIBSUFFIXEXT = '.dll'
GENCCFLAGS = ['-O2', '-DNDEBUG', '-DNO_DEBUG', '-Iwin\\include',
'-Iwin\\include\\mingw', '-Ic:\\Mingw\\include']
GENCXXFLAGS = ['-DUNICODE', '-DQT_LARGEFILE_SUPPORT',
'-DQT_EDITION=QT_EDITION_DESKTOP', '-DQT_DLL', '-DQT_NO_DEBUG',
'-DQT_CORE_LIB', '-DQT_GUI_LIB', '-DQT_THREAD_SUPPORT',
'-Ic:\\QT\\4.0.1\\include', '-DHAVE_CONFIG_H']
GENLINKFLAGS = ['-Lbuild\\win', '-Wl,--enable-runtime-pseudo-reloc',
'-Wl,--export-all-symbols', '-Wl,--script,bksys\\win32\\i386p
e.x-no-rdata', '-Lc:\\Mingw\\lib']
BKS_DEBUG = 0
GENERIC_ISCONFIGURED = 1
COMPILERTOOL = 'mingw'
PLATFORM = 'win32'

Do you have setup environment correct ? You should use the similar
settings like shown below:

set QTDIR=c:\Qt\4.0.1
set QMAKESPEC=win32-g++
set MINGW=c:\Mingw
set PYTHON=c:\Python24
set PERL=c:\Perl
set PATH=%PYTHON%;%PATH%
set PATH=%QTDIR%\bin;%PATH%
set PATH=%MINGW%\bin;%PATH%
set PATH=%PERL%\bin;%PATH%
:: for scons.bat
set PATH=%CD%;%PATH%

If this doesn't help please send in the output from the configuring
process.

Ralf


> Albert
>
>> Ralf
>>
>>> Thanks
>>>
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>>
>>> In file included from build/config.h:5, from
>>> dcop\client\dcop.cpp:25: build/config-lowlevel.h:37: error:
>>> `gid_t' has not been declared build/config-lowlevel.h:37:
>>> error: ISO C++ forbids declaration of `parameter' with no type
>>> dcop\client\dcop.cpp:28:17: pwd.h: No such file or directory In
>>> file included from dcop\client\/marshall.cpp:26, from
>>> dcop\client\dcop.cpp:49: dcop\client\/../../kdecore/kurl.cpp:
>>> In member function `bool KURL::isLocalFile() const':
>>> dcop\client\/../../kdecore/kurl.cpp:1482: error: `gethostname'
>>> undeclared (first use this function)
>>> dcop\client\/../../kdecore/kurl.cpp:1482: error: (Each
>>> undeclared identifier is reported only once for each function
>>> it appears in.) dcop\client\dcop.cpp: In function `UserList
>>> userList()': dcop\client\dcop.cpp:381: error: `passwd'
>>> undeclared (first use this function) dcop\client\dcop.cpp:381:
>>> error: `pstruct' undeclared (first use this function)
>>> dcop\client\dcop.cpp:381: error: `getpwent' undeclared (first
>>> use this function) scons: *** [build\dcop\client\dcop.o] Error
>>> 1
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________ 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