qt-interest@trolltech.com
[Top] [All Lists]

Re: Compilation error on different target.

Subject: Re: Compilation error on different target.
From: prashant waman
Date: Tue, 8 Feb 2005 03:37:12 -0800 PST
hi,

> Your best bet is compiling Qt 3.3.3 on the target
> system.
   i have too many target machines and it is not
possible to compile QT 3.3.3 on each machin, which may
having different flavours of Linux.
 so is their any other way to make the code written in
QT 3.3.3 on Redhat Enterprise Linux ES, kernel
2.4.21-4.EL with gcc version 3.2.3 20030502 (Red Hat
Linux 3.2.3-20) such a that it will get compile on
different Linux platforms which may have different
versions of QT Libraries?

regards,

prashant 

--- Hans-Peter Jansen <hpj@xxxxxxxxx> wrote:

> On Tuesday 08 February 2005 08:51, prashant waman
> wrote:
> > Hi all,
> >     I developed project on Qt/X11 Version 3.3.3 on
> > Redhat Enterprise Linux ES, kernel 2.4.21-4.EL
> with
> > gcc version 3.2.3 20030502 (Red Hat Linux
> 3.2.3-20).
> >
> > now i am trying two ways to run program on SuSE
> 7.3:
> >
> > way 1) on SuSE 7.3 i am having gcc 2.95.3 and QT
> > 2.3.1, which doesn't have qmake, so how can i
> compile
> > my project on it?
> >
> > way 2) i compiled project on host then copied it
> to
> > target with dependent QT lib files.
> > Now while running i am getting the error that:
> >  file not found libstdc++.so
> 
> That one is a dead end, since the C++ ABI has
> changed.
> 
> > How can i run my applicationg on SuSE 7.3?
> 
> Your best bet is compiling Qt 3.3.3 on the target
> system. Just put it 
> in a sane path (e.g. -prefix /usr/lib/qt3) and run
> your app in such 
> an environment:
> 
> export QTDIR=/usr/lib/qt3
> export LD_LIBRARY_PATH=$QTDIR/lib
> export PATH=$QTDIR/bin:$PATH
> 
> Before running configure, I needed this patch on a
> similar task, since 
> the semantics of some cp options changed since
> then..
> 
> --- qmake/Makefile.unix~    Thu Jun  3 00:24:30 2004
> +++ qmake/Makefile.unix Sat Jan  8 01:26:50 2005
> @@ -46,9 +46,9 @@
>  
>  install: qmake
>     [ -d @QT_INSTALL_BINS@ ] || mkdir -p
> @QT_INSTALL_BINS@
> -   -cp -P -f @BUILD_PATH@/bin/qmake
> @QT_INSTALL_BINS@
> +   -cp -p -f @BUILD_PATH@/bin/qmake
> @QT_INSTALL_BINS@
>     [ -d @QT_INSTALL_DATA@ ] || mkdir -p
> @QT_INSTALL_DATA@
> -   -cp -R -P -f @SOURCE_PATH@/mkspecs
> @QT_INSTALL_DATA@
> +   -cp -r -p -f @SOURCE_PATH@/mkspecs
> @QT_INSTALL_DATA@
>  
>  clean::
>     rm -f $(OBJS) $(QOBJS)
> 
> Good luck,
> Pete
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>