Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Qt 4.2.2 Can't Compile Test Application
QT 4.2.2 opensource version is cross-compiled for arm-linux.
But when compiling a test application using qmake.......the CC & GCC used are gcc & g++ (not the target compilers).
To circumvent the problem, i edited the makefile and explicitly mentioned armv5l-linux-gcc & armv5l-linux-g++.
for LIBS line mentioned of in the Makefile is:
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -lqt-mt -lXext -lX11 -lm
for which -lqt-mt , -lXext , -lX11 , -lm all return error saying "incompatible version" on running make.
-------------------------------------------------------------------------------------------
also..
I'm not able to set the QTDIR directory properly. Inspite of setting this variable to /home/john/QTPHONE/qtopia-opensource-4.2.2 (this is where the qt4.2.2 source is present) the QTDIR variable reverts back to /usr/lib/qt-3.3
how do i correct this?
pls help.
set the QTDIR directory properly..i got this problem..too..