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...
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
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.
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