Hi Sid,

I don't have GCC 4.3 yet. I'm running Fedora 8 and I'll be able to get 
to the newer GCC when Fedora 9 will be released (pretty soon). The only 
difference I could sort out is that I have -I/usr/lib/qt-3.3/include 
instead of -I/usr/lib/qt3//include that gets passed to g++ during the 
compilation. So may be you got the wrong version of Qt (it should be the 
latest Qt3 release) or may be your Qt is badly configured. configure 
gets both the include files path and the library path from a utility 
called pkg-config. Try to run:

$ pkg-config --cflags qt-mt

from a shell. You should get something like:

-DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
-D_REENTRANT -I/usr/lib/qt-3.3/include

Here is the output of my LiveCam build:

[EMAIL PROTECTED] livecam]$ g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada 
--enable-java-awt=gtk --disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic 
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

[EMAIL PROTECTED] livecam]$ make
make  all-am
make[1]: Entering directory `/home/ilyes/livecam'

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o 
main.cpp
mv -f .deps/main.Tpo .deps/main.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT encoder.o -MD -MP -MF .deps/encoder.Tpo -c -o 
encoder.o encoder.cpp
mv -f .deps/encoder.Tpo .deps/encoder.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT jpegencoder.o -MD -MP -MF 
.deps/jpegencoder.Tpo -c -o jpegencoder.o jpegencoder.cpp
mv -f .deps/jpegencoder.Tpo .deps/jpegencoder.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT mpegencoder.o -MD -MP -MF 
.deps/mpegencoder.Tpo -c -o mpegencoder.o mpegencoder.cpp
/usr/include/ffmpeg/avcodec.h:2248: warning: ‘ImgReSampleContext’ is 
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2242)
/usr/include/ffmpeg/avcodec.h:2258: warning: ‘ImgReSampleContext’ is 
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2242)
mv -f .deps/mpegencoder.Tpo .deps/mpegencoder.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2enum.o -MD -MP -MF .deps/v4l2enum.Tpo -c 
-o v4l2enum.o v4l2enum.cpp
mv -f .deps/v4l2enum.Tpo .deps/v4l2enum.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2widget.o -MD -MP -MF .deps/v4l2widget.Tpo 
-c -o v4l2widget.o v4l2widget.cpp
/usr/include/ffmpeg/avcodec.h:2248: warning: ‘ImgReSampleContext’ is 
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2242)
/usr/include/ffmpeg/avcodec.h:2258: warning: ‘ImgReSampleContext’ is 
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2242)
mv -f .deps/v4l2widget.Tpo .deps/v4l2widget.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2controls.o -MD -MP -MF 
.deps/v4l2controls.Tpo -c -o v4l2controls.o v4l2controls.cpp
mv -f .deps/v4l2controls.Tpo .deps/v4l2controls.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2viewer.o -MD -MP -MF .deps/v4l2viewer.Tpo 
-c -o v4l2viewer.o v4l2viewer.cpp
mv -f .deps/v4l2viewer.Tpo .deps/v4l2viewer.Po

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2pitch.o -MD -MP -MF .deps/v4l2pitch.Tpo -c 
-o v4l2pitch.o v4l2pitch.cpp
mv -f .deps/v4l2pitch.Tpo .deps/v4l2pitch.Po
moc v4l2enum.h -o v4l2enum.moc.cpp

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2enum.moc.o -MD -MP -MF 
.deps/v4l2enum.moc.Tpo -c -o v4l2enum.moc.o v4l2enum.moc.cpp
mv -f .deps/v4l2enum.moc.Tpo .deps/v4l2enum.moc.Po
moc v4l2widget.h -o v4l2widget.moc.cpp

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2widget.moc.o -MD -MP -MF 
.deps/v4l2widget.moc.Tpo -c -o v4l2widget.moc.o v4l2widget.moc.cpp
mv -f .deps/v4l2widget.moc.Tpo .deps/v4l2widget.moc.Po
moc v4l2controls.h -o v4l2controls.moc.cpp

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2controls.moc.o -MD -MP -MF 
.deps/v4l2controls.moc.Tpo -c -o v4l2controls.moc.o v4l2controls.moc.cpp
mv -f .deps/v4l2controls.moc.Tpo .deps/v4l2controls.moc.Po
moc v4l2viewer.h -o v4l2viewer.moc.cpp

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2viewer.moc.o -MD -MP -MF 
.deps/v4l2viewer.moc.Tpo -c -o v4l2viewer.moc.o v4l2viewer.moc.cpp
mv -f .deps/v4l2viewer.moc.Tpo .deps/v4l2viewer.moc.Po
moc v4l2pitch.h -o v4l2pitch.moc.cpp

g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
-I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
-DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt-3.3/include 
-I/usr/include/ffmpeg -MT v4l2pitch.moc.o -MD -MP -MF 
.deps/v4l2pitch.moc.Tpo -c -o v4l2pitch.moc.o v4l2pitch.moc.cpp
mv -f .deps/v4l2pitch.moc.Tpo .deps/v4l2pitch.moc.Po

g++  -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL 
-DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
-D_REENTRANT -I/usr/lib/qt-3.3/include  -I/usr/include/ffmpeg   -o 
livecam main.o encoder.o jpegencoder.o mpegencoder.o v4l2enum.o 
v4l2widget.o v4l2controls.o v4l2viewer.o v4l2pitch.o v4l2enum.moc.o 
v4l2widget.moc.o v4l2controls.moc.o v4l2viewer.moc.o v4l2pitch.moc.o 
-lSDL -lpthread   -L/usr/lib/qt-3.3/lib -lqt-mt -lmng -ljpeg -lpng -lz 
-lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype 
-lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread  -lavcodec -lavutil
make[1]: Leaving directory `/home/ilyes/livecam'

