Author Topic: Cross compiling cpp(gcc-cross-2.95)-QT library not found  (Read 5662 times)

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #15 on: June 14, 2004, 04:39:59 am »
this is it :

echo $ac_n \"checking location of Qt header files\"\"... $ac_c\" 1]&6
echo \"configure:1138: checking location of Qt header files\" ]&5
if eval \"test \"`echo \'$\'\'{\'ac_cv_qt_inc\'+set}\'`\" = set\"; then
  echo $ac_n \"(cached) $ac_c\" 1]&6
else
 
  if test -f $QTDIR/include/qglobal.h; then
    ac_cv_qt_inc=$QTDIR/include
  elif test -f /usr/lib/qt3/include/qglobal.h; then
    ac_cv_qt_inc=/usr/lib/qt3/include
  elif test -f /usr/local/include/qt/qglobal.h; then
    ac_cv_qt_inc=/usr/local/include/qt
  elif test -f /usr/include/qt/qglobal.h; then
    ac_cv_qt_inc=/usr/include/qt
  elif test -f /usr/share/qt3/include/qglobal.h; then
    ac_cv_qt_inc=/usr/share/qt3/include
  elif test -f /usr/include/qglobal.h; then
    ac_cv_qt_inc=/usr/include
  fi
fi

i have no idea whta QTDIR is ....

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #16 on: June 14, 2004, 05:05:08 am »
It would help if you would describe what you are doing, i.e. what application you want to compile against what set of libraries for what target platform.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #17 on: June 14, 2004, 05:06:53 am »
QTDIR is an environment variable. Environment variables are maintained by the shell (the program that manages the command line). You can list all environment variables and their values if you type

env

at the command line. You need to set QTDIR to the location of your Qt files. So if you installed Qt in, for example, /usr/share/qt2.3.3 you should type

QTDIR=/usr/share/qt2.3.3
export QTDIR
./configure

at the command line.

If you don\'t know where your Qt is installed, try this command:

ipkg files qt-devel

It will list all files in the qt-devel package - all of them will be under one directory (and you should set that as QTDIR). If the command tells you that qt-devel is not installed then... well, you need to install qt-devel.

Alternatively, you can do

find / -name qglobal.h

which will find all files named \"qglobal.h\" on your Zaurus. You can then set QTDIR so that configure finds that file.

Hope this helps.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #18 on: June 14, 2004, 09:31:52 pm »
Yeah, it looks like it can\'t find the header file where your program expects them to be.

This problem happens (for example) when the developer uses Distro-X to create the program and you use Distro-Y to try to build it (SuSE and Redhat users had/have this problem quite often).

The reason is because Distro-X will install its Qtopia header files in one location and Distro-Y will install the exact same files somewhere else!

Proof that the farm is indeed run by lunatics.


John
C860, SMC Model SMC2642W, various sized memory cards