Re: Problem in compiling using RH9

Cam <[email protected]> Mon, 20 Oct 2003 22:15:20 +0100
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <[email protected]>
Roy,
cc Matthew

>     Sorry i forgot to attach the error messages to the mails, now they are.

very helpful :)

I'm not sure what's going on with tmake, it sounds like you're not 
linking in all the libraries that you need. But that's very generic 
advice from someone who's not very Qtopia literate (me).

For qmake the compiler can't find a library in the paths given:

g++  -o example main.o example.o examplebase.o moc_example.o 
moc_examplebase.o
-L/opt/Qtopia/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: cannot find -lqt-mt

I think you might be able to fix this with a different qmake.conf file. 
The one I last used had (for example):

QMAKE_LIBS_QT           = -lqte
QMAKE_LIBS_QT_THREAD    = -lqte-mt


In both cases you can change what the compiler is doing in the makefile, 
by changing the q/tmake.conf file that it's built with. So root out your 
conf files and experiment a bit. I imagine that part of the problem is 
trying to use the newer qtopia-1.7 instead of the original qtopia-1.5.

Hope that helps, if not ask again :)

-Cam