[Bug 83334] New: KDevelop produces KOffice Part project that won't build

Brad Hards bradh at frogmouth.net
Wed Jun 16 14:22:25 UTC 2004

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
           Summary: KDevelop produces KOffice Part project that won't build
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel kdevelop org
        ReportedBy: bradh frogmouth net

Version:           3.0.90 (CVS) (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --disable-libunwind-exceptions --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux

Thread model: posix
OS:                Linux

I'm trying to build a KOffice Part using the standard KDevelop template. I've had a number of issues with getting it to install the template, which I think I have corrected (see commits at http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdevelop/languages/cpp/app_templates/kofficepart/kopart.kdevtemplate.diff?r1=1.5&r2=1.6&f=h and http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdevelop/languages/cpp/app_templates/kofficepart/kopart.kdevtemplate.diff?r1=1.4&r2=1.5&f=h)

Now it won't build, with a number of problems:

1. The Makefile.am uses SUBDIRS = $(TOPSUBDIRS), which breaks Unsermake.

2. The Makefile.am isn't passing $(QT_INCLUDES), and perhaps some other build-time magic, which leads to problems like:
source='/home/bradh/junkcode/test/src/test_part.cpp' object='test_part.lo' libtool=yes depfile='.deps/test_part.Plo' tmpdepfile='.deps/test_part.TPlo' depmode=gcc3 /bin/sh /home/bradh/junkcode/test/admin/depcomp /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I/home/bradh/junkcode/test/src -I.. -I/usr/include/kde -I/usr/include/kde -I/usr/include/kde -I/usr/lib/kwmf -I/usr/lib/kwmf -I -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -g3 -fno-inline -O0 -g3 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o test_part.lo `test -f '/home/bradh/junkcode/test/src/test_part.cpp' || echo '/home/bradh/junkcode/test/src/'`/home/bradh/junkcode/test/src/test_part.cpp
In file included from /home/bradh/junkcode/test/src/test_part.h:9,
from /home/bradh/junkcode/test/src/test_part.cpp:6:
/usr/include/koDocument.h:27:22: qwmatrix.h: No such file or directory

3. There is something badly wrong in src/Makefile.am, which contains the line:
test_la_SOURCES = main.cpp
but there is no src/main.cpp

It looks like parts of the template have been updated, but perhaps not enough of it (or too much?). It should be simple to duplicate - just create a project based off the KOffice Part template and try to build it.

More information about the KDevelop-devel mailing list