[x3d-public] Titania in Mac

Gonzalo Fernandez Ordas g.fer.ordas at unicyber.co.uk
Tue Mar 7 11:21:00 PST 2017


Guys,

First, the good news.
* Titania WORKS using VirtualBox in Mac (I have done it with
Xenial/Ubuntu) and I haven't found a single problem
* Titania does NOT work using Parallels. (that would be related to the
graphical libraries but as those are proprietary better to use
VirtualBox instead)(neither good or bad as there is an option there)

Now, the not too good news:

I have invested a few days trying to compile Titania on Mac and I
cracked part of it BUT I got some compilation issues related with a few
modules and (maybe Holger? + someone else ) I would need help/tips as I
am not that experience coding CPP so I haven't seen this error before
and it for sure compiles in Debian/Ubuntu but it doesn't on Mac and I am
using similar compilers (from homebrew) + similar
configurations/environmental variables (it also means all the previous
parts of the application have successfully compiled.. I just did a
couple of changes but it does all right))

so:

* libtitania-peaseblossom

----
  CXX      Titania/PeaseBlossom/Objects/Object.lo
  CXX      Titania/PeaseBlossom/Objects/pbFunction.lo
Titania/PeaseBlossom/Objects/pbFunction.cpp: In member function 'void
titania::pb::pbFunction::addProperties()':
Titania/PeaseBlossom/Objects/pbFunction.cpp:93:41: error: conversion
from 'const size_t {aka const long unsigned int}' to 'titania::pb::var'
is ambiguous
  addOwnProperty ("length", length , NONE);
                                         ^
In file included from
Titania/PeaseBlossom/Objects/../Objects/pbObject.h:60:0,
                 from Titania/PeaseBlossom/Objects/pbFunction.h:54,
                 from Titania/PeaseBlossom/Objects/pbFunction.cpp:51:
Titania/PeaseBlossom/Objects/../Objects/../Primitives/var.h:142:2: note:
candidate: constexpr titania::pb::var::var(double)
  var (const double number) :
  ^
Titania/PeaseBlossom/Objects/../Objects/../Primitives/var.h:136:2: note:
candidate: constexpr titania::pb::var::var(uint64_t)
  var (const uint64_t integer) :
  ^
Titania/PeaseBlossom/Objects/../Objects/../Primitives/var.h:130:2: note:
candidate: constexpr titania::pb::var::var(int64_t)
  var (const int64_t integer) :
  ^
Titania/PeaseBlossom/Objects/../Objects/../Primitives/var.h:124:2: note:
candidate: constexpr titania::pb::var::var(uint32_t)
  var (const uint32_t integer) :
  ^
Titania/PeaseBlossom/Objects/../Objects/../Primitives/var.h:118:2: note:
candidate: constexpr titania::pb::var::var(int32_t)
  var (const int32_t integer) :
  ^
Titania/PeaseBlossom/Objects/../Objects/../Primitives/var.h:110:2: note:
candidate: constexpr titania::pb::var::var(bool)
  var (const bool boolean) :
  ^
In file included from Titania/PeaseBlossom/Objects/pbFunction.h:54:0,
                 from Titania/PeaseBlossom/Objects/pbFunction.cpp:51:
Titania/PeaseBlossom/Objects/../Objects/pbObject.h:381:2: note:  
initializing argument 2 of 'virtual void
titania::pb::pbObject::addOwnProperty(const titania::pb::Identifier&,
titania::pb::var&&, titania::pb::AttributeType,
titania::pb::ptr<titania::pb::pbFunction>&&,
titania::pb::ptr<titania::pb::pbFunction>&&, bool)'
  addOwnProperty (const Identifier & identifier,
  ^
make: *** [Titania/PeaseBlossom/Objects/pbFunction.lo] Error 1


---

* libtitania-x3d

---
Titania/X3D/Browser/Sound/MediaStream.cpp: In member function 'void
titania::X3D::MediaStream::on_message(const Glib::RefPtr<Gst::Message>&)':
Titania/X3D/Browser/Sound/MediaStream.cpp:296:22: error:
'MessageDuration' is not a member of 'Gst'
     << Glib::RefPtr <Gst::MessageDuration>::cast_static (message) ->
parse ()
                      ^
Titania/X3D/Browser/Sound/MediaStream.cpp:296:22: error:
'MessageDuration' is not a member of 'Gst'
Titania/X3D/Browser/Sound/MediaStream.cpp:296:42: error: template
argument 1 is invalid
     << Glib::RefPtr <Gst::MessageDuration>::cast_static (message) ->
parse ()
                                          ^
Titania/X3D/Browser/Sound/MediaStream.cpp:306:74: error: no matching
function for call to 'Gst::MessageError::parse()'
     << Glib::RefPtr <Gst::MessageError>::cast_static (message) -> parse
() .what ()
                                                                          ^
In file included from
/usr/local/Cellar/gstreamermm/1.8.0/include/gstreamermm-1.0/gstreamermm/element.h:33:0,
                 from
/usr/local/Cellar/gstreamermm/1.8.0/include/gstreamermm-1.0/gstreamermm/check.h:13,
                 from
/usr/local/Cellar/gstreamermm/1.8.0/include/gstreamermm-1.0/gstreamermm.h:61,
                 from Titania/X3D/Browser/Sound/MediaStream.h:58,
                 from Titania/X3D/Browser/Sound/MediaStream.cpp:51:
/usr/local/Cellar/gstreamermm/1.8.0/include/gstreamermm-1.0/gstreamermm/message.h:688:8:
note: candidate: void Gst::MessageError::parse(Glib::Error&,
std::__cxx11::string&) const
   void parse(Glib::Error& error, std::string& debug) const;
        ^
/usr/local/Cellar/gstreamermm/1.8.0/include/gstreamermm-1.0/gstreamermm/message.h:688:8:
note:   candidate expects 2 arguments, 0 provided

---

Doing a quick run over the other modules everything seems to company
rather all right.

Suggestions ?

many thanks

Gonzalo





More information about the x3d-public mailing list