Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am installing a program which requires XScreenSaverExtension
I am gettion the following output on running ./configure
Verifying Qt 3.x Multithreaded (MT) build environment ... ok
Checking for Qt >= 3.1 ... yes
Checking for the XScreenSaver extension ... no
Error: need the XScreenSaver extension!
I really have no idea what this XScreenSaver Extension is. I tried finding a bit and came to know that it refers to libxss-dev
It would be very nice if someone could tell me how to obtain it ...
I use FC6 .
Thanks in advance ...
Last edited by crimsonflame123; 02-03-2007 at 01:48 PM.
Thank You Homey for helping
However I have both libXScrnSaver and libXScrnSaver-devel installed ( according to yum )
And i ran the same commands as you mentioned in your post and got the same output.
Still the output to the ./configure script is same --- no XScreenSaver extension (
so i suppose that libXScrnSaver-devel and libXss-dev are different things ...
Some applications will NOT compile in GCC 4.1. You can install GCC 3.2
to allow compiling applications which do not yet support GCC 4.1. Make sure
to have the following RPM's installed.
I had them the two packages installed when i was installing FC6. I suppose there shouldnt be any issues with it. Besides the program that I am trying to install (jabbin) was released on 21st January, 2007. I suppose then its safe to presume that gcc4.1 was used.
This script creates necessary configuration files to build/install.
Main options:
--prefix=[path] Base path for build/install. Default: /usr/local
--bindir=[path] Directory for binaries. Default: PREFIX/bin
--datadir=[path] Directory for data. Default: PREFIX/share
--qtdir=[path] Directory where Qt is installed.
--verbose Show extra configure output.
--help This help text.
EOT
}
# which/make detection adapted from Qt
which_command() {
OLD_HOME=$HOME
HOME=/dev/null
export HOME
WHICH=`which which 2>/dev/null`
if echo $WHICH | grep 'shell built-in command' >/dev/null 2>&1; then
WHICH=which
elif [ -z "$WHICH" ]; then
if which which >/dev/null 2>&1; then
WHICH=which
else
for a in /usr/ucb /usr/bin /bin /usr/local/bin; do
if [ -x $a/which ]; then
WHICH=$a/which
break;
fi
done
fi
fi
if [ -z "$WHICH" ]; then
OLD_IFS=$IFS
IFS=:
for a in $PATH; do
if [ -x $a/$1 ]; then
echo "$a/$1"
IFS=$OLD_IFS
export IFS
HOME=$OLD_HOME
export HOME
return 0
fi
done
IFS=$OLD_IFS
export IFS
else
a=`"$WHICH" "$1" 2>/dev/null`
if [ ! -z "$a" -a -x "$a" ]; then
echo "$a"
HOME=$OLD_HOME
export HOME
return 0
fi
fi
HOME=$OLD_HOME
export HOME
return 1
}
WHICH=which_command
# find a make command
if [ -z "$MAKE" ]; then
MAKE=
for mk in gmake make; do
if $WHICH $mk >/dev/null 2>&1; then
MAKE=`$WHICH $mk`
break
fi
done
if [ -z "$MAKE" ]; then
echo "You don't seem to have 'make' or 'gmake' in your PATH."
echo "Cannot proceed."
exit 1
fi
fi
show_qt_info() {
printf "Be sure you have a proper Qt 4.0 build environment set up. This means not\n"
printf "just Qt, but also a C++ compiler, a make tool, and any other packages\n"
printf "necessary for compiling C++ programs.\n"
printf "\n"
printf "If you are certain everything is installed, then it could be that Qt 4 is not\n"
printf "being recognized or that a different version of Qt is being detected by\n"
printf "mistake (for example, this could happen if \$QTDIR is pointing to a Qt 3\n"
printf "installation). At least one of the following conditions must be satisfied:\n"
printf "\n"
printf " 1) --qtdir is set to the location of Qt\n"
printf " 2) \$QTDIR is set to the location of Qt\n"
printf " 3) QtCore is in the pkg-config database\n"
printf " 4) qmake is in the \$PATH\n"
printf "\n"
printf "This script will use the first one it finds to be true, checked in the above\n"
printf "order. #3 and #4 are the recommended options. #1 and #2 are mainly for\n"
printf "overriding the system configuration.\n"
printf "\n"
}
while [ $# -gt 0 ]; do
case "$1" in
--prefix=*)
PREFIX="${1#--prefix=}"
shift
;;
if [ -z "$QTDIR" ]; then
if [ "$QC_DEBUG" = "Y" ]; then
echo \$QTDIR not set... trying to find Qt manually
fi
for p in /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
if [ -d "$p/mkspecs" ]; then
QTDIR=$p
break;
fi;
done
if [ -z "$QTDIR" ]; then
echo fail
echo
echo "Unable to find Qt 'mkspecs'. Perhaps you need to"
echo "install the Qt 3 development utilities. You may download"
echo "them either from the vendor of your operating system"
echo "or from http://www.trolltech.com/"
echo
echo "If you're sure you have the Qt development utilities"
echo "installed, you might try using the --qtdir option."
echo
exit 1;
fi
if [ ! -x "$QTDIR/bin/moc" ]; then
m=`which moc 2>/dev/null`
if [ ! -x "$m" ]; then
echo fail
echo
echo "We found Qt in $QTDIR, but we were unable to locate"
echo "the moc utility. It was not found in $QTDIR/bin"
echo "nor in PATH. This seems to be a very unusual setup."
echo "You might try using the --qtdir option."
echo
exit 1;
fi
qtpre=`echo $m | awk '{ n = index($0, "/bin/moc"); if (!n) { exit 1; } print substr($0, 0, n-1); exit 0; }' 2>/dev/null`
ret="$?"
if [ "$ret" != "0" ]; then
echo fail
echo
echo "We found Qt in $QTDIR, but the location of moc"
echo "($m) is not suitable for use with this build system."
echo "This is a VERY unusual and likely-broken setup. You"
echo "should contact the maintainer of your Qt package."
echo
exit 1;
fi
QTDIR=$qtpre
fi
fi
if [ ! -x "$QTDIR/bin/qmake" ]; then
if [ "$QC_DEBUG" = "Y" ]; then
echo Warning: qmake not in \$QTDIR/bin/qmake
echo trying to find it in \$PATH
fi
qm=`which qmake 2>/dev/null`
if [ -x "$qm" ]; then
if [ "$QC_DEBUG" = "Y" ]; then
echo qmake found in $qm
fi
else
echo fail
echo
echo Sorry, you seem to have a very unusual setup,
echo or I missdetected \$QTDIR=$QTDIR
echo
echo Please set \$QTDIR manually and make sure that
echo \$QTDIR/bin/qmake exists.
echo
exit 1;
fi
else
qm=$QTDIR/bin/qmake
fi
class Conf
{
public:
Conf() : vars(17)
{
list.setAutoDelete(true);
vars.setAutoDelete(true);
vars.insert("QMAKE_INCDIR_X11", new QString(X11_INC));
vars.insert("QMAKE_LIBDIR_X11", new QString(X11_LIBDIR));
vars.insert("QMAKE_LIBS_X11", new QString(X11_LIB));
vars.insert("QMAKE_CC", new QString(CC));
vars.insert("QMAKE_CXX", new QString(CXX));
ConfObjListIt it(list);
for(ConfObj *o; (o = it.current()); ++it) {
// if this was a disabled-by-default option, check if it was enabled
if(o->disabled) {
QString v = QString("QC_ENABLE_") + o->shortname();
if(getenv(v) != "Y")
continue;
}
// and the opposite?
else {
QString v = QString("QC_DISABLE_") + o->shortname();
if(getenv(v) == "Y")
continue;
}
//----------------------------------------------------------------------------
// main
//----------------------------------------------------------------------------
int main()
{
Conf *conf = new Conf;
ConfObj *o;
o = 0;
#include"modules_new.cpp"
if [ "$?" != "0" ]; then
rm -rf .qconftemp
echo fail
echo
echo "There was an error compiling 'conf'. Be sure you have a proper"
echo "Qt 3.x Multithreaded (MT) build environment set up. This"
echo "means not just Qt, but also a C++ compiler, the 'make' command,"
echo "and any other packages necessary to compile C++ programs."
echo "See conf.log for details."
if [ ! -f "$QTDIR/lib/libqt-mt.so.3" ]; then
echo
echo "One possible reason is that you don't have"
echo "libqt-mt.so.3 installed in $QTDIR/lib/."
fi
echo
exit 1;
fi
.qconftemp/conf
ret="$?"
if [ "$ret" = "1" ]; then
rm -rf .qconftemp
echo
exit 1;
else
if [ "$ret" != "0" ]; then
rm -rf .qconftemp
echo fail
echo
echo "Unexpected error launching 'conf'"
echo
exit 1;
fi
fi
rm -rf .qconftemp
if [ -x "./qcextra" ]; then
./qcextra
fi
# run qmake
$qm jabbin.pro
if [ "$?" != "0" ]; then
echo
exit 1;
fi
cat >Makefile.tmp <<EOT
export QTDIR = $QTDIR
export PATH = $QTDIR/bin:$PATH
EOT
cat Makefile >> Makefile.tmp
rm -f Makefile
cp -f Makefile.tmp Makefile
rm -f Makefile.tmp
echo
echo "Good, your configure finished. Now run 'make'."
echo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.