[Live-devel] Is there any C edition of Live Media

SpaceLi spacelis at gmail.com
Sat Jul 22 22:42:40 PDT 2006


Thank you for reply, but it still doesn't work.

I modified the file config.armlinux as
CROSSCOMPILE = nios2-linux
and then genMakefile and make.
but, it said that "C++ compiler not installed on this system"

and nios2-linux doesn't include g++ from nios2wiki, and there isn't
either in which I downloaded from
http://tinderbox.x86.dev.gentoo.org/cross-x86/
It seems very difficult to me to port it to nios2 with uclinux.
Could you give me some advice?

But nios2 ide 5.1 on winxp has g++ compiler, I don't know wether live
will work with it, because there is some thing with the stdlibc++, it
telled me that _Atomic_word doesn't name a type. I checked the include
path, seemed correct.
Should I change the lib?



This is the directories:
│   iomanip
│   ios
│   iosfwd
│   iostream
│   istream
│   iterator
├───backward
│       iomanip.h
│       iostream.h
│       istream.h
│       ostream.h
│       strstream
├───bits
│       allocator.h
│       atomicity.h
│       atomicity.h.bak
│       basic_string.h
│
├───debug
│       debug.h
└───nios2-elf
    └───bits
            atomic_word.h
            basic_file.h
            c++allocator.h
            c++config.h
            c++io.h
            c++locale.h
            codecvt_specializations.h
            ctype_base.h
            ctype_inline.h
            ctype_noninline.h
            gthr-default.h
            gthr-posix.h
            gthr-single.h
            gthr.h
            messages_members.h
            os_defines.h
            time_members.h
_____________________________

#nios2-elf/bits/atomic_word.h
#ifndef _GLIBCXX_ATOMIC_WORD_H
#define _GLIBCXX_ATOMIC_WORD_H	1


typedef int _Atomic_word;
#endif
+++++++++++++++++++++++++++
#atomicity.h
#ifndef _GLIBCXX_ATOMICITY_H
#define _GLIBCXX_ATOMICITY_H	1

#include <bits/atomic_word.h>
namespace __gnu_cxx
{
  _Atomic_word
  __attribute__ ((__unused__))
  __exchange_and_add(volatile _Atomic_word* __mem, int __val);

  void
  __attribute__ ((__unused__))
  __atomic_add(volatile _Atomic_word* __mem, int __val);
} // namespace __gnu_cxx

#endif
++++++++++++++++++++++++++++++++
#basic_string.h
#ifndef _BASIC_STRING_H
#define _BASIC_STRING_H 1

#pragma GCC system_header

#include <bits/atomicity.h>
#include <debug/debug.h>

namespace std
{
  template<typename _CharT, typename _Traits, typename _Alloc>
    class basic_string
    {
      // Types:
    public:
      typedef _Traits			                     traits_type;
      typedef typename _Traits::char_type                         value_type;
      typedef _Alloc		                                allocator_type;
      typedef typename _Alloc::size_type		    size_type;
      typedef typename _Alloc::difference_type	difference_type;
      typedef typename _Alloc::reference		    reference;
      typedef typename _Alloc::const_reference	const_reference;
      typedef typename _Alloc::pointer	                        pointer;
      typedef typename _Alloc::const_pointer		    const_pointer;
      typedef __gnu_cxx::__normal_iterator<pointer, basic_string>  iterator;
      typedef __gnu_cxx::__normal_iterator<const_pointer,
basic_string>                  const_iterator;

      typedef std::reverse_iterator<const_iterator>	const_reverse_iterator;
      typedef std::reverse_iterator<iterator>		    reverse_iterator;
    private:
      struct _Rep_base
      {
	size_type		_M_length;
	size_type		_M_capacity;
	_Atomic_word	_M_refcount;
	//int _M_refcount;
      };
#.................
_____________________________
the error messages are:

nios2-elf-c++ -c -Iinclude -I../UsageEnvironment/include -I. -I/cygdrive/c/alter
a/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0/incl
ude  -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -Wall -Wno-deprecated -DBSD
=1   -fexceptions Groupsock.cpp
In file included from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/
ios_base.h:45,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/ios:4
9,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/backw
ard/strstream:53,
                 from Groupsock.cpp:30:
/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.
uClibc_1.4.0/include/bits/atomicity.h:25:2: warning: #warning stub atomicity fun
ctions are not really atomic
In file included from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/strin
g:53,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/
locale_classes.h:47,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/
ios_base.h:47,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/ios:4
9,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/backw
ard/strstream:53,
                 from Groupsock.cpp:30:
/cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/
gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/basic_string.h:147: er
ror: `_Atomic_word' does not name a type
/cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/
gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/basic_string.h: In mem
ber function `void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_dispose(
const _Alloc&)':
/cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/
gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/basic_string.h:215: er
ror: `__exchange_and_add' is not a member of `__gnu_cxx'
/cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/
gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/basic_string.h: In mem
ber function `_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_refco
py()':
/cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/
gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/basic_string.h:226: er
ror: `__atomic_add' is not a member of `__gnu_cxx'
In file included from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/bits/
ios_base.h:47,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/ios:4
9,
                 from /cygdrive/c/altera/kits/nios2_51/bin/nios2-gnutools/H-i686
-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../../include/c++/3.4.1/backw
ard/strstream:53,

On 7/23/06, Ross Finlayson <finlayson at live555.com> wrote:
> >I want port Live Media to uClinux, but C++ language seems not
> >supported
>
> I don't believe this.  Note that the GNU compiler (gcc) automatically
> includes C++ support, so if you have GCC, you should have G++ also.
>
> >. So could somebody send me the C edition of Live Media
>
> Sorry there is none - nor will there ever be one.  This is the 21st
> Century.  There is no longer any excuse for anyone supporting C, but
> not C++.
> --
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>



More information about the live-devel mailing list