Hi Cedric,
I'm out of the office this week so I won't be able to help till next
monday.
Cheers

El martes, 17 de marzo de 2015, Giuseppe Donvito <[email protected]>
escribió:

> I faced up these kind of linker errors when among all obj is present a
> class derived from a std library class (in this case maybe osgDB::ofstream).
> This seems confusing the linker (vs2013 + win7) and further requires to
> always include the derived class (osgDB::ofstream) header, even if you're
> actually using the base class (std::ofstream). std lib classes tipically do
> not have virtual constructors and this probably could lead to this strange
> behavior.
> HTH
> Cheers,
>  Giuseppe
>
>
> On Tue, Mar 17, 2015 at 7:12 AM, Mattias Helsing <[email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>
>> Hi
>> I wonder if this is not a matter of using osgDB::fstream instead of the
>> std one. Don't have windows at hand so can't test. Sorry.
>> My 2p
>> /Mattias
>> Den 16 mar 2015 20:38 skrev "Cedric Pinson" <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>>:
>> >
>> > I dont have windows systems on my computers, I dont have any idea.
>> > Maybe you can try to rename the file ... it's stupid I know :)
>> >
>> > @jtorres any idea ?
>> >
>> > Cedric
>> > Robert Osfield <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> writes:
>> >
>> > > Hi Cedric,
>> > >
>> > > I have just done a Windows build and am getting the following build
>> error
>> > > with the osgjs plugin:
>> > >
>> > > 8>osgDB.lib(osg119-osgDB.dll) : error LNK2005: "public: bool __cdecl
>> > > std::basic_ofstream<char,struct std::char_traits<char>
>> > >>::is_open(void)const " (?is_open@?$basic_ofstream@DU?$char_traits@D
>> @std@
>> > > @@std@@QEBA_NXZ) already defined in Animation.obj
>> > > 8>C:\Users\Robert
>> > >
>> Osfeld\Documents\OpenSceneGraph-build\bin\osgPlugins-3.3.6\osgdb_osgjs.dll
>> > > : fatal error LNK1169: one or more multiply defined symbols found
>> > >
>> > > I can't spot how the plugin is particularly different from other OSG
>> > > plugins so don't know why it's tripped up here.
>> > >
>> > > Any ideas?  Suggestion for a solution?
>> > >
>> > > Cheers,
>> > > Robert.
>> > >
>> > >
>> > > On 9 March 2015 at 16:47, Robert Osfield <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>> > >
>> > >> Hi Jordi and Cedric,
>> > >>
>> > >> Thanks for the clarifications and instructions.  I've tried out the
>> > >> osgconv and webkuex.com/osgjs-test and it works great ;-)
>> > >>
>> > >> Robert.
>> > >>
>> > >> On 9 March 2015 at 14:58, Cedric Pinson <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>> > >>
>> > >>> Hi Robert,
>> > >>>
>> > >>> Sorry no deps are required. I thought you suggested to use an
>> external
>> > >>> dependencies instead of embeding a small json 'lib' in the plugin.
>> > >>>
>> > >>> Cedric
>> > >>>
>> > >>> Robert Osfield <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> writes:
>> > >>>
>> > >>> > Hi Cedric,
>> > >>> >
>> > >>> > On 9 March 2015 at 10:57, Robert Osfield <
>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>>
>> > >>> wrote:
>> > >>> >
>> > >>> >> I'm now a bit confused.  Because of the orignal build errors I
>> had
>> > >>> assumed
>> > >>> >> that JSON was an external dependency of the osgjs plugin, but
>> now can't
>> > >>> >> find an external reference in the source and headers to JSON.
>> Are all
>> > >>> the
>> > >>> >> JSON classes required contained the plugin?
>> > >>> >>
>> > >>> >> Does the osgjs plugin have any external dependencies?
>> > >>> >>
>> > >>> >
>> > >>> > I have gone ahead with the assumption the osgjs plugin doesn't
>> have any
>> > >>> > external dependencies, as I can't spot any and things are now
>> > >>> compiling...
>> > >>> > I have merged and checked in the changes to svn/trunk.  Is there
>> a way I
>> > >>> > can test a workflow of converting OSG models to run with osgjs?
>> > >>> >
>> > >>> > Robert.
>> > >>> > _______________________________________________
>> > >>> > osg-submissions mailing list
>> > >>> > [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>
>> > >>> >
>> > >>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>> > >>> _______________________________________________
>> > >>> osg-submissions mailing list
>> > >>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>
>> > >>>
>> > >>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>> > >>>
>> > >>
>> > >>
>> > _______________________________________________
>> > osg-submissions mailing list
>> > [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>
>> >
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>> _______________________________________________
>> osg-submissions mailing list
>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>>
>

-- 
Jordi Torres
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to