#353 Missing header file in h264 plugin

Stable_Branch
closed-fixed
nobody
OPAL (214)
5
2013-01-22
2012-06-02
No

I had to use the following sed command in order to get the 3.10.5 version of opal compiled in Chakra:

sed "/#include \"..\/common\/platform.h\"/a\ #include <unistd.h>" \ -i plugins/video/H.264/shared/x264wrap.h

I just appended “#include <unistd.h>” to that header file and I could build just fine. Before that, I was getting this:

make[4]: Entering directory `/chakra/apps/opal/src/opal-3.10.5/plugins/video/H.264/gpl'
[CC] shared/x264wrap.cxx
[CC] h264_helper.cxx
./shared/x264wrap.cxx: In function 'bool IsExecutable(const char*)':
./shared/x264wrap.cxx:500:32: error: 'access' was not declared in this scope
./shared/x264wrap.cxx: In destructor 'H264Encoder::~H264Encoder()':
./shared/x264wrap.cxx:516:26: error: 'close' was not declared in this scope
./shared/x264wrap.cxx:521:28: error: 'close' was not declared in this scope
./shared/x264wrap.cxx:525:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
./shared/x264wrap.cxx:527:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
./shared/x264wrap.cxx: In member function 'bool H264Encoder::OpenPipeAndExecute(void*, const char*)':
./shared/x264wrap.cxx:534:69: error: 'getpid' was not declared in this scope
./shared/x264wrap.cxx:559:16: error: 'fork' was not declared in this scope
./shared/x264wrap.cxx:567:67: error: 'execl' was not declared in this scope
./shared/x264wrap.cxx: In member function 'bool H264Encoder::ReadPipe(void*, size_t)':
./shared/x264wrap.cxx:591:48: error: 'read' was not declared in this scope
./shared/x264wrap.cxx:592:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
./shared/x264wrap.cxx:596:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
./shared/x264wrap.cxx: In member function 'bool H264Encoder::WritePipe(const void*, size_t)':
./shared/x264wrap.cxx:604:47: error: 'write' was not declared in this scope
./shared/x264wrap.cxx:605:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
./shared/x264wrap.cxx:609:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
./shared/x264wrap.cxx: In function 'bool IsExecutable(const char*)':
./shared/x264wrap.cxx:501:1: warning: control reaches end of non-void function [-Wreturn-type]
h264_helper.cxx: In function 'void ReadPipe(void*, unsigned int)':
h264_helper.cxx:128:33: error: 'read' was not declared in this scope
h264_helper.cxx: In function 'void WritePipe(const void*, unsigned int)':
h264_helper.cxx:138:32: error: 'write' was not declared in this scope
make[3]: *** [/chakra/apps/opal/src/opal-3.10.5/plugins/../lib_linux_x86_64/plugins/h264_x264/x264wrap.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[4]: *** [../../../..//lib_linux_x86_64/plugins/h264_x264_gpl/h264_helper.o] Error 1
make[4]: Leaving directory `/chakra/apps/opal/src/opal-3.10.5/plugins/video/H.264/gpl'
make[3]: *** [gpl] Error 2
make[3]: Leaving directory `/chakra/apps/opal/src/opal-3.10.5/plugins/video/H.264'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/chakra/apps/opal/src/opal-3.10.5/plugins'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/chakra/apps/opal/src/opal-3.10.5'
make: *** [opt] Error 2

Discussion

  • Eugen Dedu

    Eugen Dedu - 2012-06-02

    It was fixed after the release.

     
  • Robert Jongbloed

    This was already fixed two weeks ago in SVN revision 27690, can you please confirm?

     
  • Robert Jongbloed

    • status: open --> pending-fixed
     
  • Nobody/Anonymous

    Hello Nice wewebsite. Would you like to visitor publish in my own someday? If thats the case please tell me by means of e-mail or perhaps answer this kind of comment since We signed up for announcements and will know should you.
    <a href="http://www.mytripbook.com/index.php/trip/edit/67743/Dressnetwork-the-shop-for-acquiring-printed-prom-dresses" title="brand name">brand name</a>

     
  • Robert Jongbloed

    • status: pending-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks