Sébastien Ducoulombier wrote:
> Hello,
>
>
> Ilyes wrote:
>> The issue is with mpegencoder.cpp, line 94 and not ffmpeg (just make
>> sure you have the latest release for your distribution). So it's about
>> the not recommended usage of goto. You could just replace that piece
>> of code with an if then else equivalent clause. I think that somebody
>> sent me a patch about this but I still didn't find the time to merge
>> it in LiveCam... I'll fix it asap.
>
> Attached is a patch that fixes this issue.
>
> --
> Sébastien
Hit this error:-
g++ -DHAVE_CONFIG_H -I. -I/usr/include/qt3 -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 `/ftp/jan08/LIVECAM/livecam/trunk'
make: *** [all] Error 2
v4l2enum.h
==========
#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.
--
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel