Ilyes Gouta wrote:
> 
> Hi Sid,
> 
> OK, one last check.. Could you do:
> 
> $ which moc
> 
> in a shell window?
> 
> You should get /usr/lib/qt-3.3/bin/moc. If your system has Qt4 installed 
> , which comes with its own moc utility, and PATH is constructed so that 
> Qt4's moc gets resolved when the build system calls it, then it may be 
> the root of the issue you're reporting.
> 
> Regards,
> Ilyes Gouta.
> 
OK, that was the problem, it was the moc from qt4, renamed it and  "ln 
-s /usr/lib64/qt3/bin/moc /usr/bin/". Strange that this has never before 
surfaced while building other apps that used qt3, must do "export 
MOC=/usr/libb64/qt3/bin/moc". It gets past that and I got some undefined 
errors, fixed by adding  -ljpeg to Makefile.

Thanks and Regards
Sid.

> Sid Boyce wrote:
>> Ilyes Gouta wrote:
>>>
>>> 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
>>>
>> tindog:/home/lancelot/ftp/jan08/LIVECAM/livecam # pkg-config --cflags 
>> qt-mt
>> -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT 
>> -D_REENTRANT -I/usr/lib/qt3//include
>>
>> This is the latest qt version from openSuSE 11.0 Alpha2/Beta1. Unless 
>> openSUSE uses different configure options in their build that would 
>> cause this to happen.
>> # rpm -qi qt3
>> Name : qt3 Relocations: (not relocatable)
>> Version : 3.3.8b Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
>> Release : 31 Build Date: Sun 13 Apr 2008 02:39:22 BST
>> Install Date: Wed 16 Apr 2008 12:45:55 BST Build Host: paradies.suse.de
>> Group : System/Libraries Source RPM: qt3-3.3.8b-31.src.rpm
>> Size : 10781195 License: GPL v2 only; GPL v3 only; THE Q PUBLIC 
>> LICENSE (QPL)
>> Signature : DSA/SHA1, Sun 13 Apr 2008 02:57:46 BST, Key ID 
>> a84edae89c800aca
>> Packager : http://bugs.opensuse.org
>> URL : http://www.trolltech.com/
>> Summary : A library for developing applications with graphical user 
>> interfaces
>> Description :
>> # g++ -v
>> Using built-in specs.
>> Target: x86_64-suse-linux
>> Configured with: ../configure --prefix=/usr 
>> --with-local-prefix=/usr/local --infodir=/usr/share/info 
>> --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 
>> --enable-languages=c,c++,objc,fortran,obj-c++,java,ada 
>> --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 
>> --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ 
>> --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 
>> --with-system-zlib --enable-__cxa_atexit 
>> --enable-libstdcxx-allocator=new --disable-libstdcxx-pch 
>> --program-suffix=-4.3 --enable-version-specific-runtime-libs 
>> --enable-linux-futex --without-system-libunwind --with-cpu=generic 
>> --build=x86_64-suse-linux
>> Thread model: posix
>> gcc version 4.3.1 20080409 (prerelease) [gcc-4_3-branch revision 
>> 134138] (SUSE Linux)
>>
>> Suspect problem in the declaration of Q_OBJECT
>>
>> tindog:/home/lancelot/ftp/jan08/LIVECAM/livecam/trunk # less v4l2enum.h
>> /*************************************************************************** 
>>
>> * Copyright (C) 2006 by Ilyes Gouta *
>> * [EMAIL PROTECTED] *
>> * *
>> * This program is free software; you can redistribute it and/or modify *
>> * it under the terms of the GNU General Public License as published by *
>> * the Free Software Foundation; either version 2 of the License, or *
>> * (at your option) any later version. *
>> * *
>> * This program is distributed in the hope that it will be useful, *
>> * but WITHOUT ANY WARRANTY; without even the implied warranty of *
>> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
>> * GNU General Public License for more details. *
>> * *
>> * You should have received a copy of the GNU General Public License *
>> * along with this program; if not, write to the *
>> * Free Software Foundation, Inc., *
>> * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
>>
>> ***************************************************************************/ 
>>
>>
>> #ifndef _V4L2ENUM_H_
>> #define _V4L2ENUM_H_
>>
>> #include <qdialog.h>
>> #include <qlistbox.h>
>> #include <qlabel.h>
>>
>> #undef __STRICT_ANSI__
>> #include <linux/types.h>
>> #include <linux/videodev2.h>
>>
>> class V4L2Enum : public QDialog
>> {
>> Q_OBJECT
>> public:
>> V4L2Enum(QWidget* parent);
>> ~V4L2Enum();
>>
>> bool GetPreferredFormat(int fd, struct v4l2_format *format);
>>
>> private:
>> QListBox *m_List;
>> QPushButton *m_OK;
>> QLabel *m_Label;
>> };
>>
>> #endif
>>
>> Regards
>> Sid.
>>
>>> 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.
>>>
>>>
>>
>>
> 
> 


-- 
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support 
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks


-------------------------------------------------------------------------
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