public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuild for self-written kde-program fails
@ 2003-04-26 13:29 Werner Joss
  2003-04-26 16:40 ` Peter Ruskin
  2003-04-26 16:51 ` Sergey Kuleshov
  0 siblings, 2 replies; 8+ messages in thread
From: Werner Joss @ 2003-04-26 13:29 UTC (permalink / raw
  To: gentoo-dev

Hello all,
I'm new to this list and not sure if this is the right address for my 
question, but hope go get some hints...
here is a short description:
my kde-program compiles/installs fine if I do this via the usual steps
'configure - make - make install', but fails when I try to install it
with a simple ebuild.
the problem seems to be a different behaviour of moc (the qt meta-object 
compiler) when processing qt-designer .ui files.
I think the relevant part of the ui file is this:

<includehints>
    <includehint>kurlrequester.h</includehint>
    <includehint>klineedit.h</includehint>
    <includehint>kpushbutton.h</includehint>
</includehints>

because when running moc from 'make', it inserts

#include <kurlrequester.h>

into the resulting .h file,
whereas in case of the ebuild, moc omits that line.
as a consequence, the following steps fail as follows:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include -I/usr/qt/3/include 
-I/usr/X11R6/include   -DPIC -fPIC -DQT_THREAD_SUPPORT  -D_REENTRANT  
-DNDEBUG -O2 -march=athlon -O2 -pipe -fno-exceptions -fno-check-new  -c -o 
siteDlg.o `test -f 'siteDlg.cc' || echo './'`siteDlg.cc
siteDataDlg.cc: In constructor `siteDataDlg::siteDataDlg(QWidget*, const 
char*,
   bool, unsigned int)':
siteDataDlg.cc:119: invalid use of undefined type `struct KURLRequester'
siteDataDlg.h:24: forward declaration of `struct KURLRequester'
siteDataDlg.cc:121: no matching function for call to `QGridLayout::
   addMultiCellWidget(KURLRequester*&, int, int, int, int)'

if anybody has a clue where to look now, I would greatly appreciate.
werner



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-26 16:51 ` Sergey Kuleshov
@ 2003-04-26 14:08   ` Werner Joss
  2003-04-26 20:06     ` Sergey Kuleshov
  0 siblings, 1 reply; 8+ messages in thread
From: Werner Joss @ 2003-04-26 14:08 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

Thanks for fast reply - see attached ebuild.
werner

On Samstag, 26. April 2003 18:51, Sergey Kuleshov wrote:
> That's odd :(  Can you post your ebuild file to have a look at.
> Also, one suggestion, probably a stupid one, try to use make
> instead of emake in src_compile().
>
> P.S. I'm also new here ;-)
>
> On Saturday 26 April 2003 13:29, Werner Joss wrote:
> > my kde-program compiles/installs fine if I do this via the usual steps
> > 'configure - make - make install', but fails when I try to install it
> > with a simple ebuild.
> > the problem seems to be a different behaviour of moc (the qt meta-object
> > compiler) when processing qt-designer .ui files.
> > I think the relevant part of the ui file is this:
> >
> > <includehints>
> >     <includehint>kurlrequester.h</includehint>
> >     <includehint>klineedit.h</includehint>
> >     <includehint>kpushbutton.h</includehint>
> > </includehints>
> >
> > because when running moc from 'make', it inserts
> >
> > #include <kurlrequester.h>
> >
> > into the resulting .h file,
> > whereas in case of the ebuild, moc omits that line.
>
> ......
>
> > if anybody has a clue where to look now, I would greatly appreciate.
> > werner
> >
> >
> >
> > --
> > gentoo-dev@gentoo.org mailing list
>
> --
> Sergey Kuleshov <sergey@til-design.com>
> Studio Programer

[-- Attachment #2: ksitecopy-0.1.12.ebuild --]
[-- Type: text/plain, Size: 447 bytes --]

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later

inherit kde-base

need-kde 3.1

DESCRIPTION="A simple kde-frontend for sitecopy"
SRC_URI="http://www.hoernerfranzracing.de/zip/${P}.tar.bz2"
HOMEPAGE="http://www.hoernerfranzracing.de/kde/ksitecopy.php"

LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND="net-misc/sitecopy"
RDEPEND="${DEPEND}"

src_install()	{
	kde_src_install
}	


[-- Attachment #3: Type: text/plain, Size: 37 bytes --]

--
gentoo-dev@gentoo.org mailing list

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-26 13:29 [gentoo-dev] ebuild for self-written kde-program fails Werner Joss
@ 2003-04-26 16:40 ` Peter Ruskin
  2003-04-27 10:59   ` Werner Joss
  2003-04-26 16:51 ` Sergey Kuleshov
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Ruskin @ 2003-04-26 16:40 UTC (permalink / raw
  To: gentoo-dev

On Saturday 26 Apr 2003 14:29, Werner Joss wrote:
> Hello all,
> I'm new to this list and not sure if this is the right address for my
> question, but hope go get some hints...
> here is a short description:
> my kde-program compiles/installs fine if I do this via the usual steps
> 'configure - make - make install', but fails when I try to install it
> with a simple ebuild.
> the problem seems to be a different behaviour of moc (the qt
> meta-object compiler) when processing qt-designer .ui files.
> I think the relevant part of the ui file is this:
>
> <includehints>
>     <includehint>kurlrequester.h</includehint>
>     <includehint>klineedit.h</includehint>
>     <includehint>kpushbutton.h</includehint>
> </includehints>
>
> because when running moc from 'make', it inserts
>
> #include <kurlrequester.h>
>
> into the resulting .h file,
> whereas in case of the ebuild, moc omits that line.
> as a consequence, the following steps fail as follows:
>
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.1/include
> -I/usr/qt/3/include -I/usr/X11R6/include   -DPIC -fPIC
> -DQT_THREAD_SUPPORT  -D_REENTRANT -DNDEBUG -O2 -march=athlon -O2 -pipe
> -fno-exceptions -fno-check-new  -c -o siteDlg.o `test -f 'siteDlg.cc'
> || echo './'`siteDlg.cc
> siteDataDlg.cc: In constructor `siteDataDlg::siteDataDlg(QWidget*,
> const char*,
>    bool, unsigned int)':
> siteDataDlg.cc:119: invalid use of undefined type `struct
> KURLRequester' siteDataDlg.h:24: forward declaration of `struct
> KURLRequester' siteDataDlg.cc:121: no matching function for call to
> `QGridLayout:: addMultiCellWidget(KURLRequester*&, int, int, int, int)'
>
> if anybody has a clue where to look now, I would greatly appreciate.
> werner
>
Hi Werner,

This is odd.  I couldn't see anything wrong with your ebuild.  It failed 
the same way for me.  However, it failed exactly the same when I did 
configure && make from 
/var/tmp/portage/ksitecopy-0.1.12/work/ksitecopy-0.1.12/.  If I then 
opened ksitecopy.kdevprj in kdevelop and did a debug run it also had the 
same failure.

Manually adding "#include <kurlrequester.h>" to siteDataDlg.h lets it run 
OK, but as you say, this should be done for you.

Have you discussed this with the author?

Peter
-- 
Gentoo-1.4.2.8 Stable. KDE: 3.1.1a Qt: 3.1.2
AMD Athlon(tm) XP 2200+ 768MB.	Kernel: 2.4.20-xfs-r2.	GCC 3.2.2


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-26 13:29 [gentoo-dev] ebuild for self-written kde-program fails Werner Joss
  2003-04-26 16:40 ` Peter Ruskin
@ 2003-04-26 16:51 ` Sergey Kuleshov
  2003-04-26 14:08   ` Werner Joss
  1 sibling, 1 reply; 8+ messages in thread
From: Sergey Kuleshov @ 2003-04-26 16:51 UTC (permalink / raw
  To: Gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That's odd :(  Can you post your ebuild file to have a look at.
Also, one suggestion, probably a stupid one, try to use make 
instead of emake in src_compile().

P.S. I'm also new here ;-)

On Saturday 26 April 2003 13:29, Werner Joss wrote:
> my kde-program compiles/installs fine if I do this via the usual steps
> 'configure - make - make install', but fails when I try to install it
> with a simple ebuild.
> the problem seems to be a different behaviour of moc (the qt meta-object
> compiler) when processing qt-designer .ui files.
> I think the relevant part of the ui file is this:
>
> <includehints>
>     <includehint>kurlrequester.h</includehint>
>     <includehint>klineedit.h</includehint>
>     <includehint>kpushbutton.h</includehint>
> </includehints>
>
> because when running moc from 'make', it inserts
>
> #include <kurlrequester.h>
>
> into the resulting .h file,
> whereas in case of the ebuild, moc omits that line.
......
> if anybody has a clue where to look now, I would greatly appreciate.
> werner
>
>
>
> --
> gentoo-dev@gentoo.org mailing list

- -- 
Sergey Kuleshov <sergey@til-design.com>
Studio Programer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+qrkCcbJxBGJJn5IRAmnvAJ9nADzO60irO8+bEzWO77lvRffEZACfU8ET
bmDsBlT5bxAjA1BEzMFfYkE=
=bNQH
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-26 14:08   ` Werner Joss
@ 2003-04-26 20:06     ` Sergey Kuleshov
  2003-04-27 11:22       ` Werner Joss
  0 siblings, 1 reply; 8+ messages in thread
From: Sergey Kuleshov @ 2003-04-26 20:06 UTC (permalink / raw
  To: Gentoo-dev

Hi,
I did have a look at your ebuild and I found a very starnge behaviour of uic 
tool. To cu the long story short here it is:
I untared the sources in a separate dir as *NON_ROOT* user and run make just 
to let it create the header files based  on *ui and broke it. Now I issued 
this command again as NO_ROOT:
/usr/qt/3/bin/uic -tr i18n -i siteDataDlg.h ./siteDataDlg.ui | sed -e "s, \
i18n( \"\" ),QString::null,g" | sed -e "s,QT_KDE_I18N( \"\"\, \"\" \ 
),QString::null,g" >> siteDataDlg.cc || rm -f siteDataDlg.cc

It is just a copy of a command which make runs, when compiling the sources.
Now I check siteDataDlg.cc and the include for kurlrequester is there.

NOW, remove the siteDataDlg.cc file. Change to super user and run the uic 
command again. I check the .cc file and find that kurlrequester.h is NOT 
included any more.

So, the problem has nothing to do with ebuild as all these tests were 
performed without it beeing used (I just used emerge -f to get your tarball), 
but it rather looks like a bug in uic.

On Saturday 26 April 2003 14:08, Werner Joss wrote:
> Thanks for fast reply - see attached ebuild.
> werner
>
> On Samstag, 26. April 2003 18:51, Sergey Kuleshov wrote:
> > That's odd :(  Can you post your ebuild file to have a look at.
> > Also, one suggestion, probably a stupid one, try to use make
> > instead of emake in src_compile().
> >
> > P.S. I'm also new here ;-)
> >
> > On Saturday 26 April 2003 13:29, Werner Joss wrote:
> > > my kde-program compiles/installs fine if I do this via the usual steps
> > > 'configure - make - make install', but fails when I try to install it
> > > with a simple ebuild.
> > > the problem seems to be a different behaviour of moc (the qt
> > > meta-object compiler) when processing qt-designer .ui files.
> > > I think the relevant part of the ui file is this:
> > >
> > > <includehints>
> > >     <includehint>kurlrequester.h</includehint>
> > >     <includehint>klineedit.h</includehint>
> > >     <includehint>kpushbutton.h</includehint>
> > > </includehints>
> > >
> > > because when running moc from 'make', it inserts
> > >
> > > #include <kurlrequester.h>
> > >
> > > into the resulting .h file,
> > > whereas in case of the ebuild, moc omits that line.
> >
> > ......
> >
> > > if anybody has a clue where to look now, I would greatly appreciate.
> > > werner

-- 
Sergey Kuleshov <sergey@til-design.com>
Studio Programer
Microsoft Certified Professional

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-26 16:40 ` Peter Ruskin
@ 2003-04-27 10:59   ` Werner Joss
  2003-04-27 11:58     ` Peter Ruskin
  0 siblings, 1 reply; 8+ messages in thread
From: Werner Joss @ 2003-04-27 10:59 UTC (permalink / raw
  To: gentoo-dev

On Samstag, 26. April 2003 18:40, Peter Ruskin wrote:
> Hi Werner,
>
> This is odd.  I couldn't see anything wrong with your ebuild.  It failed
> the same way for me.  However, it failed exactly the same when I did
> configure && make from
> /var/tmp/portage/ksitecopy-0.1.12/work/ksitecopy-0.1.12/.  If I then
> opened ksitecopy.kdevprj in kdevelop and did a debug run it also had the
> same failure.
>
> Manually adding "#include <kurlrequester.h>" to siteDataDlg.h lets it run
> OK, but as you say, this should be done for you.

yes, I expected this, and obviously it is done automatically when using
'configure, make..' from the commandline as normal user, but not when 
compiling from ebuild (using 'sudo')...

>
> Have you discussed this with the author?

yep, that's me ;-)

werner

>
> Peter



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-26 20:06     ` Sergey Kuleshov
@ 2003-04-27 11:22       ` Werner Joss
  0 siblings, 0 replies; 8+ messages in thread
From: Werner Joss @ 2003-04-27 11:22 UTC (permalink / raw
  To: gentoo-dev

On Samstag, 26. April 2003 22:06, Sergey Kuleshov wrote:
> Hi,
> I did have a look at your ebuild and I found a very starnge behaviour of
> uic tool. To cu the long story short here it is:
> I untared the sources in a separate dir as *NON_ROOT* user and run make
> just to let it create the header files based  on *ui and broke it. Now I
> issued this command again as NO_ROOT:
> /usr/qt/3/bin/uic -tr i18n -i siteDataDlg.h ./siteDataDlg.ui | sed -e "s, \
> i18n( \"\" ),QString::null,g" | sed -e "s,QT_KDE_I18N( \"\"\, \"\" \
> ),QString::null,g" >> siteDataDlg.cc || rm -f siteDataDlg.cc
>
> It is just a copy of a command which make runs, when compiling the sources.
> Now I check siteDataDlg.cc and the include for kurlrequester is there.
>
> NOW, remove the siteDataDlg.cc file. Change to super user and run the uic
> command again. I check the .cc file and find that kurlrequester.h is NOT
> included any more.
>
> So, the problem has nothing to do with ebuild as all these tests were
> performed without it beeing used (I just used emerge -f to get your
> tarball), but it rather looks like a bug in uic.

Sergey,
thanks for your verification - this is just what I found out here -
in the meantime, I also tested this with uic from qt-3.1.0 - same result as 
before (qt-3.1.2)

werner


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ebuild for self-written kde-program fails
  2003-04-27 10:59   ` Werner Joss
@ 2003-04-27 11:58     ` Peter Ruskin
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Ruskin @ 2003-04-27 11:58 UTC (permalink / raw
  To: gentoo-dev

On Sunday 27 Apr 2003 11:59, Werner Joss wrote:
> > Have you discussed this with the author?
>
> yep, that's me ;-)

hehehe
-- 
Gentoo-1.4.2.8 Stable. KDE: 3.1.1a Qt: 3.1.2
AMD Athlon(tm) XP 2200+ 768MB.	Kernel: 2.4.20-xfs-r2.	GCC 3.2.2


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-04-27 11:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-26 13:29 [gentoo-dev] ebuild for self-written kde-program fails Werner Joss
2003-04-26 16:40 ` Peter Ruskin
2003-04-27 10:59   ` Werner Joss
2003-04-27 11:58     ` Peter Ruskin
2003-04-26 16:51 ` Sergey Kuleshov
2003-04-26 14:08   ` Werner Joss
2003-04-26 20:06     ` Sergey Kuleshov
2003-04-27 11:22       ` Werner Joss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox