Re: [osg-users] [build] Can't build version osg 2.9.11 for IOS using CMake

2011-08-05 Thread Stephan Maximilian Huber
Hi,

Am 04.08.11 05:16, schrieb Aruna Faster:
 Any help greatly appreciated.

Can you provide some more details, like used cMake- and XCode-version,
what OS you are using?

Seems like a bug with cmake and a newer xcode version when compiling
with the IOS-sdk:

http://cmake.org/Bug/view.php?id=12288

It works on my machine with xcode 3.2.x and cmake 2.8.x

Perhaps you can use the xcode-project files from
https://github.com/stmh/osg/tree/iphone

cheers,

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


Re: [osg-users] [build] Can't build version osg 2.9.11 for IOS using CMake

2011-08-04 Thread Aruna Faster
Hi guys,
I tried to compile the OSG for ios by following instructions given in this 
thread. But the compilation fails with error given below.


Code:
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
  The C compiler /usr/bin/gcc is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: 
/Volumes/MY_DATA/AugmentedReality/osg/OpenSceneGraph-3.0.1-ios/CMakeFiles/CMakeTmp

  

  Run Build Command:/opt/local/bin/cmakexbuild -project
  CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec -configuration
  Debug

  === BUILD NATIVE TARGET cmTryCompileExec OF PROJECT CMAKE_TRY_COMPILE WITH
  CONFIGURATION Debug ===

  Check dependencies

  target specifies product type 'com.apple.product-type.tool', but there's no
  such product type for the 'iphoneos' platform


  ** BUILD FAILED **

  
  The following build commands failed:

Check dependencies

  (1 failure)

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)


-- Configuring incomplete, errors occurred!




Any help greatly appreciated.
Thanks.

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





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


Re: [osg-users] [build] Can't build version osg 2.9.11 for IOS using CMake

2011-04-03 Thread Hoang My Duc
Hi,

I have the same problem.
I did like the instruction in readme.txt for both 2.9.11 and trunk but cannot 
build because the omission of OpenGL headers.

The think is that when I press configure button of CMake first time, the 
following variable is shown in red:
OPENGLES_LIBRARY=OPENGLES LIBRARY - NOT FOUND

I have also installed XCode 3.2.6 with IPhone SDK.
My MacBookWhite has an OSX 10.6

I don't know how to fix it, please help me.

Thank you!

Cheers,
Hoang

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





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


Re: [osg-users] [build] Can't build version osg 2.9.11 for IOS using CMake

2011-04-03 Thread Stephan Huber
Hi,

there's a pending submission for the readme, I added a working command
line to it. Here's the command line to get a working xcode project for
buildong osg for a ios-device:

$ cmake -G Xcode \
-D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
-D CMAKE_CXX_FLAGS:STRING=-ftree-vectorize -fvisibility-inlines-hidden
-mno-thumb -arch armv6 -pipe -no-cpp-precomp -miphoneos-version-min=3.1
-mno-thumb \
-D BUILD_OSG_APPLICATIONS:BOOL=OFF \
-D OSG_BUILD_FRAMEWORKS:BOOL=OFF \
-D OSG_WINDOWING_SYSTEM:STRING=IOS \
-D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
-D CMAKE_OSX_ARCHITECTURES:STRING=armv6;armv7 \
-D
CMAKE_OSX_SYSROOT:STRING=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
\
-D OSG_GL1_AVAILABLE:BOOL=OFF \
-D OSG_GL2_AVAILABLE:BOOL=OFF \
-D OSG_GLES1_AVAILABLE:BOOL=ON \
-D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \
-D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \
-D OSG_GL_LIBRARY_STATIC:BOOL=OFF \
-D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \
-D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \
-D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \
-D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \
-D DYNAMIC_OPENTHREADS:BOOL=OFF .

check all mentioned cmake-variables and try again. Good luck.


Hope that helps,
Stephan



02.04.11 04:04, schrieb Hoang My Duc:
 Hi,
 
 I have the same problem.
 I did like the instruction in readme.txt for both 2.9.11 and trunk but cannot 
 build because the omission of OpenGL headers.
 
 The think is that when I press configure button of CMake first time, the 
 following variable is shown in red:
 OPENGLES_LIBRARY=OPENGLES LIBRARY - NOT FOUND
 
 I have also installed XCode 3.2.6 with IPhone SDK.
 My MacBookWhite has an OSX 10.6
 
 I don't know how to fix it, please help me.
 
 Thank you!
 
 Cheers,
 Hoang
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=38172#38172
 
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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


[osg-users] [build] Can't build version osg 2.9.11 for IOS using CMake

2011-03-31 Thread peng peng
Hi,

I used CMake build osg for IOS version. 
Operate the readme.txt below step by step:
-- Release note on iOS build
..

I Generate the xCode project and open it. Set the SDK iPhone device 3.2. 
Build it.
There are so many error: Can not find the OpenGL/gl.h..

Why?

I think I forgot some settings. But I don't know where


Thank you!

Cheers,
peng

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





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


Re: [osg-users] [build] Can't build version osg 2.9.11 for IOS using CMake

2011-03-31 Thread Thomas Hogarth
Hi Peng

Sounds like you didn't set you build to OpenGL ES. Check your cmake config
again,

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