MacOS 10.5.8 PPC - Next Building Error

Added by Jeru over 4 years ago

After Mutex error :

{standard input}:unknown:Non-global symbol: __ZThn200_ZNK2R221CDisplayerVisualGroup21CSelectablePrimRender14newCtrlPolygonEvEN22CCtrlPolygonSelectable20getDisplayedInstanceEv.eh can't be a weak_definition
{standard input}:unknown:Non-global symbol: __ZThn200_ZNK2R221CDisplayerVisualGroup21CSelectablePrimRender14newCtrlPolygonEvENK22CCtrlPolygonSelectable8containsEii.eh can't be a weak_definition
{standard input}:unknown:Non-global symbol: __ZThn332_ZNK2R221CDisplayerVisualGroup21CSelectablePrimRender11newCtrlQuadEjEN19CCtrlQuadSelectable20getDisplayedInstanceEv.eh can't be a weak_definition
{standard input}:unknown:Non-global symbol: __ZThn332_ZNK2R221CDisplayerVisualGroup21CSelectablePrimRender11newCtrlQuadEjENK19CCtrlQuadSelectable6isEdgeEv.eh can't be a weak_definition
{standard input}:unknown:Non-global symbol: __ZThn332_ZNK2R221CDisplayerVisualGroup21CSelectablePrimRender11newCtrlQuadEjENK19CCtrlQuadSelectable12getEdgeIndexEv.eh can't be a weak_definition
{standard input}:unknown:Non-global symbol: __ZThn332_ZNK2R221CDisplayerVisualGroup21CSelectablePrimRender11newCtrlQuadEjENK19CCtrlQuadSelectable8containsEii.eh can't be a weak_definition
make[2]: *** [ryzom/client/src/CMakeFiles/ryzom_client.dir/r2/displayer_visual_group.cpp.o] Error 1
make[1]: *** [ryzom/client/src/CMakeFiles/ryzom_client.dir/all] Error 2
make: *** [all] Error 2

I skiped all warnings :) An other idee for the devs ? ;p


Replies (4)

RE: MacOS 10.5.8 PPC - Next Building Error - Added by Jeru over 4 years ago

It seems it comes from the declaration of this 2 functions :

CDisplayerVisualGroup::CSelectablePrimRender::newCtrlPolygon()
CDisplayerVisualGroup::CSelectablePrimRender::newCtrlQuad()
and this 2 classes :
CCtrlQuad
CCtrlPolygon

Sorry, I'm not a developer so I don't know what to do :)

RE: MacOS 10.5.8 PPC - Next Building Error - Added by Jeru over 4 years ago

Finally it seems I'have found the source of the problem, it's not the declaration of those two functions, but on PPC the compiler don't like the creation of a class in a function of an other class.
I tried to externalise the CCtrlPolygonSelectable class in the CSelectablePrimRender function without a reel success cause of my bad C++ knowledge but I don't have the previous compile error that was a more difficult compile error I think !
Is it a solution for all compile platform or just for Mac on PPC ??

Help please

RE: MacOS 10.5.8 PPC - Next Building Error - Added by Jeru over 4 years ago

Finally, I made it works !

The compile error is solved by editing the_ ryzom/src/r2/displayer_visual_group.cpp_ file and moving the declaration of the class : CCtrlPolygonSelectable and CCtrlQuadSelectable to the top of the file and nothing else. These declaration was made in functions of the class CDisplayerVisualGroup and was causing the compile error.

If these is a real solution can someone had the modification on the repository ?

RE: MacOS 10.5.8 PPC - Next Building Error - Added by kervala over 4 years ago

I applied your patch on Hg :) Thanks a lot !

Please don't hesitate to confirm all is compiling fine under PPC now :)

rti created this issue :

http://dev.ryzom.com/issues/1246

(1-4/4)