Discussion:
[Opensg-users] Clustering and attributes
Victor Haefner
2014-12-05 11:48:09 UTC
Permalink
Hi all,

I tried to run my application on a cluster and the slaves did not display
the geometry with custom attributes and gave me this in console:

WARNING: attributes given, but support not enabled, please compile with
OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON

I tried to recompile the cluster server with
-DOSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON without success, I will now
recompile the client with that flag and then opensg.

Any idea why it runs perfectly on the local application?

Best regards,
Victor
Carsten Neumann
2014-12-08 03:16:26 UTC
Permalink
Hello Victor,
Post by Victor Haefner
I tried to run my application on a cluster and the slaves did not
WARNING: attributes given, but support not enabled, please compile with
OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON
I tried to recompile the cluster server with
-DOSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON without success, I will now
recompile the client with that flag and then opensg.
IIRC that is a cmake flag of OpenSG's build system, so I don't think
it'll have an effect if you recompile your application code - this is
not a flag that is passed to the compiler to define a pre-processor
macro on the command line; unfortunately the syntax for setting cmake
variables on the command line looks exactly like it was.
Post by Victor Haefner
Any idea why it runs perfectly on the local application?
To me it sounds a bit like there are OpenSG builds compiled with
different options in the mix. Can you make sure all machines use
OpenSG builds compiled with the same options?

Cheers,
Carsten
Victor Haefner
2015-01-08 12:35:15 UTC
Permalink
Hello Carsten,


I compile my server with:

#!/bin/bash
libs="-lOSGBase -lOSGContribTrapezoidalShadowMaps -lOSGCluster
-lOSGDrawable -lOSGEffectGroups -lOSGFileIO -lOSGGroup -lOSGImageFileIO
-lOSGState -lOSGSystem -lOSGUtil -lOSGText -lOSGWindow -lOSGWindowGLUT
-lOSGWindowX -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi
-lboost_system"
libpaths="-L/usr/lib/opensg"

g++ VRServer.cpp $libs $libpaths -o VRServer

