Hi all,

problem found: although the compilation finds correct /usr/qt/3 directory, 
there is "moc" of qt-4 in the /usr/bin path , which is before /usr/qt/3/bin 
path in the $PATH env variable. Therefore it runs moc of qt-4 and fails to 
compile.

In the Sunrise ebuild is used eclass for qt-3, which gives path /usr/qt/3/bin 
on the first place in $PATH evn variable and therefore the compilation does not 
fail.

Problem solved. Thanks to Pavel Sanda for consultation:)

Regards,

Wolf.


On Thu, 22 Mar 2007, Robert Wolf wrote:

> mel bych dotaz tykajici se kompilace PDFedit verzi 0.2.3 az 0.2.5 na Gentoo 
> linuxu.
> 
> Gentoo mam aktualizovany na stable x86, par balicku na unstable ~x86. Qt mam 
> nainstalovane, zde je vypis, vcetne flagu USE:
> 
> ----------------------------------------------------------------------
> [I] x11-libs/qt
>  Available versions:  
>   (3)     3.3.4-r8 3.3.6-r4 ~3.3.6-r5 ~3.3.8
>   (4)     4.1.4-r2 4.2.2 ~4.2.3
>  Installed versions:
>    3.3.6-r4(3)(17:40:12 15.12.2006)
>      (cups -debug doc -examples -firebird gif -immqt -immqt-bc ipv6 mysql nas
>      -nis odbc opengl postgres sqlite xinerama)
>    4.2.2(4)(11:31:31 15.02.2007)
>      (-accessibility cups dbus -debug doc -examples -firebird gif -glib
>      -input_devices_wacom jpeg mng mysql nas -nis odbc opengl -pch png
>      postgres qt3support sqlite sqlite3 xinerama zlib)
> ----------------------------------------------------------------------
> 
> Kompilace skonci s chybou v miste, kde se kompiluje "configure2" v adresari
> src/qsa a chyba je nasledujici:
> 
> ----------------------------------------------------------------------
> cd kpdf-kde-3.3.2 && /usr/qt/3/bin/qmake && make staticlib
> make[2]: Entering directory `/home/wolf/tmp/pdfedit-0.2.5/src/kpdf-kde-3.3.2'
> i686-pc-linux-gnu-g++ -c -pipe -g -Wall -W -O2 -march=i686 -pipe 
> -fno-strict-aliasing  -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT 
> -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../xpdf 
> -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi 
> -I/usr/qt/3/include -o QOutputDevPixmap.o QOutputDevPixmap.cpp
> i686-pc-linux-gnu-g++ -c -pipe -g -Wall -W -O2 -march=i686 -pipe 
> -fno-strict-aliasing  -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT 
> -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../xpdf 
> -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi 
> -I/usr/qt/3/include -o QOutputDev.o QOutputDev.cpp
> rm -f libqoutputdevices.a
> ar cqs libqoutputdevices.a QOutputDevPixmap.o QOutputDev.o
> make[2]: Leaving directory `/home/wolf/tmp/pdfedit-0.2.5/src/kpdf-kde-3.3.2'
> cd qsa && ./configure
> Using Qt library in /usr/qt/3.
> Building 2nd stage configure
> Qt meta object compiler
> moc: Invalid argument
> Usage:  moc [options] <header-file>
>         -o file    Write output to file rather than stdout
>         -f[file]   Force #include, optional file name
>         -p path    Path prefix for included file
>         -i         Do not generate an #include statement
>         -k         Do not stop on errors
>         -nw        Do not display warnings
>         -v         Display version of moc
> make[2]: *** [.moc/release-shared-mt/configutils.moc] Error 1
> make[1]: *** [qsa/Makefile.qsa] Error 1
> make[1]: Leaving directory `/home/wolf/tmp/pdfedit-0.2.5/src'
> make: *** [src] Error 2
> ----------------------------------------------------------------------
> 
> V souboru Makefile programu configure2 jsem nasel definici INCPATH, ktera
> odpovida zapisu pro C compiler, ale program "moc" tento zapis nedovoluje a
> proto selze. Neprogramuji s QT, takze nemuzu rict presne, ale jestli jsem to
> dobre pochopil, tak mi misto zapisu "-I/usr/qt/3/include/QtCore" melo byt
> "-p /usr/qt/3/include/QtCore". Pokud jsem ale zkusil udelat novou promennou
> INCPATHMOC a do ni zkopirovat hodnotu INCPATH a zmenit prepinace -I na -p, tak
> kompilace skoncila na chybe


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pdfedit-support mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to