Page 1 of 1

update library of livemedia

Posted: 21 Sep 2005 11:51
by eagleliu
hi, i am an newer for vlc. i have succeeded in compiling the source code of vlc in cygwin. now,
i need to update livedotcom. I have set the configure option --with-livedotcom-tree=/home/zxx/live(the location of my livedotcom).
config is successful, but during 'make', there are many errors such as:
/home/zxx/live/liveMedia/libliveMedia.a(.text+0x112d3):MP3StreamState.cpp: undefined reference to`___getreent'
/home/zxx/live/liveMedia/libliveMedia.a(.text+0x113ce):MP3StreamState.cpp: undefined reference to `_gettimeofday
/home/zxx/live/liveMedia/libliveMedia.a(.text+0x354ee):RTSPClient.cpp: undefined reference to `_connect'
/home/zxx/live/liveMedia/libliveMedia.a(.text+0x3e0e5):OnDemandServerMediaSubsession.cpp: undefined reference to `_gethostname'


i do not know how to solve such problems, i hope someone kind will help me.

:(

Posted: 21 Sep 2005 17:12
by The DJ
Which genMakefiles did you run?

Posted: 22 Sep 2005 03:37
by eagleliu
i downloaded the source code of the liberary from http://www.live.com. i found the genMakefiles just in the downloaded fold.
i runed the genMakefiles for the os of cygwin.
./genMakefiles cygwin

the content of genMakefiles is listed as following:
#!/bin/sh

usage() {
echo "Usage: $0 <os-platform>"
exit 1
}

if [ $# -ne 1 ]
then
usage $*
fi

cd liveMedia
/bin/rm -f Makefile
cat Makefile.head ../config.$1 Makefile.tail > Makefile
chmod a-w Makefile

cd ../groupsock
/bin/rm -f Makefile
cat Makefile.head ../config.$1 Makefile.tail > Makefile
chmod a-w Makefile

cd ../UsageEnvironment
/bin/rm -f Makefile
cat Makefile.head ../config.$1 Makefile.tail > Makefile
chmod a-w Makefile

cd ../BasicUsageEnvironment
/bin/rm -f Makefile
cat Makefile.head ../config.$1 Makefile.tail > Makefile
chmod a-w Makefile

#cd ../testProgs
#/bin/rm -f Makefile
#cat Makefile.head ../config.$1 Makefile.tail > Makefile
#chmod a-w Makefile

cd ..
/bin/rm -f Makefile
cat Makefile.head config.$1 Makefile.tail > Makefile
chmod a-w Makefile