Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-29 00:07:21



Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
native AMD64 bit version? 
Author Message

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
wired wrote:
So now recently i wanted to try the same with the 1.26.1 branch. After getting some more libraries (mainly colladadom and glod) i managed to build a 64 Bit binary. When i fire up this viewer it works, i see meshes but i get rainbow like colors everywhere and it crashes after 1-2 minutes.
Did you try with the latest v1.26.1.8 sources ?... Because there was a fix in it that is supposed to cure this color 64bits-specific bug...


2011-09-26 10:22:46
Profile WWW

Joined: 2009-06-08 16:33:20
Posts: 26
Reply with quote
WooooT, yes that did the trick, i was still using the 1.26.1.7 source, with 1.26.1.8 the colors are ok, no more rainbows or extremely dark scenes.

Ty for this hint.


2011-09-26 11:45:02
Profile

Joined: 2009-06-08 16:33:20
Posts: 26
Reply with quote
Hello,

while i was finally able to build the 1.26.1.8 version on a 64Bit System i am stuck now with 1.26.2.3

here is what happens:

Code:
/tmp/SL/indra/newview/llfloatermodelpreview.cpp: In static member function ‘static void LLFloaterModelPreview::onClickTextLOD(void*)’:
/tmp/SL/indra/newview/llfloatermodelpreview.cpp:703: error: cast from ‘void*’ to ‘S32’ loses precision
/tmp/SL/indra/newview/llfloatermodelpreview.cpp: In static member function ‘static void LLFloaterModelPreview::onLODParamCommit(LLUICtrl*, void*)’:
/tmp/SL/indra/newview/llfloatermodelpreview.cpp:766: error: cast from ‘void*’ to ‘S32’ loses precision
/tmp/SL/indra/newview/llfloatermodelpreview.cpp: In static member function ‘static void LLFloaterModelPreview::onLODParamCommitEnforceTriLimit(LLUICtrl*, void*)’:
/tmp/SL/indra/newview/llfloatermodelpreview.cpp:776: error: cast from ‘void*’ to ‘S32’ loses precision
/tmp/SL/indra/newview/llfloatermodelpreview.cpp: In static member function ‘static void LLFloaterModelPreview::onBrowseLOD(void*)’:
/tmp/SL/indra/newview/llfloatermodelpreview.cpp:5615: error: cast from ‘void*’ to ‘S32’ loses precision
/tmp/SL/indra/newview/llfloatermodelpreview.cpp: In static member function ‘static void LLFloaterModelPreview::onLoDSourceCommit(LLUICtrl*, void*)’:
/tmp/SL/indra/newview/llfloatermodelpreview.cpp:5764: error: cast from ‘void*’ to ‘S32’ loses precision


No clue how to fix this, anybody?


2011-10-30 10:01:59
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
That's just gcc being utterly anal and refusing a cast (64bits to 32bits value) that should at worst cause a warning (but certainly not an error !)... I'll use another method to pass the LOD value to the callbacks in the next release. In the mean time, use: "S32 lod = (S32)((S64)userdata);" instead of "S32 lod = (S32)userdata;" everywhere for your 64bits build.


2011-10-30 18:15:55
Profile WWW

Joined: 2009-06-08 16:33:20
Posts: 26
Reply with quote
Thank you Henri, yes that did the trick.

cast all your problems away :)


2011-10-30 19:18:59
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 34 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.