Talk:Building on Windows

From Gnash Project Wiki

Jump to: navigation, search

network.cpp:1616: error: `ioctlSocket' was not declared in this scope

NOTE : As of 15th of March 2010, Gnash is not using libnet but Cygnal does.

Still working on /LIBNET/NETWORK.CPP bug. Below is the output of make.

make  all-recursive
make[1]: Entering directory `/home/creek23/gnash-0.8.7'
Making all in libltdl
make[2]: Entering directory `/home/creek23/gnash-0.8.7/libltdl'
make  all-am
make[3]: Entering directory `/home/creek23/gnash-0.8.7/libltdl'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/creek23/gnash-0.8.7/libltdl'
make[2]: Leaving directory `/home/creek23/gnash-0.8.7/libltdl'
Making all in libbase
make[2]: Entering directory `/home/creek23/gnash-0.8.7/libbase'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/creek23/gnash-0.8.7/libbase'
Making all in libamf
make[2]: Entering directory `/home/creek23/gnash-0.8.7/libamf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/creek23/gnash-0.8.7/libamf'
Making all in libnet
make[2]: Entering directory `/home/creek23/gnash-0.8.7/libnet'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../
libamf -I../libbase -I../libcore -DLOCALEDIR=\"/usr/local/share/locale\"   -I/us
r/local/include  -mthreads     -g -O2     -W     -Wall     -Wcast-align     -Wca
st-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunuse
d      -MT network.lo -MD -MP -MF .deps/network.Tpo -c -o network.lo network.cpp

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libamf -I../libbase -I../li
bcore -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -mthreads -g
-O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtua
l-dtor -Wunused -MT network.lo -MD -MP -MF .deps/network.Tpo -c network.cpp  -DD
LL_EXPORT -DPIC -o .libs/network.o
network.cpp: In member function `int gnash::Network::newConnection(bool, int)':
network.cpp:312: warning: comparison between signed and unsigned integer expressions
network.cpp: In member function `bool gnash::Network::connectSocket(const std::s
tring&)':
network.cpp:434: warning: comparison between signed and unsigned integer expressions
network.cpp: In member function `bool gnash::Network::createClient(const std::st
ring&, short int)':
network.cpp:594: warning: comparison between signed and unsigned integer expressions
network.cpp: In member function `int gnash::Network::readNet(int, uint8_t*, int, int)':
network.cpp:892: warning: comparison between signed and unsigned integer expressions
network.cpp: In member function `int gnash::Network::writeNet(int, const uint8_t
*, int, int)':
network.cpp:1083: warning: comparison between signed and unsigned integer expressions
network.cpp: In member function `fd_set gnash::Network::waitForNetData(std::vect
or<int, std::allocator<int> >&)':
network.cpp:1398: warning: comparison between signed and unsigned integer expressions
network.cpp: In member function `size_t gnash::Network::sniffBytesReady(int)':
network.cpp:1606: warning: comparison between signed and unsigned integer expressions
network.cpp:1616: error: `ioctlSocket' was not declared in this scope
network.cpp:1616: warning: unused variable 'ioctlSocket'
../libbase/getclocktime.hpp: At global scope:
../libbase/getclocktime.hpp:46: warning: 'int clock_gettime(int, timespec*)' def
ined but not used
network.cpp:1629: warning: 'void gnash::cntrlc_handler(int)' defined but not used
make[2]: *** [network.lo] Error 1
make[2]: Leaving directory `/home/creek23/gnash-0.8.7/libnet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/creek23/gnash-0.8.7'
make: *** [all] Error 2

ffmpeg/AudioDecoderFfmpeg.cpp:544: error: `avcodec_decode_audio' was not declared in this scope

Still working on /LIBMEDIA/FFMPEG/AUDIODECODERFFMPEG.CPP bug. Below is the output of make.

 /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -I.
