Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Robert Osfield
Hi David,

Which version of ffmpeg plugin and OS are you compiling on?

Robert.

On Wed, Apr 15, 2009 at 9:45 AM, david bruyer davidbru...@gmail.com wrote:

 Hi,

 I'm trying to compile the last version of OSG-dev but I have a build error
 at the make :


 Code:
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:90:
 erreur: 'ENOMEM' was not declared in this scope
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:91:
 erreur: 'EILSEQ' was not declared in this scope
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:92:
 erreur: 'ENOSYS' was not declared in this scope
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:93:
 erreur: 'ENOENT' was not declared in this scope
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:
 In member function 'bool osgFFmpeg::FFmpegDecoder::readNextPacketNormal()':
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:286:
 attention : comparaison entre des expressions entières signée et non signée
 /home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:293:
 attention : comparaison entre des expressions entières signée et non signée
 make[2]: ***
 [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o] Erreur 1
 make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Erreur
 2
 make: *** [all] Erreur 2
 error 4: compilation has encountered problems...



 Someone can help me to build OSG-dev correctly ?

 Thanks in advance.
 ...
 David

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=10239#10239





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread david bruyer
hi robert,

I'm compiling OSG-dev on a Mandriva 2009.0


Code:
[da...@mandrake ~]$ uname -a
Linux Mandrake 2.6.22.19-desktop-2mdv #1 SMP Mon May 5 20:55:05 EDT 2008 i686 
Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
[da...@mandrake ~]$



And i'm using the 0.4.9 version of ffmpeg
=


Code:
[da...@mandrake ~]$ rpm -qa | grep ffmpeg
libffmpeg-devel-0.4.9-3.pre1.14161.1.1plf2009.0
libffmpeg51-0.4.9-3.pre1.14161.1.1plf2009.0
ffmpeg-0.4.9-3.pre1.14161.1.1plf2009.0
[da...@mandrake ~]$



Thanks for your interest
David

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10430#10430





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Robert Osfield
Hi David,

Did the changes that the compiler and J-S suggested work?

Robert.

On Mon, Apr 20, 2009 at 2:03 PM, david bruyer davidbru...@gmail.com wrote:

 hi robert,

 I'm compiling OSG-dev on a Mandriva 2009.0


 Code:
 [da...@mandrake ~]$ uname -a
 Linux Mandrake 2.6.22.19-desktop-2mdv #1 SMP Mon May 5 20:55:05 EDT 2008
 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
 [da...@mandrake ~]$



 And i'm using the 0.4.9 version of ffmpeg
 =


 Code:
 [da...@mandrake ~]$ rpm -qa | grep ffmpeg
 libffmpeg-devel-0.4.9-3.pre1.14161.1.1plf2009.0
 libffmpeg51-0.4.9-3.pre1.14161.1.1plf2009.0
 ffmpeg-0.4.9-3.pre1.14161.1.1plf2009.0
 [da...@mandrake ~]$



 Thanks for your interest
 David

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=10430#10430





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread David Callu
Hi all

same issue for me,

# uname -a
Linux mrburns 2.6.27.21-170.2.56.fc10.i686.PAE #1 SMP Mon Mar 23 23:24:26
EDT 2009 i686 i686 i386 GNU/Linux
# gcc --version
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)


Update ffmpeg from 0.49 to 0.5 solve the problem.

HTH
David

2009/4/20 Robert Osfield robert.osfi...@gmail.com

 Hi David,

 Did the changes that the compiler and J-S suggested work?

 Robert.


 On Mon, Apr 20, 2009 at 2:03 PM, david bruyer davidbru...@gmail.comwrote:

 hi robert,

 I'm compiling OSG-dev on a Mandriva 2009.0


 Code:
 [da...@mandrake ~]$ uname -a
 Linux Mandrake 2.6.22.19-desktop-2mdv #1 SMP Mon May 5 20:55:05 EDT 2008
 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
 [da...@mandrake ~]$



 And i'm using the 0.4.9 version of ffmpeg
 =


 Code:
 [da...@mandrake ~]$ rpm -qa | grep ffmpeg
 libffmpeg-devel-0.4.9-3.pre1.14161.1.1plf2009.0
 libffmpeg51-0.4.9-3.pre1.14161.1.1plf2009.0
 ffmpeg-0.4.9-3.pre1.14161.1.1plf2009.0
 [da...@mandrake ~]$



 Thanks for your interest
 David

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=10430#10430





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Jean-Sébastien Guay

Hello David,


Well, this file still contain this parameter, i can't put again...
Can i try to remove it ?


Just remove the #ifdef WIN32 and accompanying #endif and try to 
recompile... Then the error defines should be included by #include 
errno.h.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Robert Osfield
On Mon, Apr 20, 2009 at 3:01 PM, david bruyer davidbru...@gmail.com wrote:
 Hi robert,

 I can't find the FFMpegHeaders.h to include the #include errno.h 
 parameter...
 Si I can not try to compile it again...

 Can you tell me where to find that file ?

OpenSceneGraph/src/osgPlugins/ffmpeg/

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread david bruyer
Do i have to modify it this way ? (sorry but i never make programmation...)



Code:
#ifndef HEADER_GUARD_FFMPEG_HEADERS_H
#define HEADER_GUARD_FFMPEG_HEADERS_H


extern C
{
#define __STDC_CONSTANT_MACROS
#include errno.h// for error codes defined in avformat.h
#include stdint.h
#include avcodec.h
#include avformat.h
#include avdevice.h

#ifdef USE_SWSCALE
#include swscale.h
#endif

}



#endif // HEADER_GUARD_FFMPEG_HEADERS_H



--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10449#10449





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread david bruyer
Hi,

I removed the #ifdef WIN32 and accompanying #endif and everything is fine 
now. It's solved now.

Thanks for your help

FFMpegHeaders.hpp


Code:
#ifndef HEADER_GUARD_FFMPEG_HEADERS_H
#define HEADER_GUARD_FFMPEG_HEADERS_H


extern C
{
#define __STDC_CONSTANT_MACROS
#include errno.h// for error codes defined in avformat.h
#include stdint.h
#include avcodec.h
#include avformat.h
#include avdevice.h

#ifdef USE_SWSCALE
#include swscale.h
#endif

}



#endif // HEADER_GUARD_FFMPEG_HEADERS_H



--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10460#10460





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Jean-Sébastien Guay

Hi Robert, David,


I removed the #ifdef WIN32 and accompanying #endif and everything is fine 
now. It's solved now.


Robert, how safe is this change on all platforms? I think errno.h is 
standard, but would including it here introduce too much namespace 
pollution?


If not, then can you please check in this change? I had originally 
guarded the inclusion so it would only be included on Win32 on the 
assumption that other platforms didn't need it (as you didn't, 
apparently) but it seems from this report that other compilers need it 
too (even different versions of g++ on Linux don't seem to agree). Thanks.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Robert Osfield
On 4/20/09, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote:
 Hi Robert, David,

 I removed the #ifdef WIN32 and accompanying #endif and everything is
 fine now. It's solved now.

 Robert, how safe is this change on all platforms? I think errno.h is
 standard, but would including it here introduce too much namespace
 pollution?

It's just a header in a plugin, so it'll only pollute the plugin
source files so not a great issue.


 If not, then can you please check in this change? I had originally
 guarded the inclusion so it would only be included on Win32 on the
 assumption that other platforms didn't need it (as you didn't,
 apparently) but it seems from this report that other compilers need it
 too (even different versions of g++ on Linux don't seem to agree). Thanks.

I'm currently doing a test install of the Kubuntu 9.04 release
candidate, so don't yet have a dev environment setup.

I am in fact working right now from the LiveCD, no hard disk has been
touched at all, save for slow app loading due to being pulled from the
CD drive things are working really smoothly.  Internet connection
worked right out of box too.

Time for put this baby on a hard disk and install the OSG dev env.
I'll email the list once everything is installed and the compile fix
checked in - this will be a good test for how smoothly the whole
process goes.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Jean-Sébastien Guay

Hi Robert,


It's just a header in a plugin, so it'll only pollute the plugin
source files so not a great issue.


Agreed.


I'm currently doing a test install of the Kubuntu 9.04 release
candidate, so don't yet have a dev environment setup.


No problem, no rush. Just so others can avoid David's build errors.

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-20 Thread Robert Osfield
Hi David et. al,

On Mon, Apr 20, 2009 at 4:50 PM, Robert Osfield
robert.osfi...@gmail.com wrote:
 Time for put this baby on a hard disk and install the OSG dev env.
 I'll email the list once everything is installed and the compile fix
 checked in - this will be a good test for how smoothly the whole
 process goes.

After installing the OS to the hard drive I disappeared off to have
dinner and going cycling, now back and have got dev tools and OSG
installed and compiled.  I've removed the #ifdef WIN32 and things
still build for me under Kubuntu 9.04 and  I'm not expect platform
issues due to this change so the change is now checked in to
svn/trunk.

David as a double check could you remove your FFmpegHeaders.hpp and do
an svn update to pull in my changed file to double check that it
works.

Also out of curiosity why as a non developer are you using the
svn/trunk version of the OSG rather than the stable 2.8.0 release?
2.8.0 should be fine with FlightGear, but perhaps there are problems
lurking that I'm aware of.. if so please point me in the right
direction so I can make sure that 2.8.1 addresses these.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-15 Thread david bruyer
Hi,

I'm trying to compile the last version of OSG-dev but I have a build error at 
the make :


Code:
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:90:
 erreur: 'ENOMEM' was not declared in this scope
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:91:
 erreur: 'EILSEQ' was not declared in this scope
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:92:
 erreur: 'ENOSYS' was not declared in this scope
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:93:
 erreur: 'ENOENT' was not declared in this scope
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:
 In member function 'bool osgFFmpeg::FFmpegDecoder::readNextPacketNormal()':
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:286:
 attention : comparaison entre des expressions entières signée et non signée
/home/player/FlightGear-dev/build/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:293:
 attention : comparaison entre des expressions entières signée et non signée
make[2]: *** 
[src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o] Erreur 1
make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Erreur 2
make: *** [all] Erreur 2
error 4: compilation has encountered problems...



Someone can help me to build OSG-dev correctly ?

Thanks in advance.
... 
David

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10239#10239





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] make : Build error on FFmpegDecoder.cpp while compiling OSG-dev

2009-04-15 Thread david bruyer
Bonjour Jean-Sébastien,

Merci pour ta prise en compte.

David

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10255#10255





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org