Everything on a single local machine, same opensg installation, same
problem :(
I tried compiling OpenSG with OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON and
got:

cmake .. -DOSGBUILD_TESTS=OFF -DOSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON

CMake Warning:
Manually-specified variables were not used by the project:

OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS

When I rerun cmake again I don't get that warning but after compiling
OpenSG the problem is still there.

I do this at the beginning of my server:
OSG::preloadSharedObject("OSGBase");
OSG::preloadSharedObject("OSGContribCSMSimplePlugin");
OSG::preloadSharedObject("OSGContribWebInterface");
OSG::preloadSharedObject("OSGGroup");
OSG::preloadSharedObject("OSGUtil");
OSG::preloadSharedObject("OSGCluster");
OSG::preloadSharedObject("OSGContribCSM");
OSG::preloadSharedObject("OSGDrawable");
OSG::preloadSharedObject("OSGImageFileIO");
OSG::preloadSharedObject("OSGWindowGLUT");
OSG::preloadSharedObject("OSGContribBackgroundLoader");
OSG::preloadSharedObject("OSGContribGUI");
OSG::preloadSharedObject("OSGDynamics");
OSG::preloadSharedObject("OSGState");
OSG::preloadSharedObject("OSGWindow");
OSG::preloadSharedObject("OSGContribCgFX");
OSG::preloadSharedObject("OSGContribPLY");
OSG::preloadSharedObject("OSGEffectGroups");
OSG::preloadSharedObject("OSGSystem");
OSG::preloadSharedObject("OSGWindowX");
OSG::preloadSharedObject("OSGContribComputeBase");
OSG::preloadSharedObject("OSGContribTrapezoidalShadowMaps");
OSG::preloadSharedObject("OSGFileIO");
OSG::preloadSharedObject("OSGText");

commenting them did not help..

any ideas where I can continue to investigate?


best regards,
Victor
Post by Carsten Neumann
Hello Victor,
Post by Victor Haefner
I tried to run my application on a cluster and the slaves did not
WARNING: attributes given, but support not enabled, please compile with
OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON
I tried to recompile the cluster server with
-DOSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON without success, I will now
recompile the client with that flag and then opensg.
IIRC that is a cmake flag of OpenSG's build system, so I don't think
it'll have an effect if you recompile your application code - this is
not a flag that is passed to the compiler to define a pre-processor
macro on the command line; unfortunately the syntax for setting cmake
variables on the command line looks exactly like it was.
Post by Victor Haefner
Any idea why it runs perfectly on the local application?
To me it sounds a bit like there are OpenSG builds compiled with
different options in the mix. Can you make sure all machines use
OpenSG builds compiled with the same options?
Cheers,
Carsten
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
https://lists.sourceforge.net/lists/listinfo/opensg-users
Carsten Neumann
2015-01-16 14:59:09 UTC
Permalink
Hello Victor,
Post by Victor Haefner
#!/bin/bash
libs="-lOSGBase -lOSGContribTrapezoidalShadowMaps -lOSGCluster
-lOSGDrawable -lOSGEffectGroups -lOSGFileIO -lOSGGroup -lOSGImageFileIO
-lOSGState -lOSGSystem -lOSGUtil -lOSGText -lOSGWindow -lOSGWindowGLUT
-lOSGWindowX -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi
-lboost_system"
libpaths="-L/usr/lib/opensg"
g++ VRServer.cpp $libs $libpaths -o VRServer
Everything on a single local machine, same opensg installation, same
problem :(
I tried compiling OpenSG with OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON and
cmake .. -DOSGBUILD_TESTS=OFF -DOSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS=ON
OSG_ENABLE_OGL_VERTEXT_ATTRIB_FUNCS
yes, it appears that option (together with the code it controlled) was
removed/rewritten in commit fadad10632f50b122fe95e0a0cf50bdda1045a85
(from 2014-07-17).
Post by Victor Haefner
When I rerun cmake again I don't get that warning but after compiling
OpenSG the problem is still there.
If the server is still printing the message about
OSG_ENABLE_OGL_VERTEX_ATTRIB_FUNCS it is definitely using a different
set of OpenSG libraries - the code producing that message was part of
what was rewritten.
Post by Victor Haefner
OSG::preloadSharedObject("OSGBase");
OSG::preloadSharedObject("OSGContribCSMSimplePlugin");
OSG::preloadSharedObject("OSGContribWebInterface");
OSG::preloadSharedObject("OSGGroup");
OSG::preloadSharedObject("OSGUtil");
OSG::preloadSharedObject("OSGCluster");
OSG::preloadSharedObject("OSGContribCSM");
OSG::preloadSharedObject("OSGDrawable");
OSG::preloadSharedObject("OSGImageFileIO");
OSG::preloadSharedObject("OSGWindowGLUT");
OSG::preloadSharedObject("OSGContribBackgroundLoader");
OSG::preloadSharedObject("OSGContribGUI");
OSG::preloadSharedObject("OSGDynamics");
OSG::preloadSharedObject("OSGState");
OSG::preloadSharedObject("OSGWindow");
OSG::preloadSharedObject("OSGContribCgFX");
OSG::preloadSharedObject("OSGContribPLY");
OSG::preloadSharedObject("OSGEffectGroups");
OSG::preloadSharedObject("OSGSystem");
OSG::preloadSharedObject("OSGWindowX");
OSG::preloadSharedObject("OSGContribComputeBase");
OSG::preloadSharedObject("OSGContribTrapezoidalShadowMaps");
OSG::preloadSharedObject("OSGFileIO");
OSG::preloadSharedObject("OSGText");
commenting them did not help..
Those should not be related, I think.
Post by Victor Haefner
any ideas where I can continue to investigate?
You could try running with environment variable LD_DEBUG=libs to get the
runtime linker to print information about where it loads libs from - see
man ld.so for other settings.

Cheers,
Carsten

Loading...