OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Conflict between OSG and Qt


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11900

PostPosted: Thu Mar 15, 2018 4:24 pm    Post subject:
Conflict between OSG and Qt
Reply with quote

Hi Joseph,

On 15 March 2018 at 08:46, Joseph Mirabel <> wrote:
Quote:
I found the bug. The fault is from Collada Dom library. Qt is settings the numeric locale to french (because it is the default on my computer). The Collada Dom uses sscanf to parse string as double. In french, the decimal separator is a comma, not a point so string("0.5423") gives double(0)...

See this bug report: https://sourceforge.net/p/collada-dom/bugs/137/

I have just checked out the Collada DOM 2.5 from github
(https://github.com/rdiankov/collada-dom) and updated the OSG's
FindCOLLADA.cmake to be able to find the 2.5 DOM and checked this into
OSG master. I did a quick search through the collada_dom code base
for setlocale and there are:

collada-dom$ grep -r "setlocale" .
./dom/external-libs/pcre-8.02/dftables.c: setlocale(LC_ALL, "");
/* Set from environment variables */
./dom/external-libs/pcre-8.02/pcretest.c: if (setlocale(LC_CTYPE,
(const char *)pp) == NULL)
./dom/external-libs/pcre-8.02/pcretest.c: setlocale(LC_CTYPE, "C");
./dom/external-libs/pcre-8.02/pcregrep.c: if (setlocale(LC_CTYPE,
locale) == NULL)

I'm not the author of the OSG's dae plugin so know little more than
what has been required to compile against the Collada DOM so can't
provide much insight it this issue. The Collada DOM really looks a
bit stagnant now so perhaps bugs like the locale one are basically
just ignored. Potentially one could fork the project on github and
make fixes then push this, or put setlocale settings local to the
OSG's dae plugin.

I'm open to suggestions.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Conflict between osg-3.0.1 and UI ceranco General 0 Wed Mar 28, 2018 7:56 am View latest post
No new posts [Solved] Conflict between OSG and Qt jmirabel Plugins [osgPlugins] 3 Mon Mar 21, 2016 9:08 am View latest post
No new posts Conflict between current osg trunk 3.... crubel@compro.net Build system [build] 4 Tue Apr 28, 2015 3:28 pm View latest post
No new posts File comment blocks conflict with OSG... David Fries General 2 Wed May 22, 2013 2:33 pm View latest post
No new posts osgEphemeris conflict with overlayNode? wybbzcwj General 0 Tue Apr 03, 2012 8:39 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP