Hi Harri,

It sounds like there might be an issue with the gcc version you have
w.r.t building something as complex as the wrappers.

Could you try updating to a later gcc version?

Robert.

On 3/22/07, Harald A. <[EMAIL PROTECTED]> wrote:
hallo Robert,

libosgIntrospection.so builds with cmake and GNUmakefile

the problem is the linking of osgwrapper_osg.so (and other wrappers)

using GNUmakefile
I can watch this

#######################
g++  -O -L/usr/X11R6/lib -L../../../../lib/Linux32
-L/home/harri/local/osgsvn/lib -shared  AlphaFunc.o AnimationPath.o
ApplicationUsage.o ArgumentParser.o Array.o AutoTransform.o Billboard.o
BlendColor.o BlendEquation.o BlendFunc.o BoundingBox.o BoundingSphere.o
BufferObject.o Camera.o CameraNode.o CameraView.o ClampColor.o ClearNode.o
ClipNode.o ClipPlane.o ClusterCullingCallback.o CollectOccludersVisitor.o
ColorMask.o ColorMatrix.o ComputeBoundsVisitor.o ConvexPlanarOccluder.o
ConvexPlanarPolygon.o CoordinateSystemNode.o CopyOp.o CullFace.o
CullSettings.o CullStack.o CullingSet.o DeleteHandler.o Depth.o
DisplaySettings.o DrawPixels.o Drawable.o Endian.o Fog.o FragmentProgram.o
FrameBufferObject.o FrameStamp.o FrontFace.o GL2Extensions.o Geode.o
Geometry.o GraphicsContext.o GraphicsThread.o Group.o Image.o
ImageStream.o LOD.o Light.o LightModel.o LightSource.o LineSegment.o
LineStipple.o LineWidth.o LogicOp.o Material.o Matrix.o MatrixTransform.o
Matrixd.o Matrixf.o Multisample.o Node.o NodeCallback.o
NodeTrackerCallback.o NodeVisitor.o Notify.o Object.o OccluderNode.o
PagedLOD.o Plane.o Point.o PointSprite.o PolygonMode.o PolygonOffset.o
PolygonStipple.o Polytope.o PositionAttitudeTransform.o PrimitiveSet.o
Program.o Projection.o ProxyNode.o Quat.o Referenced.o RenderInfo.o
Scissor.o Sequence.o ShadeModel.o Shader.o ShadowVolumeOccluder.o Shape.o
ShapeDrawable.o State.o StateAttribute.o StateSet.o Stats.o Stencil.o
StencilTwoSided.o Switch.o TexEnv.o TexEnvCombine.o TexEnvFilter.o
TexGen.o TexGenNode.o TexMat.o Texture.o Texture1D.o Texture2D.o
Texture3D.o TextureCubeMap.o TextureRectangle.o Timer.o TransferFunction.o
Transform.o Uniform.o Vec2.o Vec2b.o Vec2d.o Vec2f.o Vec2s.o Vec3.o
Vec3b.o Vec3d.o Vec3f.o Vec3s.o Vec4.o Vec4b.o Vec4d.o Vec4f.o Vec4s.o
Vec4ub.o VertexProgram.o View.o Viewport.o observer_ptr.o   -lstdc++ -losg
-losg -losgIntrospection  -lGLU -lGL  -lOpenThreads -o osgwrapper_osg.so
#######################

for a long, long, very long, realy very long time,

then the error messages appear

like that one

#######################
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L47246' referenced in section `.rodata' of Registry.o: defined in
discarded section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of Registry.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L47247' referenced in section `.rodata' of Registry.o: defined in
discarded section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of Registry.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L47248' referenced in section `.rodata' of Registry.o: defined in
discarded section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of Registry.o
#######################


but, different to cmake, i get a osgwrapper_osg.so lib and build proceed
building osgwrapper_osgGA.so and so on, but for some/most wrappers bring
up same kind of errors

e.g.:

#######################
g++  -O -L/usr/X11R6/lib -L../../../../lib/Linux32
-L/home/harri/local/osgsvn/lib -shared  AccelOperator.o
AngularAccelOperator.o BoxPlacer.o CenteredPlacer.o
ConnectedParticleSystem.o ConstantRateCounter.o Counter.o Emitter.o
ExplosionDebrisEffect.o ExplosionEffect.o FireEffect.o
FluidFrictionOperator.o FluidProgram.o ForceOperator.o Interpolator.o
LinearInterpolator.o ModularEmitter.o ModularProgram.o
MultiSegmentPlacer.o Operator.o Particle.o ParticleEffect.o
ParticleProcessor.o ParticleSystem.o ParticleSystemUpdater.o Placer.o
PointPlacer.o PrecipitationEffect.o Program.o RadialShooter.o
RandomRateCounter.o SectorPlacer.o SegmentPlacer.o Shooter.o SmokeEffect.o
SmokeTrailEffect.o VariableRateCounter.o range.o   -lstdc++ -losgParticle
-losg -losgIntrospection -losgUtil -losgDB  -lGLU -lGL  -lOpenThreads -o
osgwrapper_osgParticle.so
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23756' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23757' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23758' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23759' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23760' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23761' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23762' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23763' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23764' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
`.L23765' referenced in section `.rodata' of range.o: defined in discarded
section
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
of range.o

make[4]: Leaving directory
`/home/harri/osg/svn/OpenSceneGraph/src/osgWrappers/osgParticle/Linux32.Opt'
make[4]: Entering directory
`/home/harri/osg/svn/OpenSceneGraph/src/osgWrappers/osgParticle'
  =====> Linux32.Opt/osgwrapper_osgParticle.so and
../../../lib/Linux32/osgPlugins/osgwrapper_osgParticle.so are in sync
#######################


that's somehow strange,(and a little bit boring cause building the
wrappers takes hours)


an other harm is that I can't tell you (at the moment) if the wrapper libs
I got work fine cause I don't know how to use them, I just would need them
because I want to test/evaluate osgDesigner, funny :-)

is there an example which uses the wrapper libs so that I can test and see
if the libs the GNUmakefile produced are ok, work well?


lg
harri





