[Précédent (date)] [Suivant (date)] [Précédent (sujet)] [Suivant (sujet)] [Index par date] [Index par sujet]

Instalation de mesa et 3dom



Voil'a je veux installe qt-2.0.2 mais je lis le install.txt et j y
comprend rien... quelqu un peut me faire un reply et m expliquer comment
l intalle

Pourquoi je veut l intalle, c est parceque je veux installe 3dom et
quand je fais ./configure il me dit ca:
----------------------------------------------------------------------------

[root@modemcable021 src]# ./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to make dependencies... c++ -MM -x c++
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for flex... flex
checking for flex++... flex++
checking for bison... bison
checking for ar... ar
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for rm... rm
checking for cp... cp
checking for mv... mv
checking for cat... cat
checking for touch... touch
checking for make... make
checking for moc... /usr/lib/qt-2.0.1/bin/moc
checking for rpk... no
checking how to run the C++ preprocessor... c++ -E
checking for vector.h... yes
checking if vector.h compiles... ok
checking for mstring.h... no
checking for string... yes
checking if string compiles... ok
checking for sin in -lm... yes
checking for main in -lXmu... yes
checking for glBegin in -lGL... no
checking for glBegin in -lMesaGL... no
checking wether we have found OpenGL libs... nope
checking for main in -lqt... yes
checking where GL/gl.h resides... not found
checking where qapp.h resides... /usr/lib/qt-2.0.1/include
checking for qapp.h... yes
checking for qgl.h... no
checking for list... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for malloc.h... yes
checking for unistd.h... yes
checking for nan.h... no
checking for ieeefp.h... no
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for getcwd... yes
checking for strdup... yes
checking for working const... yes
checking for inline... inline
checking for size_t... yes

I could not find (parts of) the OpenGL system.
This is a problem with your include files or with your libraries.
If you have OpenGL, it's not a bad idea to put the headerfiles
in a directory 'GL'.  That's common use, says wimpie. 3dom relies
on it.  If your OpenGL include files are not located in a GL directory,
make one in the 3dom src/ and link the files.
It could be that you installed the OpenGL libs/headers but that I can't
find them.  Tell me where to find them, please. (not yet implemented)
If you don't have OpenGL, you might want Mesa, get it from
http://www.ssec.wisc.edu/~brianp/Mesa.html

There are problems with your Qt installation ; one or more of the
following list is a problem :
- moc not found
- qt includes (qapp.h etc) not found
- libqt not found or it doesn't work
Please set the QTDIR environment variable.  3dom needs Qt.  If you did
not install Qt, get a tarball on http://www.troll.no/

