Re: [osg-users] OSG 3.0.1 on iOS 5

2012-02-22 Thread Büsra Gülten
Hi Stephan,

thank you for your reply. 

After I compared my project with the iPhone-Example on github, I found out that 
the file PerlinNoise.cpp is missed in OpenSceneGraph-3.0.1-zip (which I 
downloaded from OSG-Website). This was the reason for the osgUtil-error 
mentioned above. 

Another point I want to indicate is when main-method look like this: 


 
 @autoreleasepool 
 {
 return UIApplicationMain(argc, argv, nil, 
 NSStringFromClass([osgAppDelegate class]));
 }
 


building of app is failed with this message: 


 ScopedLock: Parse Issue. Unknown type name 'namespace'. 
 Parse Issue. Expected '.' after top level declarator
 
 Notify: Lexical or Preprocessor Issue. 'ostream' file not found. 


Any idea what this could be mean?

Thank you!

Cheers,
Büsra

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=45669#45669





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG 3.0.1 on iOS 5

2012-02-22 Thread Stephan Maximilian Huber
Hi,

Am 22.02.12 09:51, schrieb Büsra Gülten:

 Another point I want to indicate is when main-method look like this: 
 
 

 @autoreleasepool 
 {
 return UIApplicationMain(argc, argv, nil, 
 NSStringFromClass([osgAppDelegate class]));
 }


Looks like your main-file gets compiled as Objective C only and chokes
about some c++-stuff. Try renaming the file from *.m to *.mm

cheers,
Stephan

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG 3.0.1 on iOS 5

2012-02-18 Thread Stephan Huber
Hi,

Am 17.02.12 16:04, schrieb Büsra Gülten:

 I have already build OSG 3.0.1 on iOS 4. Now i would like to build it on iOS 
 5. Core Libraries like osg, OpenThreads, osgDB and osgUtil are building 
 correctly. But the linking with my App, notify following error: 
 
 

 Undefined symbols for architecture i386:
   osgUtil::IndexMeshVisitor::makeMesh(), referenced from:
   osgUtil::Optimizer::optimize(osg::Node*, unsigned int)in 
 libosgUtil.a(Optimizer.o)

Please check if you added libosgUtil to your linking stage of your app.


 I have also tried the newest iPhone Example on github. I get there similar 
 error I mentioned above:
 
 

 ld: warning: ignoring file 
 /../IPhone_Project/3rdParty/lib/libFreeType_iphone_universal.a, missing 
 required architecture i386 in file

Unfortunately the packaged freetype lib for iphone is for device only
(arm6/7), not for the simulator (i386). This exlains your errrors about
missing symbols. But you can build libfreetype by yourself...

I did a quick test with the examples from the github-repository and they
do compile und run fine for IOS 5.


cheers,

Stephan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] OSG 3.0.1 on iOS 5

2012-02-17 Thread Büsra Gülten
Hi, 

