Missing moc files while making kdelibs/kdebase

Missing moc files while making kdelibs/kdebase

Post by Richard Corfie » Fri, 19 Oct 2001 20:18:51



Hi

I've seen postings relating to this problem, but I haven't
seen a good solution yet.

When I try to make kdelibs-2.2.1 and kdebase-2.2.1 the
compilation fails with multiple missing moc files
for example:
favicons.cpp:37: favicons.moc: No such file or directory
make[3]: *** [favicons.lo] Error 1
make[3]: Leaving directory `/home/rdc/kdebase-2.2.1/libkonq/favicons'

I have been able to install kdelibs by manually making every single
necessary moc file by grepping on the Makefile in a directory for
moc files and calling make on them. This is obviously a very
tedious and time-consuming process and I don't want to have to
repeat it to install kdebase.

moc seems to be ok (i.e. installed correctly), since 'make <file>.moc'
successfully creates the moc file.

In 'config.cache' this line seems to be ok
kde_cv_path_moc=${kde_cv_path_moc='/usr/lib/qt/bin/moc'}
In Makefile (top level) this line seems to be ok
MOC = /usr/lib/qt/bin/moc

I have tried 'make -f Makefile.cvs' as suggested by a previous poster
but that has not worked and I have pretty much run out of ideas apart
from writing a shell script to manually and recursively make all the
moc files before I compile.

My system is RedHat Linux/2.4.9 and Qt version 2.3.1

Any ideas?

Thanks

Richard

 
 
 

Missing moc files while making kdelibs/kdebase

Post by James Richard Tyre » Fri, 19 Oct 2001 23:34:36



> Hi

> I've seen postings relating to this problem, but I haven't
> seen a good solution yet.

> When I try to make kdelibs-2.2.1 and kdebase-2.2.1 the
> compilation fails with multiple missing moc files
> for example:
> favicons.cpp:37: favicons.moc: No such file or directory
> make[3]: *** [favicons.lo] Error 1
> make[3]: Leaving directory `/home/rdc/kdebase-2.2.1/libkonq/favicons'

> I have been able to install kdelibs by manually making every single
> necessary moc file by grepping on the Makefile in a directory for
> moc files and calling make on them. This is obviously a very
> tedious and time-consuming process and I don't want to have to
> repeat it to install kdebase.

> moc seems to be ok (i.e. installed correctly), since 'make <file>.moc'
> successfully creates the moc file.

> In 'config.cache' this line seems to be ok
> kde_cv_path_moc=${kde_cv_path_moc='/usr/lib/qt/bin/moc'}
> In Makefile (top level) this line seems to be ok
> MOC = /usr/lib/qt/bin/moc

> I have tried 'make -f Makefile.cvs' as suggested by a previous poster
> but that has not worked and I have pretty much run out of ideas apart
> from writing a shell script to manually and recursively make all the
> moc files before I compile.

> My system is RedHat Linux/2.4.9 and Qt version 2.3.1

Wild guess:

Do you have: "$QTDIR/bin" in your PATH?

Does: "which moc" return the path to "moc"?

JRT

 
 
 

Missing moc files while making kdelibs/kdebase

Post by Richard Corfie » Sat, 20 Oct 2001 23:01:59




> > When I try to make kdelibs-2.2.1 and kdebase-2.2.1 the
> > compilation fails with multiple missing moc files
> > for example:
> > favicons.cpp:37: favicons.moc: No such file or directory
> > make[3]: *** [favicons.lo] Error 1
> > make[3]: Leaving directory `/home/rdc/kdebase-2.2.1/libkonq/favicons'

> Wild guess:

> Do you have: "$QTDIR/bin" in your PATH?

> Does: "which moc" return the path to "moc"?

> JRT

'which moc' gives me /bin/moc which is a symlink to
/usr/local/qt/bin/moc.
/usr/local/qt itself is a symlink to ./qt-2.3.1 .
One thing that I don't understand
is why ./configure asks me to change $QTDIR to be the
kdebase source directory, instead of the qt directory
itself. If I set QTDIR to be /usr/local/qt, then 'which
moc' returns /usr/local/qt/bin/moc.

The long and the short of this is that I don't think
my problem is a path issue.

Thanks

Richard

 
 
 

Missing moc files while making kdelibs/kdebase

Post by ne.. » Sun, 21 Oct 2001 04:05:13





>> > When I try to make kdelibs-2.2.1 and kdebase-2.2.1 the
>> > compilation fails with multiple missing moc files
>> > for example:
>> > favicons.cpp:37: favicons.moc: No such file or directory
>> > make[3]: *** [favicons.lo] Error 1
>> > make[3]: Leaving directory `/home/rdc/kdebase-2.2.1/libkonq/favicons'

>> Wild guess:

>> Do you have: "$QTDIR/bin" in your PATH?

>> Does: "which moc" return the path to "moc"?

>> JRT

>'which moc' gives me /bin/moc which is a symlink to
>/usr/local/qt/bin/moc.
>/usr/local/qt itself is a symlink to ./qt-2.3.1 .
>One thing that I don't understand
>is why ./configure asks me to change $QTDIR to be the
>kdebase source directory, instead of the qt directory
>itself. If I set QTDIR to be /usr/local/qt, then 'which
>moc' returns /usr/local/qt/bin/moc.

>The long and the short of this is that I don't think
>my problem is a path issue.

Assuming you have pristine source I would make sure
I set QTDIR and export it. Then make sure $QTDIR/bin is
in your PATH, $QTDIR/lib is in LD_LIBRARY_PATH and
$QTDIR/man is in MANPATH according to the qt INSTALL
file. It may also help if you post your ./configure
line.

