old-www/HOWTO/Nvidia-OpenGL-Configuration/instqt.html

263 lines
4.5 KiB
HTML

<HTML
><HEAD
><TITLE
>Install Qt</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Nvidia OpenGL Configuration mini-HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Install Software"
HREF="install.html"><LINK
REL="PREVIOUS"
TITLE="Install Nvidia OpenGL drivers"
HREF="instnvidia.html"><LINK
REL="NEXT"
TITLE="Install GLUT 3.7 Distribution (optional)"
HREF="instglut.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nvidia OpenGL Configuration mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="instnvidia.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Install Software</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="instglut.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTQT"
>3.5. Install Qt</A
></H1
><P
> <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>&#13; # for Qt, there is no "make install", just place the source
# where you want it to live:
cd /usr/local
tar -xvzf qt-x11-2.2.4.tar.gz
ln -s qt-2.2.4 qt
cd qt
</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
> Read the <TT
CLASS="FILENAME"
>INSTALL</TT
> file about environment variables to setup before you try to
build <SPAN
CLASS="PRODUCTNAME"
>Qt</SPAN
>. You can add the following to <TT
CLASS="FILENAME"
>/etc/profile</TT
>:
<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>&#13; QTDIR=/usr/local/qt
PATH=$PATH:$QTDIR/bin
MANPATH=$MANPATH:$QTDIR/man
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
export QTDIR PATH MANPATH LD_LIBRARY_PATH
</PRE
></FONT
></TD
></TR
></TABLE
>
<TT
CLASS="ENVAR"
>LD_LIBRARY_PATH</TT
> is optional if you include an entry in
<TT
CLASS="FILENAME"
>/etc/ld.so.conf</TT
> for
the library path:
<TT
CLASS="FILENAME"
>/usr/local/qt/lib</TT
>,
then run <B
CLASS="COMMAND"
>ldconfig</B
> to update
<TT
CLASS="FILENAME"
>/etc/ld.so.cache</TT
>.
</P
><P
> <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>&#13; # note: configure has some options you can try, to see them
# see ./configure --help
./configure
# NOTE: when you run make as suggested on the next line, you may
# encounter a make error that halts the build IF you run make
# from outside X. The program $QTDIR/bin/uic (the User Interface Compiler)
# may Segmentation Fault when run from a Linux console. You can run
# "startx" and use the twm (tiny window manager) and xterm (or whatever you
# might have setup for X) to run the rest of the Qt build. If for some
# reason twm is not even available, then you can run "XFree86 &#38;", use
# "CTRL-ALT-F1" to get to a console, start an xterm as
# "xterm -display localhost:0.0 &#38;", then switch back to X with "ALT-F7".
make
# Only for old versions of Qt before 2.1.0 or so ...
# compile the opengl extension
# Note that in qt 2.2.0 on, the OpenGL support has been moved out of extensions
# and is now a standard part of the library that is installed if configure
# finds OpenGL installed on your system. If you were to not want OpenGL
# support in Qt, you'd have to pass the -no-opengl option to configure.
cd extensions/opengl/src
# Check the Makefile and ensure there are not Mesa references.
make
ldconfig
cd ../examples
# Try compiling and running the examples.
</PRE
></FONT
></TD
></TR
></TABLE
>
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="instnvidia.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="instglut.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Install Nvidia OpenGL drivers</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="install.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Install GLUT 3.7 Distribution (optional)</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>