Gentoo Archives: gentoo-dev

From: Peter Ruskin <aoyu93@×××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] ebuild for self-written kde-program fails
Date: Sat, 26 Apr 2003 16:40:29
Message-Id: 200304261740.23042.aoyu93@dsl.pipex.com
In Reply to: [gentoo-dev] ebuild for self-written kde-program fails by Werner Joss
1 On Saturday 26 Apr 2003 14:29, Werner Joss wrote:
2 > Hello all,
3 > I'm new to this list and not sure if this is the right address for my
4 > question, but hope go get some hints...
5 > here is a short description:
6 > my kde-program compiles/installs fine if I do this via the usual steps
7 > 'configure - make - make install', but fails when I try to install it
8 > with a simple ebuild.
9 > the problem seems to be a different behaviour of moc (the qt
10 > meta-object compiler) when processing qt-designer .ui files.
11 > I think the relevant part of the ui file is this:
12 >
13 > <includehints>
14 > <includehint>kurlrequester.h</includehint>
15 > <includehint>klineedit.h</includehint>
16 > <includehint>kpushbutton.h</includehint>
17 > </includehints>
18 >
19 > because when running moc from 'make', it inserts
20 >
21 > #include <kurlrequester.h>
22 >
23 > into the resulting .h file,
24 > whereas in case of the ebuild, moc omits that line.
25 > as a consequence, the following steps fail as follows:
26 >
27 > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include
28 > -I/usr/qt/3/include -I/usr/X11R6/include -DPIC -fPIC
29 > -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -O2 -march=athlon -O2 -pipe
30 > -fno-exceptions -fno-check-new -c -o siteDlg.o `test -f 'siteDlg.cc'
31 > || echo './'`siteDlg.cc
32 > siteDataDlg.cc: In constructor `siteDataDlg::siteDataDlg(QWidget*,
33 > const char*,
34 > bool, unsigned int)':
35 > siteDataDlg.cc:119: invalid use of undefined type `struct
36 > KURLRequester' siteDataDlg.h:24: forward declaration of `struct
37 > KURLRequester' siteDataDlg.cc:121: no matching function for call to
38 > `QGridLayout:: addMultiCellWidget(KURLRequester*&, int, int, int, int)'
39 >
40 > if anybody has a clue where to look now, I would greatly appreciate.
41 > werner
42 >
43 Hi Werner,
44
45 This is odd. I couldn't see anything wrong with your ebuild. It failed
46 the same way for me. However, it failed exactly the same when I did
47 configure && make from
48 /var/tmp/portage/ksitecopy-0.1.12/work/ksitecopy-0.1.12/. If I then
49 opened ksitecopy.kdevprj in kdevelop and did a debug run it also had the
50 same failure.
51
52 Manually adding "#include <kurlrequester.h>" to siteDataDlg.h lets it run
53 OK, but as you say, this should be done for you.
54
55 Have you discussed this with the author?
56
57 Peter
58 --
59 Gentoo-1.4.2.8 Stable. KDE: 3.1.1a Qt: 3.1.2
60 AMD Athlon(tm) XP 2200+ 768MB. Kernel: 2.4.20-xfs-r2. GCC 3.2.2
61
62
63 --
64 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] ebuild for self-written kde-program fails Werner Joss <werner@××××××××××××××××××.de>