Regards,
Ilyes Gouta.

Sid Boyce wrote:
> openSUSE 11.0 Alpha3, gcc version 4.3.1 20080409 (prerelease) 
> [gcc-4_3-branch revision 134138] (SUSE Linux), qt3-3.3.8b-31.
> 
> tindog:/home/lancelot/ftp/jan08/LIVECAM/livecam/trunk # make
> make  all-am
> make[1]: Entering directory `/home/lancelot/ftp/jan08/LIVECAM/livecam/trunk'
> g++ -DHAVE_CONFIG_H -I.     -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT 
> -I/usr/include/SDL   -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG 
> -DQT_THREAD_SUPPORT -D_REENTRANT -I/usr/lib/qt3//include 
> -I/usr/include/ffmpeg -MT v4l2enum.moc.o -MD -MP -MF 
> .deps/v4l2enum.moc.Tpo -c -o v4l2enum.moc.o v4l2enum.moc.cpp
> v4l2enum.moc.cpp:12:2: error: #error "The header file 'v4l2enum.h' 
> doesn't include <QObject>."
> v4l2enum.moc.cpp:20: error: expected constructor, destructor, or type 
> conversion before ‘static’
> v4l2enum.moc.cpp:37: error: ‘const QMetaObject 
> V4L2Enum::staticMetaObject’ is not a static member of ‘class V4L2Enum’
> v4l2enum.moc.cpp:37: error: variable ‘const QMetaObject 
> V4L2Enum::staticMetaObject’ has initializer but incomplete type
> v4l2enum.moc.cpp:39: error: ‘qt_meta_data_V4L2Enum’ was not declared in 
> this scope
> v4l2enum.moc.cpp:42: error: prototype for ‘const QMetaObject* 
> V4L2Enum::metaObject() const’ does not match any in class ‘V4L2Enum’
> v4l2enum.h:34: error: candidate is: virtual QMetaObject* 
> V4L2Enum::metaObject() const
> v4l2enum.moc.cpp:47: error: no ‘void* V4L2Enum::qt_metacast(const 
> char*)’ member function declared in class ‘V4L2Enum’
> v4l2enum.moc.cpp:55: error: ‘int V4L2Enum::qt_metacall’ is not a static 
> member of ‘class V4L2Enum’
> v4l2enum.moc.cpp:55: error: incomplete type ‘QMetaObject’ used in nested 
> name specifier
> v4l2enum.moc.cpp:55: error: expected primary-expression before ‘int’
> v4l2enum.moc.cpp:55: error: expected primary-expression before ‘void’
> v4l2enum.moc.cpp:55: error: initializer expression list treated as 
> compound expression
> v4l2enum.moc.cpp:56: error: expected ‘,’ or ‘;’ before ‘{’ token
> v4l2enum.moc.cpp:62: error: expected constructor, destructor, or type 
> conversion at end of input
> make[1]: *** [v4l2enum.moc.o] Error 1
> make[1]: Leaving directory `/home/lancelot/ftp/jan08/LIVECAM/livecam/trunk'
> make: *** [all] Error 2
> 
> Regards
> Sid.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel

Reply via email to