./libbase -mthreads   -mms-bitfields -IC:/msys/1.0/include/glib-2.0 -IC:/msys/1.
0/lib/glib-2.0/include    -I/usr/local/include        -I/usr/local/include/libav
codec     -g -O2     -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer
-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -MT libgnashme
dia_la-MediaParserFfmpeg.lo -MD -MP -MF .deps/libgnashmedia_la-MediaParserFfmpeg
.Tpo -c -o libgnashmedia_la-MediaParserFfmpeg.lo `test -f 'ffmpeg/MediaParserFfm
peg.cpp' || echo './'`ffmpeg/MediaParserFfmpeg.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libbase -mthreads -mms-bitf
ields -IC:/msys/1.0/include/glib-2.0 -IC:/msys/1.0/lib/glib-2.0/include -I/usr/l
ocal/include -I/usr/local/include/libavcodec -g -O2 -W -Wall -Wcast-align -Wcast
-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -MT libgnashmedi
a_la-MediaParserFfmpeg.lo -MD -MP -MF .deps/libgnashmedia_la-MediaParserFfmpeg.T
po -c ffmpeg/MediaParserFfmpeg.cpp  -DDLL_EXPORT -DPIC -o .libs/libgnashmedia_la
-MediaParserFfmpeg.o
ffmpeg/MediaParserFfmpeg.cpp: In member function `virtual bool gnash::media::ffm
peg::MediaParserFfmpeg::seek(uint32_t&)':
ffmpeg/MediaParserFfmpeg.cpp:134: warning: converting to `unsigned int' from `double'
ffmpeg/MediaParserFfmpeg.cpp: In member function `void gnash::media::ffmpeg::Med
iaParserFfmpeg::initializeParser()':
ffmpeg/MediaParserFfmpeg.cpp:357: warning: `av_alloc_format_context' is deprecat
ed (declared at C:/msys/1.0/local/include/libavformat/avformat.h:904)
ffmpeg/MediaParserFfmpeg.cpp:357: warning: `av_alloc_format_context' is deprecat
ed (declared at C:/msys/1.0/local/include/libavformat/avformat.h:904)
ffmpeg/MediaParserFfmpeg.cpp:453: warning: converting to `uint64_t' from `double'
ffmpeg/MediaParserFfmpeg.cpp:485: warning: converting to `uint64_t' from `double'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/
bits/stl_uninitialized.h: In member function `void std::vector<_Tp, _Alloc>::_M_
fill_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_
Tp, _Alloc> >, size_t, const _Tp&) [with _Tp = boost::io::detail::format_item<ch
ar, std::char_traits<char>, std::allocator<char> >, _Alloc = std::allocator<boos
t::io::detail::format_item<char, std::char_traits<char>, std::allocator<char> >>]':
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/
bits/stl_uninitialized.h:82: warning: '__cur' might be used uninitialized in this function
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/
bits/stl_uninitialized.h:82: warning: '__cur' might be used uninitialized in this function
mv -f .deps/libgnashmedia_la-MediaParserFfmpeg.Tpo .deps/libgnashmedia_la-MediaParserFfmpeg.Plo
/bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -I.
./libbase -mthreads   -mms-bitfields -IC:/msys/1.0/include/glib-2.0 -IC:/msys/1.
0/lib/glib-2.0/include    -I/usr/local/include        -I/usr/local/include/libav
codec     -g -O2     -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer
-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -MT libgnashme
dia_la-AudioDecoderFfmpeg.lo -MD -MP -MF .deps/libgnashmedia_la-AudioDecoderFfmp
eg.Tpo -c -o libgnashmedia_la-AudioDecoderFfmpeg.lo `test -f 'ffmpeg/AudioDecode
rFfmpeg.cpp' || echo './'`ffmpeg/AudioDecoderFfmpeg.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libbase -mthreads -mms-bitf
ields -IC:/msys/1.0/include/glib-2.0 -IC:/msys/1.0/lib/glib-2.0/include -I/usr/l
ocal/include -I/usr/local/include/libavcodec -g -O2 -W -Wall -Wcast-align -Wcast
-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -MT libgnashmedi
a_la-AudioDecoderFfmpeg.lo -MD -MP -MF .deps/libgnashmedia_la-AudioDecoderFfmpeg
.Tpo -c ffmpeg/AudioDecoderFfmpeg.cpp  -DDLL_EXPORT -DPIC -o .libs/libgnashmedia
_la-AudioDecoderFfmpeg.o
ffmpeg/AudioDecoderFfmpeg.cpp: In member function `uint8_t* gnash::media::ffmpeg
::AudioDecoderFfmpeg::decodeFrame(const uint8_t*, uint32_t, uint32_t&)':
ffmpeg/AudioDecoderFfmpeg.cpp:544: error: `avcodec_decode_audio' was not declared in this scope
ffmpeg/AudioDecoderFfmpeg.cpp:582: warning: converting to `int' from `double'
ffmpeg/AudioDecoderFfmpeg.cpp:544: warning: unused variable 'avcodec_decode_audio'
ffmpeg/AudioDecoderFfmpeg.cpp: In member function `int gnash::media::ffmpeg::Aud
ioDecoderFfmpeg::parseInput(const uint8_t*, uint32_t, const uint8_t**, int*)':
ffmpeg/AudioDecoderFfmpeg.cpp:647: warning: `av_parser_parse' is deprecated (dec
lared at C:/msys/1.0/local/include/libavcodec/avcodec.h:3670)
ffmpeg/AudioDecoderFfmpeg.cpp:653: warning: `av_parser_parse' is deprecated (dec
lared at C:/msys/1.0/local/include/libavcodec/avcodec.h:3670)
make[2]: *** [libgnashmedia_la-AudioDecoderFfmpeg.lo] Error 1
make[2]: Leaving directory `/home/creek23/gnash-0.8.7/libmedia'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/creek23/gnash-0.8.7'
make: *** [all] Error 2