I have already build OSG 3.0.1 on iOS 4. Now i would like to build it on iOS 5. 
Core Libraries like osg, OpenThreads, osgDB and osgUtil are building correctly. 
But the linking with my App, notify following error: 


 
 Undefined symbols for architecture i386:
   osgUtil::IndexMeshVisitor::makeMesh(), referenced from:
   osgUtil::Optimizer::optimize(osg::Node*, unsigned int)in 
 libosgUtil.a(Optimizer.o)
   osgUtil::VertexCacheVisitor::optimizeVertices(), referenced from:
   osgUtil::Optimizer::optimize(osg::Node*, unsigned int)in 
 libosgUtil.a(Optimizer.o)
   osgUtil::VertexAccessOrderVisitor::optimizeOrder(), referenced from:
   osgUtil::Optimizer::optimize(osg::Node*, unsigned int)in 
 libosgUtil.a(Optimizer.o)
   osgUtil::GeometryCollector::reset(), referenced from:
   vtable for osgUtil::IndexMeshVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::IndexMeshVisitorin 
 libosgUtil.a(Optimizer.o)
   vtable for osgUtil::VertexCacheVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::VertexCacheVisitorin 
 libosgUtil.a(Optimizer.o)
   vtable for osgUtil::VertexAccessOrderVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::VertexAccessOrderVisitorin 
 libosgUtil.a(Optimizer.o)
   osgUtil::GeometryCollector::apply(osg::Geode), referenced from:
   vtable for osgUtil::IndexMeshVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::IndexMeshVisitorin 
 libosgUtil.a(Optimizer.o)
   vtable for osgUtil::VertexCacheVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::VertexCacheVisitorin 
 libosgUtil.a(Optimizer.o)
   vtable for osgUtil::VertexAccessOrderVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::VertexAccessOrderVisitorin 
 libosgUtil.a(Optimizer.o)
   typeinfo for osgUtil::GeometryCollector, referenced from:
   typeinfo for osgUtil::IndexMeshVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::IndexMeshVisitorin 
 libosgUtil.a(Optimizer.o)
   typeinfo for osgUtil::VertexCacheVisitorin libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::VertexCacheVisitorin 
 libosgUtil.a(Optimizer.o)
   typeinfo for osgUtil::VertexAccessOrderVisitorin 
 libosgUtil.a(Optimizer.o)
   construction vtable for 
 osgUtil::GeometryCollector-in-osgUtil::VertexAccessOrderVisitorin 
 libosgUtil.a(Optimizer.o)
   VTT for osgUtil::GeometryCollector, referenced from:
   osgUtil::GeometryCollector::~GeometryCollector()in 
 libosgUtil.a(Optimizer.o)
   osgUtil::GeometryCollector::~GeometryCollector()in 
 libosgUtil.a(Optimizer.o)
   vtable for osgUtil::GeometryCollector, referenced from:
   osgUtil::GeometryCollector::~GeometryCollector()in 
 libosgUtil.a(Optimizer.o)
   osgUtil::GeometryCollector::~GeometryCollector()in 
 libosgUtil.a(Optimizer.o)
   NOTE: a missing vtable usually means the first non-inline virtual member 
 function has no definition.
   triangle_stripper::tri_stripper::tri_stripper(std::vectorunsigned long, 
 std::allocatorunsigned long  const), referenced from:
   osgUtil::TriStripVisitor::stripify(osg::Geometry)  in 
 libosgUtil.a(TriStripVisitor.o)
   
 triangle_stripper::tri_stripper::Strip(std::vectortriangle_stripper::primitive_group,
  std::allocatortriangle_stripper::primitive_group *), referenced from:
   osgUtil::TriStripVisitor::stripify(osg::Geometry)  in 
 libosgUtil.a(TriStripVisitor.o)
   _OBJC_CLASS_$_CAEAGLLayer, referenced from:
   objc-class-ref in libosgViewer.a(GraphicsWindowIOS.o)
 ld: symbol(s) not found for architecture i386
 collect2: ld returned 1 exit status
 



I have also tried the newest iPhone Example on github. I get there similar 
error I mentioned above:


 
 ld: warning: ignoring file 
 /../IPhone_Project/3rdParty/lib/libFreeType_iphone_universal.a, missing 
 required architecture i386 in file
 
 Undefined symbols for architecture i386:
   _FT_Set_Pixel_Sizes, referenced from:
   FreeTypeFont::init() in libosgdb_freetype.a(FreeTypeFont.o)
   FreeTypeFont::setFontResolution(std::pairunsigned int, unsigned int 
 const) in libosgdb_freetype.a(FreeTypeFont.o)
   _FT_Done_Face, referenced from:
   FreeTypeFont::~FreeTypeFont() in libosgdb_freetype.a(FreeTypeFont.o)
   _FT_Load_Char, referenced from:
   FreeTypeFont::getGlyph(std::pairunsigned int, unsigned int const, 
 unsigned int) in libosgdb_freetype.a(FreeTypeFont.o)
   FreeTypeFont::getGlyph3D(unsigned int) in 
 libosgdb_freetype.a(FreeTypeFont.o)
   _FT_Outline_Decompose, referenced from:
   FreeTypeFont::getGlyph3D(unsigned int) in 
 libosgdb_freetype.a(FreeTypeFont.o)