Hi Büsra,

can you test the attached CMakeModules on your end? They disable the
QtKit-plugin and the Quicktime-plugin for Iphone(dev+sim). Place them in
the folder CMakeModules. Don't forget to reconfigure your project in cmake.

cheers,
Stephan


Am 26.05.11 11:54, schrieb Büsra Gülten:
> Hi, 
> 
> thank you, Stephan. 
> 
> I have to mention that I reinstalled Xcode 4.0.2 and removed Xcode 3.2.6. 
> Then I generated a Xcode-Project with CMake 2.8.4, and now I get bugs like 
> this one, again. 
> In the target osgdb_qt: 
> 
> 
>> Movies.h: CoreAudio/CoreAudio.h: No such file or directory (several times)
>> ImageCompression.h: OpenGL/OpenGL.h: No such file or directory (several 
>> times)
>>                                  QuartzCore/CoreVideo.h: No such file or 
>> directory (several times)
>> and also errors that depends on these errors.
> 
> 
> I´ve attached the CMakeCache.txt and I don´t know, what to do. Any help is 
> appreciated.
> 
> I wanted to create an iphone-specific Xcode-project-file, because on the one 
> hand Stephan has recommend that and on the other hand the project on 
> github.com doesn´t include collada-Plugin.But I need this plugin. 
> 
> I already downloaded the collada-dom-2.3 and tried to install, but 
> unfortunately without success. 
> 
>> /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
>> /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
>> lipo: can't open input file: 
>> /var/folders/05/05EvlzYZHJiS-GGPxKsDck+++TU/-Tmp-//ccQXb6gI.out (No such 
>> file or directory)
>> make[1]: *** [build/mac-1.4/obj/ioapi.o] Error 1
>> make: *** [all] Error 2
> 
> 
> I´m sorry that I ask many questions but I want really to build OSG on 
> iPhoneSimulator or Device. 
> Thank you!
> 
> Cheers,
> Büsra
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=39749#39749
> 
> 
> 
> 
> Attachments: 
> http://forum.openscenegraph.org//files/cmakecache_430.txt
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

# Locate QuickTime
# This module defines
# QUICKTIME_LIBRARY
# QUICKTIME_FOUND, if false, do not try to link to gdal 
# QUICKTIME_INCLUDE_DIR, where to find the headers
#
# $QUICKTIME_DIR is an environment variable that would
# correspond to the ./configure --prefix=$QUICKTIME_DIR
#
# Created by Eric Wing. 

# QuickTime on OS X looks different than QuickTime for Windows,
# so I am going to case the two.

IF(APPLE)
  FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h)
  FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
ELSE()
  FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
    $ENV{QUICKTIME_DIR}/include
    $ENV{QUICKTIME_DIR}
    NO_DEFAULT_PATH
  )
  FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
    PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
    NO_DEFAULT_PATH
    PATH_SUFFIXES include
  )
  FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h)

  FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime
    $ENV{QUICKTIME_DIR}/lib
    $ENV{QUICKTIME_DIR}
    NO_DEFAULT_PATH
  )
  FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime
    PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
    NO_DEFAULT_PATH
    PATH_SUFFIXES lib64 lib
  )
  FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
ENDIF()


SET(QUICKTIME_FOUND "NO")
IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
  SET(QUICKTIME_FOUND "YES")
ENDIF()

IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
    SET(QUICKTIME_FOUND "NO")
ENDIF()

IF(APPLE)
    #Quicktime is not supported under 64bit OSX build so we need to detect it 
and disable it.
    #First check to see if we are running with a native 64-bit compiler (10.6 
default) and implicit arch
    IF(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
        SET(QUICKTIME_FOUND "NO")
    ELSE()
        #Otherwise check to see if 64-bit is explicitly called for.
        LIST(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
        IF(NOT has64Compile EQUAL -1)
            SET(QUICKTIME_FOUND "NO")
        ENDIF()
    ENDIF()
ENDIF()
# Locate Apple QTKit (next-generation QuickTime)
# This module defines
# QTKIT_LIBRARY
# QTKIT_FOUND, if false, do not try to link to gdal 
# QTKIT_INCLUDE_DIR, where to find the headers
#
# $QTKIT_DIR is an environment variable that would
# correspond to the ./configure --prefix=$QTKIT_DIR
#
# Created by Eric Wing. 

# QTKit on OS X looks different than QTKit for Windows,
# so I am going to case the two.

IF(APPLE)
  FIND_PATH(QTKIT_INCLUDE_DIR QTKit/QTKit.h)
  FIND_LIBRARY(QTKIT_LIBRARY QTKit)
ENDIF()


SET(QTKIT_FOUND "NO")
IF(QTKIT_LIBRARY AND QTKIT_INCLUDE_DIR)
  SET(QTKIT_FOUND "YES")
ENDIF()

IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
    SET(QTKIT_FOUND "NO")
ENDIF()

IF(APPLE)
    # Technically QTKit is 64-bit capable, but the QTKit plug-in currently uses
    # a few 32-bit only APIs to bridge QTKit and Core Video.
    # As such, the plugin won't compile for 64-bit until Apple fixes this hole 
    # in their API.
    # For simplicitly, I pretend QTKit is only 32-bit, but if/when Apple fixes
    # this, we need an OS version check.
    # Snow Leopard still lacks a 64-bit path for this.
    #First check to see if we are running with a native 64-bit compiler (10.6 
default) and implicit arch
    IF(NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SIZEOF_VOID_P EQUAL 8)
        SET(QTKIT_FOUND "NO")
    ELSE()
        #Otherwise check to see if 64-bit is explicitly called for.
        LIST(FIND CMAKE_OSX_ARCHITECTURES "x86_64" has64Compile)
        IF(NOT has64Compile EQUAL -1)
            SET(QTKIT_FOUND "NO")
        ENDIF()
    ENDIF()
ENDIF()

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to