PDA

View Full Version : moc binary?



brinx
07-04-2002, 01:11 AM
#Here is my compiling information which is fine
#until the end.

./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for g++... g++
checking for supported compiler version... no
checking for gcc-3.0... no
checking for gcc3... gcc3
checking for g++-3.0... no
checking for g++3... g++3
checking alternate compiler for supported compiler version... yes
checking for gcc... (cached) gcc3
checking whether the C compiler (gcc3 ) works... yes
checking whether the C compiler (gcc3 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc3 accepts -g... yes
checking for c++... (cached) g++3
checking whether the C++ compiler (g++3 ) works... yes
checking whether the C++ compiler (g++3 ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++3 accepts -g... yes
checking how to run the C preprocessor... gcc3 -E
checking for working const... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets ${MAKE}... (cached) yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc3 option to produce PIC... -fPIC
checking if gcc3 PIC flag -fPIC works... yes
checking if gcc3 static flag -static works... yes
checking if gcc3 supports -c -o file.o... yes
checking if gcc3 supports -c -o file.lo... yes
checking if gcc3 supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for supported libc version... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for libpng... -lpng -lz -lm
checking for Qt... yes
>> Found version.: 2.3.2
>>> Headers......: /opt/qt-gcc3-2.3.2/include/
>>>> Libraries...: /opt/qt-gcc3-2.3.2/lib/
>>>>> Workable...: -*{YES}*-
checking for Qt MOC... configure: error: No working Qt meta object
compiler (moc) found!

Configure was unable to locate a moc binary anywhere on your system!

If you have a working moc binary, please set the environment variable MOC
to point to the location of your moc binary and run configure over.

As a last resort, it may be possible to eliminate this error by typing:

export MOC='updatedb && locate moc | grep bin/moc' (with the 's)

#So I searched for the moc binary (which should be in/around/near the Qt
#path)

locate moc
/usr/share/doc/qt-gcc3-devel-2.3.2/examples/semaphores/main.moc
/usr/share/doc/qt-gcc3-devel-2.3.2/html/moc.html
/opt/qt-gcc3-2.3.2/bin/moc
/opt/bin/moc
/opt/share/man/man1/moc.1

#So I export

export MOC=/opt/bin

#I attempt to recompile and get the same error. I've even re-downloaded
#and forced re-install of qt-gcc3 and qt-gcc3-devel. I tried searching
#for an answer and read your INSTALL.newbies.diff but I am still at a
#loss. I'd appreciate anything, even a "Do this you fuckin complete
#fuckin idiot . . . <answer>"

#I have a fresh install of RedHat 7.3 with all the #packages I read that I
#needed.

#Thanks in advance,.

Cryonic
07-04-2002, 04:54 AM
echo $PATH

is /opt/qt-2.3.2/bin in it?

brinx
07-04-2002, 12:06 PM
#ok i tried that and found that it wasn't in it

export PATH=/opt/qt-gcc3-2.3.2/bin:$PATH
export MOC=/opt/qt-gcc3-2.3.2/bin:$MOC

echo $PATH
/dir:/dir:/dir:/opt/qt-gcc3-2.3.2/bin

echo $MOC
/opt/bin:/opt/qt-gcc3-2.3.2/bin

#attempted to recompile and got the same error as before

#Hmmmm

#I did notice however that i didn't have a /opt/qt-2.3.2/bin dir but I did have a
#/opt/qt-gcc3-2.3.2/bin dir, should it be the top structure
#and not my current?

#Thanks

brinx
07-04-2002, 12:26 PM
#I figured that I missed something earlier.

export LD_LIBRARY_PATH=/opt/qt-gcc3-2.3.2/lib:$LD_LIBRARY_PATH
export CXX=g++3
export CC=gcc3

#I did that and it worked just fine
#Thanks for pointin me in the right direction