Qt linking problems

Stuart Godwin tarriel at tpg.com.au
Fri Apr 21 07:19:58 UTC 2000


Hi,
    I am having problems getting a qt project to link,  the project
would compile properly from the command line, and appeared to compile in
kdevelop, however when I turned on debugging, ran configure, and rebuilt
it.
It couldn't find any Qstuff to link with.  I have
QTDIR=/usr/lib/qt-1.44  set  and have tried using
--with-qt-dir=/usr/lib/qt-1.44 and have made sure I removed
config.cache.  The program  now won't compile from the command line
either.
    Not to be beaten I untarred the original (which compiles fine) and
ran diff -r broken original and found the Makefile (generated by
kdevelop) now had two '/' at the end of whereever it used qtdir.  I
checked my enviroment and it doesn't have a trailing /,  and I didn't
use one with configure.
    As I am only a newbie I have done everything I know.  Is this
something I haven't set correctly, or a problem with kdevelop??
    So far I love kdevelop, and am currently looking for a project to
help with.  I have included an extract of the diff file which may
help??  I run redhat 6.1, kdevelop 1.1
                thanks
                    Stuart
--------
diff -r /home/stuart/projects/kstocks/kstocks-0.2.2/Makefile
/home/stuart/projects/kstocks-0.2.2/Makefile
111c111
< MOC = /usr/lib/qt-1.44/bin/moc
---
> MOC = /usr/lib/qt-1.44//bin/moc
121c121
< QT_INCLUDES = -I/usr/lib/qt-1.44/include
---
> QT_INCLUDES = -I/usr/lib/qt-1.44//include
135c135
< all_includes = -I/usr/include/kde -I/usr/lib/qt-1.44/include
-I/usr/X11R6/include
---
> all_includes = -I/usr/include/kde -I/usr/lib/qt-1.44//include
-I/usr/X11R6/include
154c154
< qt_includes = /usr/lib/qt-1.44/include
---
> qt_includes = /usr/lib/qt-1.44//include
diff -r /home/stuart/projects/kstocks/kstocks-0.2.2/config.cache
/home/stuart/projects/kstocks-0.2.2/config.cache
21c21
< ac_cv_have_qt=${ac_cv_have_qt='have_qt=yes
ac_qt_includes=/usr/lib/qt-1.44/include
ac_qt_libraries=/usr/lib/qt-1.44/lib'}
---
> ac_cv_have_qt=${ac_cv_have_qt='have_qt=yes
ac_qt_includes=/usr/lib/qt-1.44//include
ac_qt_libraries=/usr/lib/qt-1.44//lib'}
51c51
< kde_cv_path_moc=${kde_cv_path_moc='/usr/lib/qt-1.44/bin/moc'}
---
> kde_cv_path_moc=${kde_cv_path_moc='/usr/lib/qt-1.44//bin/moc'}
diff -r /home/stuart/projects/kstocks/kstocks-0.2.2/config.log
/home/stuart/projects/kstocks-0.2.2/config.log
8a9
> configure:729: gcc -E conftest.c
10a12
> configure:798: g++ -E  conftest.C >/dev/null 2>conftest.out
11a14,26
> configure:841: g++ -E  conftest.C >/dev/null 2>conftest.out
> configure:917: g++ -o conftest  -O0 -g3 -Wall        conftest.C -lXt
1>&5
> configure: In function `int main()':





More information about the KDevelop mailing list