I could not locate libqgl or the qgl include.
qgl is a part of qt, but is not included in most Qt rpms.  You can
ftp a copy of qgl from the trolls (http://www.troll.no/)
In the complete tarball, libqgl is located in the extensions dir
and must be compiled apart.
Since I could not find the OpenGL header files, it is very normal that
you get this error, even when libqgl and its headers are in place.
I must have found the GL headers before I can make a decent diagnose
for this.

configure: error: There are fatal errors.
A Config file could not be generated.
For more info, take a look at config.log
-------------------------------------------------------------------------------

D apres moi il faut que j installe qgl, libqgl, Qt et mesa...
Mais j ai dejja installe mesa et il me redit encore le meme message

Voile donc la fichier install.txt pour Qt que je ne comprend pas, si
quelqu un pouvait me faire un reply sur comment interprete ce texte...
-------------------------------------------------------------------------------

INSTALLING QT FOR X11


You may need to be root, depending on the permissions of the directories

where you choose to install Qt.


1.  Unpack the archive if you have not done so already:

        cd /usr/local
        gunzip qt-2.0.2.tar.gz  # uncompress the archive
        tar xf qt-2.0.2.tar     # unpack it

    This creates the directory /usr/local/qt-2.0.2 containing the
    files from the main archive.

    Rename qt-2.0.2 to qt (or make a symlink):

        mv qt-2.0.2 qt

    The rest of this file assumes that Qt is installed in /usr/local/qt.



2.  Set some environment variables in the file .profile (or .login,
    depending on your shell) in your home directory. (Create the
    file if it is not there already.)

        QTDIR                   - wherever you installed Qt
        PATH                    - to locate the moc program
        MANPATH                 - to access the Qt man pages
        LD_LIBRARY_PATH         - for the shared Qt library

    If you're using GNU g++, you may also want to set these:

        LIBRARY_PATH            - contains library file path
        CPLUS_INCLUDE_PATH      - contains C++ include file path

    This is done like this:

    In .profile (if your shell is bash, ksh, zsh or sh), add the
    following lines:

        QTDIR=/usr/local/qt
        PATH=$QTDIR/bin:$PATH
        if [ $MANPATH ]
        then
                MANPATH=$QTDIR/man:$MANPATH
        else
                MANPATH=$QTDIR/man
        fi
        if [ $LD_LIBRARY_PATH ]
        then
                LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
        else
                LD_LIBRARY_PATH=$QTDIR/lib
        fi
        LIBRARY_PATH=$LD_LIBRARY_PATH
        if [ $CPLUS_INCLUDE_PATH ]
        then
                CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH
        else
                CPLUS_INCLUDE_PATH=$QTDIR/include
        fi

        export QTDIR PATH MANPATH LD_LIBRARY_PATH LIBRARY_PATH
        export CPLUS_INCLUDE_PATH

    In .login (in case your shell is csh or tcsh), add the following
lines:

        if ( ! $?QTDIR ) then
            setenv QTDIR /usr/local/qt
        endif
        if ( $?PATH ) then
            setenv PATH $QTDIR/bin:$PATH
        else
            setenv PATH $QTDIR/bin
        endif
        if ( $?MANPATH ) then
            setenv MANPATH $QTDIR/man:$MANPATH
        else
            setenv MANPATH $QTDIR/man
        endif
        if ( $?LD_LIBRARY_PATH ) then
            setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
        else
            setenv LD_LIBRARY_PATH $QTDIR/lib
        endif
        if ( ! $?LIBRARY_PATH ) then
            setenv LIBRARY_PATH $LD_LIBRARY_PATH
        endif
        if ( $?CPLUS_INCLUDE_PATH ) then
            setenv CPLUS_INCLUDE_PATH $QTDIR/include:$CPLUS_INCLUDE_PATH

        else
            setenv CPLUS_INCLUDE_PATH $QTDIR/include
        endif


    After you have done this, you will need to login again, or
    re-source the profile before continuing, so that at least $QTDIR
    is set.  The installation will give an error message and not
    proceed otherwise.


3.  Compile the Qt library, the example programs and the tutorial.

    The qt directory contains a Makefile which compiles everything
    (including the examples and the tutorial) for all platforms.

    Type:

        ./configure

    This will configure the Qt library for your machine. Note that
    GIF support is turned off by default. Run ./configure -help
    to get a list of configuration options. Read PLATFORMS for a
    list of supported platforms.

    To create the library and compile all examples and the tutorial:

        make

    If your platform or compiler is not supported, read PORTING.  If it
    is supported but you have problems, see
http://www.troll.no/platforms/


4.  In very few cases you may need to run /sbin/ldconfig or something
    similar at this point if you are using shared libraries.

    If you have problems running the example programs, e.g. messages
like

         can't load library 'libqt.so.1'

    you probably need to put a reference to the qt library in a
    configuration file and run /sbin/ldconfig as root on your system.
    And don't forget to set LD_LIBRARY_PATH as explained in 2) above.


5.  The online HTML documentation is installed in /usr/local/qt/doc/
    The main page is /usr/local/qt/doc/index.html
    The man pages are installed in /usr/local/qt/man/


That's all.  Qt is now installed.
------------------------------------------------------------------

VOILA DONC SI QUELQU UN M AIDER SVP DITES LE MOI....