> HI Harri,
>
> Does osgIntrospection build for you with the old GNUmakefile build
> system?
>
> Robert.
>
> On 3/22/07, Harald A. <[EMAIL PROTECTED]> wrote:
>> hi,
>> gcc --version
>> gcc (GCC) 3.4.6
>> at the moment,
>> maybe I can test on an other system this evening, but not for sure
>>
>> lg
>> harri
>>
>> > HI Harri,
>> >
>> > What gcc version do you have?
>> >
>> > On 3/22/07, Harald A. <[EMAIL PROTECTED]> wrote:
>> >> Hi Robert, thanks for reply
>> >>
>> >> Producer confused me because there are CMakeCache.txt and
>> >> CMakeList.txt files in the directory
>> >> No problem using GNUmakefile, ok, i miss the colored output, but
>> thats it :-)
>> >>
>> >> BUILD_OSG_WRAPPERS was a good hint, thanks, I can pass it with
>> cmake -DBUILD_OSG_WRAPPERS=ON .
>> >>
>> >> unfortunately osgwrappers don't build, compiling works but linking
>> fails, brings some strange errors (I will append a part of the
>> output at the end)
>> >>
>> >>
>> >> I build the OpenSceneGraph documentation with cmake using
>> >> all_Doxyfile, make links to
>> >> doc/Doxyfiles/doxyfile.cmake (I think required by cmake)
>> >> and
>> >> docs/doxyfile (I think required by doxygen)
>> >>
>> >> and edit some things
>> >> I changed
>> >> INPUT FILE_PATTERNS RECURSIVE EXCLUDE
>> >>
>> >> I played arround a little bit, and I only got usefull results when
>> turn off recursive and set input explicit to inputdirs, but maybe
>> there is an other/better way to generate the/a_usefull dogygen
>> documentation.
>> >>
>> >>
>> >>
>> >>
>> >> here the output of linking osgwrapper_osg.so
>> >> just the last parts, I get tons of this messages, for each object
>> file, after waiting a long time
>> >> Cmake build testing
>> >> I hope it is ok to post this in this thread and not in the other
>> one about Cmake build testing, but I don't know if this is a
>> general problem or only a problem on my system
>> >>
>> >> 
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
>> `.L41382' referenced in section `.rodata' of
>> >> CMakeFiles/osgwrapper_osg.dir/osg/Array.o: defined in discarded
>> section
>> >> 
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
>> of CMakeFiles/osgwrapper_osg.dir/osg/Array.o
>> >>
>> >> 
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
>> `.L41383' referenced in section `.rodata' of
>> >> CMakeFiles/osgwrapper_osg.dir/osg/Array.o: defined in discarded
>> section
>> >> 
`.gnu.linkonce.t._ZNK16osgIntrospection23PropertyAccessException9build_msgERKSsNS0_10AccessTypeE'
>> of CMakeFiles/osgwrapper_osg.dir/osg/Array.o
>> >>
>> >> 
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
>> `typeinfo for osg::TemplateIndexArray<int, (osg::Array::Type)3, 1,
>> 5124>' referenced in section
>> >> 
`.gnu.linkonce.t._Z15extended_typeidIN3osg18TemplateIndexArrayIiLNS0_5Array4TypeE3ELi1ELi5124EEEEN16osgIntrospection16ExtendedTypeInfoEv'
>> of CMakeFiles/osgwrapper_osg.dir/osg/Array.o: defined in discarded
>> section
>> >> 
`.gnu.linkonce.d._ZTIN3osg18TemplateIndexArrayIiLNS_5Array4TypeE3ELi1ELi5124EEE'
>> of CMakeFiles/osgwrapper_osg.dir/osg/Array.o
>> >>
>> >> 
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
>> BFD 2.15.92.0.2 20040927 internal error, aborting at elf32-i386.c
>> line 2224 in elf_i386_relocate_section
>> >>
>> >> 
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
>> Please report this bug.
>> >>
>> >> collect2: ld returned 1 exit status
>> >> make[2]: *** [lib/osgPlugins/osgwrapper_osg.so] Error 1
>> >> make[1]: *** [src/osgWrappers/CMakeFiles/osgwrapper_osg.dir/all]
>> Error 2 make: *** [all] Error 2
>> >>
>> >>
>> >> anyone any ideas how to fix this?
>> >> every trial and build needs so much time...
>> >>
>> >> lg
>> >> harri
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> > Hi Harald,
>> >> >
>> >> >> for OpenThreads and OpenScenegraph I use cmake
>> >> >>
>> >> >> a few (small) problems:
>> >> >>
>> >> >> passing -DBUILD_DOCUMENTATION=ON
>> >> >> OpenSceneGraph:
>> >> >> CMake Error: File
>> >> >> ...somewhere/svn/OpenSceneGraph/doc/Doxyfiles/doxyfile.cmake
>> does
>> >> not exist.
>> >> >>
>> >> >> OpenThreads reports no error, but doc is not build
>> >> >
>> >> > Documentation isn't yet supported properly in the CMake build.
>> >> >
>> >> >
>> >> >> cmake for Producer
>> >> >> CMake Error: OpenThreads_DIR is not set.  It must be set to the
>> >> directory containing OpenThreadsConfig.cmake in order to use
>> >> >> OpenThreads.
>> >> >> I still have no idea how I can fix this so I build Producer with
>> >> the GNUmakefile
>> >> >
>> >> > Producer doesn't have support for CMake, and neither does
>> >> osgProducer so you should use the GNUmakefile system.  This system
>> has been in place for many years and is what the OSG and
>> OpenThreads originally used.
>> >> >
>> >> > Whether Producer might move across to using CMake is entirely up
>> to
>> >> Don Burns, the Producer mailing list is a good place to raise this
>> topic with him.  Once I get more familiar with CMake I'll probably
>> move osgProducer across to CMake.
>> >> >
>> >> >> for OpenSceneGraph
>> >> >> additional customation, how can I tell cmake
>> COMPILE_INTROSPECTION
>> >> ?= yes
>> >> >
>> >> > make edit_cache
>> >> >
>> >> > Then go down to the BUILD_OSG_WRAPPERS option and toggle it on.
>> >> There are instructions on screen when you use edit_cache.
>> >> >
>> >> > Alternatively use ccmake rather than cmake as it will
>> automatically
>> >> invoke edit_cache.
>> >> >
>> >> > Robert.
>> >> > _______________________________________________
>> >> > osg-users mailing list
>> >> > [email protected]
>> >> > http://openscenegraph.net/mailman/listinfo/osg-users
>> >> > http://www.openscenegraph.org/
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> osg-users mailing list
>> >> [email protected]
>> >> http://openscenegraph.net/mailman/listinfo/osg-users
>> >> http://www.openscenegraph.org/
>> >>
>> > _______________________________________________
>> > osg-users mailing list
>> > [email protected]
>> > http://openscenegraph.net/mailman/listinfo/osg-users
>> > http://www.openscenegraph.org/
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to