--
Registered Linux User # 125653 (http://counter.li.org)
The Marines:
        The few, the proud, the not very bright.
  3:02pm  up 20 days, 9 min,  6 users,  load average: 0.00, 0.00, 0.00

 
 
 

Missing moc files while making kdelibs/kdebase

Post by James Richard Tyre » Sun, 21 Oct 2001 15:35:30





> > > When I try to make kdelibs-2.2.1 and kdebase-2.2.1 the
> > > compilation fails with multiple missing moc files
> > > for example:
> > > favicons.cpp:37: favicons.moc: No such file or directory
> > > make[3]: *** [favicons.lo] Error 1
> > > make[3]: Leaving directory `/home/rdc/kdebase-2.2.1/libkonq/favicons'

> > Wild guess:

> > Do you have: "$QTDIR/bin" in your PATH?

> > Does: "which moc" return the path to "moc"?

> > JRT

> 'which moc' gives me /bin/moc which is a symlink to
> /usr/local/qt/bin/moc.
> /usr/local/qt itself is a symlink to ./qt-2.3.1 .
> One thing that I don't understand
> is why ./configure asks me to change $QTDIR to be the
> kdebase source directory, instead of the qt directory
> itself. If I set QTDIR to be /usr/local/qt, then 'which
> moc' returns /usr/local/qt/bin/moc.

> The long and the short of this is that I don't think
> my problem is a path issue.

To me, the above indicates a path problem.  Perhaps the link is
confusing: "configure".

I would remove the link ("/bin/moc") and add: "/usr/local/qt-2.3.1/bin"
to your path:

PATH=$PATH:/usr/local/qt-2.3.1/bin
export PATH

AND, you *must* have QTDIR=/usr/local/qt-2.3.1

remove: "config.cache" and "config.log" and try it again.

Also, did you build Qt-2.3.1 from source?  You will need to register:
"/usr/local/qt-2.3.1/lib" with LD.  Add the path to the:
"/etc/ld.so.conf" file and run: "ldconfig"

JRT

 
 
 

Missing moc files while making kdelibs/kdebase

Post by Richard Corfie » Tue, 23 Oct 2001 17:49:06






> > > > When I try to make kdelibs-2.2.1 and kdebase-2.2.1 the
> > > > compilation fails with multiple missing moc files
> > > > for example:
> > > > favicons.cpp:37: favicons.moc: No such file or directory
> > > > make[3]: *** [favicons.lo] Error 1
> > > > make[3]: Leaving directory `/home/rdc/kdebase-2.2.1/libkonq/favicons'

> > > Wild guess:

> > > Do you have: "$QTDIR/bin" in your PATH?

> > > Does: "which moc" return the path to "moc"?

> > > JRT

> > 'which moc' gives me /bin/moc which is a symlink to
> > /usr/local/qt/bin/moc.
> > /usr/local/qt itself is a symlink to ./qt-2.3.1 .
> > One thing that I don't understand
> > is why ./configure asks me to change $QTDIR to be the
> > kdebase source directory, instead of the qt directory
> > itself. If I set QTDIR to be /usr/local/qt, then 'which
> > moc' returns /usr/local/qt/bin/moc.

> > The long and the short of this is that I don't think
> > my problem is a path issue.

> To me, the above indicates a path problem.  Perhaps the link is
> confusing: "configure".

> I would remove the link ("/bin/moc") and add: "/usr/local/qt-2.3.1/bin"
> to your path:

> PATH=$PATH:/usr/local/qt-2.3.1/bin
> export PATH

> AND, you *must* have QTDIR=/usr/local/qt-2.3.1

> remove: "config.cache" and "config.log" and try it again.

> Also, did you build Qt-2.3.1 from source?  You will need to register:
> "/usr/local/qt-2.3.1/lib" with LD.  Add the path to the:
> "/etc/ld.so.conf" file and run: "ldconfig"

> JRT

Ok, thanks very much. I have managed to compile kdebase now!
I did most of the things that you suggested (bar one) so I'm
not sure exactly which was the crucial action.

After deleting /bin/moc, altering ld.so.conf and changing
my path, ./configure still complained that $QTDIR was set
incorrectly to point at /usr/local/qt-2.3.1 and should be
pointing at /home/rdc/kdebase-2.2.1. In the end I did this:

export MYQT="/usr/local/qt-2.3.1";
export QTDIR="/home/rdc/kdebase-2.2.1";
export PATH="$QTDIR:$QTDIR/lib:$QTDIR/bin:$PATH";
export PATH="$MYQT:$MYQT/lib:$MYQT/bin:$PATH";

Strange???

Many thanks

Richard

 
 
 

1. trying to compile kdebase 2.0 but no moc files?

Read the docco in the tarball,
ran configure,
no apparent problems there.
Run make and it chokes quickly with complaints about
kbookmarkmenu.moc not being there.

I checked the Makefile in case there is another target
to compile the moc's but doesn't seem to be one.

How do I get it to make the mocs?

Cheers!

2. WARNING: cpu 2 failed to start

3. kdelibs >= 3.0.3-10 is needed by kdebase-3.0.3-0.7

4. "gopher" server...

5. compilation pb kdelibs/kdebase - sparc-solaris7

6. Linux network device drivers

7. Missing dcopclient.moc during Kdelib2.2.1 compilation

8. Disksuite Question

9. making kdebase - can't find X_GETTIMEOFDAY

10. kdebase can't compile: missing rman; where do I get it??

11. kdebase missing library libqimgio.so.0

12. Prob making mpeg_play: Missing .h files

13. Looking for missing sources for kdebase.1.1