Re: [osg-users] Compiling on Snow Leopard, problem with GDAL

2010-07-12 Thread Stephan Huber
Hi,

if you are compiling against 64bit, then you can't use the
quicktime-plugin, as quicktime is 32bit only. Set
OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX to imageio and try a recompile.


cheers,
Stephan

Am 12.07.10 20:20, schrieb Alejandro Aguilar Sierra:
> That works, thank you!
> 
> Now it stops at osgdb_qt, complaining about Movie not defined
> 
> [ 97%] Built target osgdb_imageio
> [ 98%] Building CXX object
> src/osgPlugins/quicktime/CMakeFiles/osgdb_qt.dir/MovieData.cpp.o
> In file included from
> /Users/ale/src/OpenSceneGraph-2.8.3/src/osgPlugins/quicktime/MovieData.cpp:14:
> /Users/ale/src/OpenSceneGraph-2.8.3/src/osgPlugins/quicktime/MovieData.h:54:
> error: ISO C++ forbids declaration of ‘Movie’ with no type
> /Users/ale/src/OpenSceneGraph-2.8.3/src/osgPlugins/quicktime/MovieData.h:54:
> error: ‘Movie’ declared as an ‘inline’ field
> 
> However Movie is defined in Movies.h included by QuickTime.h
> 
> typedef struct MovieType**  Movie;
> 
> What is the problem now? Any idea?
> 
> Regards,
> 
> -- A.
> 
> On Mon, Jul 12, 2010 at 10:57 AM, Stephan Huber  
> wrote:
>> Hi,
>>
>> Am 12.07.10 16:46, schrieb Alejandro Aguilar Sierra:
>>> Why it is trying to compile for PPC in an Intel architecture?
>>
>> osg tries to build universal libs on mac os x. Set
>> CMAKE_OSX_ARCHITECTURES according to your needs and do a recompile.
>>
>> cheers,
>> Stephan
> ___
> 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


Re: [osg-users] Compiling on Snow Leopard, problem with GDAL

2010-07-12 Thread Alejandro Aguilar Sierra
That works, thank you!

Now it stops at osgdb_qt, complaining about Movie not defined

[ 97%] Built target osgdb_imageio
[ 98%] Building CXX object
src/osgPlugins/quicktime/CMakeFiles/osgdb_qt.dir/MovieData.cpp.o
In file included from
/Users/ale/src/OpenSceneGraph-2.8.3/src/osgPlugins/quicktime/MovieData.cpp:14:
/Users/ale/src/OpenSceneGraph-2.8.3/src/osgPlugins/quicktime/MovieData.h:54:
error: ISO C++ forbids declaration of ‘Movie’ with no type
/Users/ale/src/OpenSceneGraph-2.8.3/src/osgPlugins/quicktime/MovieData.h:54:
error: ‘Movie’ declared as an ‘inline’ field

However Movie is defined in Movies.h included by QuickTime.h

typedef struct MovieType**  Movie;

What is the problem now? Any idea?

Regards,

-- A.

On Mon, Jul 12, 2010 at 10:57 AM, Stephan Huber  wrote:
> Hi,
>
> Am 12.07.10 16:46, schrieb Alejandro Aguilar Sierra:
>> Why it is trying to compile for PPC in an Intel architecture?
>
> osg tries to build universal libs on mac os x. Set
> CMAKE_OSX_ARCHITECTURES according to your needs and do a recompile.
>
> cheers,
> Stephan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Compiling on Snow Leopard, problem with GDAL

2010-07-12 Thread Stephan Huber
Hi,

Am 12.07.10 16:46, schrieb Alejandro Aguilar Sierra:
> Why it is trying to compile for PPC in an Intel architecture?

osg tries to build universal libs on mac os x. Set
CMAKE_OSX_ARCHITECTURES according to your needs and do a recompile.

cheers,
Stephan

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


[osg-users] Compiling on Snow Leopard, problem with GDAL

2010-07-12 Thread Alejandro Aguilar Sierra
Hello:

I am trying to compile osg 2.8.3 in an iMac OSX 10.6.4 Snow leopard,
cmake 2.6-4. I have the GAL framework that came with QGis (
http://www.kyngchaos.com/software:qgis ) and also a more recent
version I compiled from source and installed to conventional UNIX
/usr/local subdir.

It compiles fine until 80%, when complains about "missing required
architecture ppc in file".

[ 79%] Built target osgdb_vtf
[ 80%] Building CXX object
src/osgPlugins/gdal/CMakeFiles/osgdb_gdal.dir/ReaderWriterGDAL.cpp.o
[ 80%] Building CXX object
src/osgPlugins/gdal/CMakeFiles/osgdb_gdal.dir/DataSetLayer.cpp.o
Linking CXX shared module ../../../lib/osgPlugins-2.8.3/osgdb_gdal.so
ld: warning: in
/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks//gdal.framework/gdal,
missing required architecture ppc in file
Undefined symbols for architecture ppc:
  "_GDALGetDataTypeName", referenced from:
  ReaderWriterGDAL::local_readImage(std::basic_string, std::allocator > const&,
osgDB::ReaderWriter::Options const*)in ReaderWriterGDAL.cpp.o
  ReaderWriterGDAL::local_readHeigh

Why it is trying to compile for PPC in an Intel architecture?

Any hint?

Regards,

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