Re: Fw: QT-Frage !

From: erkaN <Selamsana(at)uni.de>
Date: Thu, 7 Jun 2001 09:37:37 +0000

Hallo Roland, hallo liste

ok, wir vergessen root, machen unsere versuche mit einem User erkaN
der User "erkaN" hat den Shell "csh" und die umgebungsvariablen hab ich so ge
ändert:
/home/erkaN/.cvhrc
-------------------------
setenv QTDIR /usr/X11R6/include/qt2
setenv PATH /usr/X11R6/bin:$PATH
setenv MANPATH /usr/X11R6/man
setenv LD_LIBRARY_PATH /usr/X11R6/lib
----------------------------

Ich musste QTDIR so ändert, sonst gibt mir dauernt Fehlermeldung, dass er die
Headers nicht finden kann !

 
> > setenv QTDIR /usr/X11R6
> > setenv PATH $QTDIR/bin:$PATH
> > setenv MANPATH $QTDIR/man
> > setenv LD_LIBRARY_PATH $QTDIR/lib
>
> Bei den letzten beiden solltest Du vielleicht nicht so ausschliesslich
> und restriktiv sein. Mach es einfach analog $PATH.

Ich weis es nicht was du mit "analog $PATH" meinst aber, ich hab für user
erkaN die Variablen so wie oben geändert. Wenn das falsch ist, sag mir bitte
, wie ich ändern soll

> > dann ändere ich QTDIR ( manuel )
> >
> > setenv QTDIR /usr/X11R6/include/qt2
>
> Das halte ich persönlich nicht für richtig. Du kannst es natürlich so
> machen, dann stelle aber bitte auch sicher, dass Bibliotheken trotzdem
> in /usr/X11R6/lib gesucht werden und nicht etwa in
> /usr/X11R6/include/qt2/lib. So manch' ein configure-Skript bietet
> dafür ein separates --with-extra-libdir=<...> an. Manches halt nicht.

Ich glaube die Variablen wie ich oben eingesetzt habe ist richtig. ! Dann
bracuhe ich keine die Option --with-extra-libdir=<..> einzusetzen.

> In dem configure-Skript und natürlich letztlich in den zu
> generierenden Makefiles. Ansatz:
>
> % perl -pi -e 's/-lqt/-lqt2/g' configure **/Makefile.in
>

Das ist gute Idee, alle -lqt in -lqt2 zu ändern und hab ich gemacht.....

Juppeeeee,,, noch ein Schritt weiter:

Ergebnis: ( auf dem Monitor )
------------------------
checking for killpg in -lucb... no
checking for Qt... libraries /usr/X11R6/lib, headers /usr/X11R6/include/qt2
checking if Qt compiles without flags... yes
checking for moc... not found
configure: error: No Qt meta object compiler (moc) found!
Please check whether you installed Qt correctly.
You need to have a running moc binary.
configure tried to run and the test didn't
succeed. If configure shouldn't have tried this one, set
the environment variable MOC to the right one before running
configure.
------------------------------
MOC = = ein Object compiler ???

In der config.log sieht man folgendes, aber ich kann nicht interpretieren:
---------------------------------
configure:3598: checking for Qt
tried /usr/X11R6/include/qt2/lib
tried /usr/X11R6/include/qt2
tried /usr/lib/qt/lib
configure:3722: g++ -o conftest -O2 -I/usr/X11R6/include/qt2
-I/usr/X11R6/include -L/usr/X11R6/lib -L/usr/X11R6/lib conftest.C -lqt2
-lSM -lICE -lXext -lX11 1>&5
configure:3779: checking if Qt compiles without flags
configure:3839: g++ -o conftest -O2 -I/usr/X11R6/include/qt2
-L/usr/X11R6/lib conftest.C -lqt2 -lXext -lX11 1>&5
configure:3899: checking for moc
----------------------------------

Ich glaube , er hat Headers und Librarires bestanden ....:-))

Was ist MOC ? Welche umbegungsvariblen hat er zu tun ?

>
> So schlimm ist das alles nicht. Und hier liegt auch eine der
> Existensberechtigungen für so Sachen wie die Ports-Collection. Wenn Du
> Dein tolles Programm dann fertig kompiliert und getestet hast, kannst
> Du ja mal einen Blick auf <http://www.de.freebsd.org/porters-handbook/>
> werfen. Dann haben vielleicht auch andere mal etwas von Deinen
> Bemühungen.
>

Was ich compilern verscuhe, ist nicht so eine tolle Programm... Es ist nur
eine irgend ein programm.... Vom Internet hab ich zufälligeweise 5 Programme
untergeladen..wolte nur probieren, wie man unter Freebsd so eine source
compilert...

Natürlich schreibe ich alles gleich auf, was und wie ich gemacht habe....:-))
Die Seite werde ich auf JEDENFALL vor dem Auge behalten, und wenn ich
schaffe, werde ich meine Erfahrungen mit QT und FreeBSD als Beispiel
schicken.....

2.Versuch mit irgend einem anderen Program:

Ergebnis auf dem Monitor:
............................................
checking for libXext... yes
checking for libpng... no
checking for libjpeg6b... no
checking for libjpeg... no
configure: warning:
There is an installation error in jpeg support. You seem to have only one
of either the headers _or_ the libraries installed. You may need to either
provide correct --with-extra-... options, or the development package of
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
Disabling JPEG support.
 
checking for Qt... libraries NONE, headers /usr/X11R6/include/qt2
checking if Qt compiles without flags... yes
checking for moc... not found
configure: error: No Qt meta object compiler (moc) found!
Please check whether you installed Qt correctly.
You need to have a running moc binary.
configure tried to run and the test didn't
succeed. If configure shouldn't have tried this one, set
the environment variable MOC to the right one before running
configure.
........................................................
muss ich diese JPEG support geben ? ok ich lade die Source unter
ftp://ftp.uu.net/graphics/jpeg/
aber welche Dateien brauche ich für QT-Support ?

Und wieder dieser MOC !!

Ergebnis in der Datei config.log
---------------------------
checking for libXext... yes
tried /usr/lib/qt/lib
tried /usr/lib/qt
tried /usr/X11R6/lib
tried /usr/lib
tried /usr/local/qt/lib
tried /usr/X11R6/lib
configure:5438: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
-fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin
-I/usr/X11R6/include/qt2 -I/usr/X11R6/include -LNONE -L/usr/X11R6/lib
conftest.C -lqt2 -lXext -lX11 -lSM -lICE 1>&5
conftest.C: In function `int main()':
conftest.C:20: warning: unused variable `int magnolia'
conftest.C:15: warning: unused variable `class QStringList * t'
configure:5496: checking if Qt compiles without flags
configure:5577: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
-fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
-Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin
-I/usr/X11R6/include/qt2 -L/usr/X11R6/lib conftest.C -lqt2 -lXext -lX11
-lSM -lICE -lXext -lX11 1>&5
conftest.C: In function `int main()':
conftest.C:20: warning: unused variable `int magnolia'
conftest.C:15: warning: unused variable `class QStringList * t'
configure:5646: checking for moc
------------------------------------------

Ich höre mit offenen ohren ihre vorschläge zu !

danke

-- 
erkaN
--
The linux philosophy is laugh in the face of danger...
L. Torvalds
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 07 Jun 2001 - 09:30:06 CEST

search this site