[kde-freebsd] Build errors in KDE4 svn: kdebase/apps/kinfocenter/base/info_fbsd.cpp

Michael Krauss hippodriver at gmx.net
Mon Apr 14 10:56:55 CEST 2008


On 13/04/08, Adriaan de Groot wrote:
> On Saturday 12 April 2008 17:04:49 David Johnson wrote:
> > As a workaround, you can replace all find() calls with indexOf().
> 
> And after doing that, please send the diff to this list so it can be
> committed upstream. Removing Qt3isms is a no brainer for KDE SVN
> commits.

A renewed version of info_fbsd.cpp has already been committed by
brandybuck. Kinfocenter compiles fine now.

But I am running into new, probably not FreeBSD specific, problems:
Konsole needed a new version of kdelibs, so I updated and tried to
recompile. Unfortunately headers from /usr/local/include are getting
included instead of their counterparts from ~/qt-copy/include,
resulting in missing declarations:

[...]
-- Found Qt-Version 4.4.0-rc1 (using /home/kde-devel/qt-copy/bin/qmake)
-- Found X11: /usr/local/lib/libX11.so
-- Building kdelibs...
-- Found KDE4 kconfig_compiler
preprocessor: /home/kde-devel/kde/build/KDE/kdelibs/bin/./kconfig_compiler.shell
-- Found KDE4
automoc: /home/kde-devel/kde/build/KDE/kdelibs/bin/./kde4automoc.shell
-- Found Strigi: /home/kde-devel/kde/lib/libstreams.so
-- Found Soprano: /home/kde-devel/kde/lib/libsoprano.so
-- Found Soprano includes: /home/kde-devel/kde/include
-- Found Soprano Index: SOPRANO_INDEX_LIBRARIES-NOTFOUND
-- Found Soprano Client: /home/kde-devel/kde/lib/libsopranoclient.so
-- ALSA not found
-- Phonon multimedia support is enabled.
-- ALSA version not known. ALSA output will probably not work correctly.
-- Building Solid HAL backend.
-- Found JPEG: /usr/local/lib/libjpeg.so
-- Found PNG: /usr/local/lib/libpng.so
-- Found JPEG: /usr/local/lib/libjpeg.so
-- Found jasper: /usr/local/lib/libjasper.so;/usr/local/lib/libjpeg.so
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these
packages.
+ BZip2
...skipping...
/usr/local/include/qshared.h:46: error: function definition does not
declare parameters
In file included from /usr/local/include/qgarray.h:42,
                 from /usr/local/include/qmemarray.h:42,
                 from /usr/local/include/qcstring.h:43,
                 from /usr/local/include/qstring.h:42,
                 from /home/kde-devel/kde/src/KDE/kdelibs/kjs/api/kjsprivate.h:27,
                 from /home/kde-devel/kde/src/KDE/kdelibs/kjs/api/kjscontext.cpp:23:
/usr/local/include/qshared.h:46: error: function definition does not
declare parameters
In file included from /usr/local/include/qmemarray.h:42,
/usr/local/bin/cmake -E
cmake_progress_report /home/kde-devel/kde/build/KDE/kdelibs/CMakeFiles  12 13 14 15 16 17 18 19
[ 45%] Built target kdeui
                 from /usr/local/include/qcstring.h:43,
                 from /usr/local/include/qstring.h:42,
                 from /home/kde-devel/kde/src/KDE/kdelibs/kjs/api/kjsprivate.h:27,
                 from /home/kde-devel/kde/src/KDE/kdelibs/kjs/api/kjscontext.cpp:23:
/usr/local/include/qgarray.h:46: error: function definition does not
declare parameters
/usr/local/include/qgarray.h:119: error: 'QGArray' has not been declared
/usr/local/include/qgarray.h:119: error: non-member function 'char*
at(uint)' cannot have cv-qualifier
[...]

although qmake from ~/qt-copy/bin/qmake is used. I must figure out how
to force cmakekde to use the headers from ~/qt-copy/include.


Kind regards,
Michael Krauss



More information about the kde-freebsd mailing list