Re: QT Problem

Justin Piszcz <[email protected]>
Newsgroups gmane.comp.multimedia.avifile.general
Message-ID <Pine.LNX.4.56.0307221234510.29367@p500>
i think it is your test progrma does not work with GCC-3.3?

configure:10103: checking for main in -lqt-mt
configure:10118: gcc -o conftest -g -O0 -mcpu=i686 -march=i686 -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe  -Wall -Wno-unused  conftest.c -lqt-mt
-L/app/qt-3.1.2/lib -lnsl -ldl  -lpthread 1>&5
configure:10209: checking for Qt library (version >= 200)
configure:10255: c++ -o conftest -g -O0 -mcpu=i686 -march=i686 -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe -I/app/qt-3.1.2/include  -Wall -Wno-unused  conftest.C
-L/app/qt-3.1.2/lib -lqt-mt  -L/usr/X11R6/lib  -lSM -lICE -lXinerama -lXv
-lXxf86vm -lXxf86dga -lXi  -lXext -lX11  -lnsl -ldl  -lpthread 1>&5
In file included from /vapp/include/c++/3.3/cstdlib:52,
                 from /vapp/include/c++/3.3/bits/stl_algobase.h:67,
                 from /vapp/include/c++/3.3/memory:54,
                 from /vapp/include/c++/3.3/string:48,
                 from /app/qt-3.1.2/include/qstring.h:46,
                 from configure:10238:
/usr/include/stdlib.h:610: error: declaration of `void exit(int) throw ()'
   throws different exceptions
configure:10233: error: than previous declaration `void exit(int)'
configure: failed program was:
#line 10231 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
#endif

        /*#include <qapplication.h>*/
        /*#include <qmovie.h>*/
        #include <qstring.h>
        #include <qglobal.h>
        #include <stdio.h>

        int main(int argc, char* argv[]) {
        /*QApplication a( argc, argv );*/
        /*QMovie m; int s = m.speed();*/
        QString qa("test");
        unsigned int v = QT_VERSION;
        FILE* f = fopen("conf.qttest", "w");
        if (v > 400) v = (((v >> 16) & 0xff) * 100) + (((v >> 8) & 0xff) *
10) + (v & 0xff);
        if (f) fprintf(f, "%d\n", v);
        return 0;
        }

configure:10288: c++ -o conftest -g -O0 -mcpu=i686 -march=i686 -ffast-math
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -pipe -I/app/qt-3.1.2/include  -Wall -Wno-unused  conftest.C
-L/app/qt-3.1.2/lib -lqt-mt  -L/usr/X11R6/lib  -lSM -lICE -lXinerama -lXv
-lXxf86vm -lXxf86dga -lXi  -lXext -lX11  -lnsl -ldl  -lpthread 1>&5


On Tue, 22 Jul 2003, Zdenek Kabelac wrote:

> On Tue, Jul 22, 2003 at 09:41:17AM -0400, Justin Piszcz wrote:
> > FYI: Earlier versions of avifile compile fine, some new QT test is
> > failing?
> >
> >
> > checking for DPMSQueryExtension in -lXdpms... no
> > checking for main in -lqt-mt... yes
> > checking for Qt library (version >= 200)... no
> > configure: warning:
> > *** Could not run Qt test program, checking why...
> > *** Configure discovered/uses these settings:
> > *** Qt libraries: /app/qt-3.1.2/lib
> > *** Qt headers: /app/qt-3.1.2/include
> > *** Note:
> > ***    Compilation of Qt utilities also might be turned off (if not
> > wanted).
> > ***    If you are experiencing problems which will not be described
> > ***    bellow please report then on '[email protected]' mailing list
> > ***    (i.e. some misdetection or omitted path)
> >
> > configure: error:
> > *** Qt test program compiled, but did not run. This usually means
> > *** that the run-time linker is not finding Qt library or finding the
> > wrong
> > *** version of Qt. If it is not finding Qt, you will need to set your
> > *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
> > *** to the installed location  Also, make sure you have run ldconfig if
> > that
> > *** is required on your system.
> > ***
> > *** If you have an old version installed, it is best to remove it,
> > although
> > *** you may also be able to get things to work by modifying
> > LD_LIBRARY_PATH
> > ***
> > *** i.e. bash> export LD_LIBRARY_PATH=/app/qt-3.1.2/lib:$LD_LIBRARY_PATH
> > war@war:~/avifile-0.7-0.7.38$
>
> you should probably check the config.log to see where could
> be the problem - most probably some symbol is unresolved
> or something like that - I think it should be easy to see from
> this file.
>
> --
>   .''`.
>  : :' :    Zdenek Kabelac  kabi@{debian.org, users.sf.net, fi.muni.cz}
>  `. `'           Debian GNU/Linux maintainer - www.debian.{org,cz}
>    `-
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.