Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-10 Thread Robert Osfield
Hi Chuck et. al,

On Tue, Mar 9, 2010 at 10:06 PM, Chuck Seberino seber...@energid.orgwrote:

 How about something like:

 #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 OFF)
 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 OFF)
 endif()
 endif()


I can't say whether it'll work or not as I don't have an OSX box to play on
but it looks like it might work.  To get the ball rolling I've added the
following to the end of FindQuickTime.cmake:

SET(QUICKTIME_FOUND NO)
IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
  SET(QUICKTIME_FOUND YES)
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()

The only changes I made were to make the things a bit more consistent style
wise with the rest of the FindQuickTime.cmake.  I've attached the modified
FindQuickTime.cmake and also checked it into svn/trunk.  If it's not quite
right then we can tweak it.

I'm about to check in Nico + Jordi's changes to
OpenSceneGraph/CMakeLists.txt for detecting the 10.6 SDK, so all these
changes together should hopefully help the OSX build along.

Could OSX users try out the latest in svn/trunk?

Thanks,
Robert.


FindQuickTime.cmake
Description: Binary data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-09 Thread Nico Kruithof
Hi Jordi,

I submitted a patch to be able to use the 10.6 framework. The trunk
compiles, with this patch together with the two CMake defines you provided.

Bests,
Nico

On Mon, Mar 8, 2010 at 2:08 PM, Nico Kruithof nicokruit...@gmail.comwrote:

 Hi Jordi,

 I know for certain that the 10.6 framework was not specified in the root
 CMakeLists.txt, so I added that. I'll try to retrace my steps tomorrow.

 --
 Nico


 On Mon, Mar 8, 2010 at 1:05 PM, Jordi Torres jtorresfa...@gmail.comwrote:

 Hi Nico and Tobias,

 This topic have been discussed in this list several times. In order to
 compile osg for x86_64 you must disable Quicktime plugin and change the
 default plugin to imageio, and set the osg_windowing_system to Cocoa. Then
 you can compile with makefiles from a console, instead of using XCode.

 So, in CMake:

 OSG_WINDOWING_SYSTEM = Cocoa
 OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX = imageio

 Hope this helps.




 2010/3/8 Nico Kruithof nicokruit...@gmail.com

 Hi,

 I managed to get OSG compiling on OSX (Snow Leopard). From the top of my
 head, I'm using the imageio instead of quicktime. Then I had to specify the
 10.6 platform in the main CMakeLists.txt and disable Quicktime. I planned to
 submit these changes, but didn't have time yet. I'll give it a go tomorrow.

 Bests,
 Nico


 On Mon, Mar 8, 2010 at 12:05 PM, Tobias Duckworth t...@orogenic.netwrote:

 Hello again,

 Thanks for your prompt response.

 Yes disabling Quicktime is fine for my purposes - However, from what I
 can work out the cleanest way to achieve this will be to get generated 
 XCode
 projects, then I can pick and choose what gets built - I don't really want
 to hack the Makefiles and there doesn't appear to be a way to disable the
 Quicktime build from CMake.

 I look forward to hearing from 'the OSX guys', and hope that in the
 future I can provide similar support to others.  I'd be happy to update the
 OSX build instructions for example, once I have managed to build.

 Cheers,
 Tobias

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





 ___
 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




 --
 Jordi Torres Fabra

 gvSIG 3D blog
 http://gvsig3d.blogspot.com
 Instituto de Automática e Informática Industrial
 http://www.ai2.upv.es

 ___
 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] Could not find plugin on Mac OS X 10.6.2

2010-03-09 Thread Jordi Torres
Hi Nico,

I have seen your submit, I am now compiling for i386 and x86_64. My fingers
are crossed. ;)

Best regards.

2010/3/9 Nico Kruithof nicokruit...@gmail.com

 Hi Jordi,

 I submitted a patch to be able to use the 10.6 framework. The trunk
 compiles, with this patch together with the two CMake defines you provided.

 Bests,
 Nico


 On Mon, Mar 8, 2010 at 2:08 PM, Nico Kruithof nicokruit...@gmail.comwrote:

 Hi Jordi,

 I know for certain that the 10.6 framework was not specified in the root
 CMakeLists.txt, so I added that. I'll try to retrace my steps tomorrow.

 --
 Nico


 On Mon, Mar 8, 2010 at 1:05 PM, Jordi Torres jtorresfa...@gmail.comwrote:

 Hi Nico and Tobias,

 This topic have been discussed in this list several times. In order to
 compile osg for x86_64 you must disable Quicktime plugin and change the
 default plugin to imageio, and set the osg_windowing_system to Cocoa. Then
 you can compile with makefiles from a console, instead of using XCode.

 So, in CMake:

 OSG_WINDOWING_SYSTEM = Cocoa
 OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX = imageio

 Hope this helps.




 2010/3/8 Nico Kruithof nicokruit...@gmail.com

 Hi,

 I managed to get OSG compiling on OSX (Snow Leopard). From the top of my
 head, I'm using the imageio instead of quicktime. Then I had to specify the
 10.6 platform in the main CMakeLists.txt and disable Quicktime. I planned 
 to
 submit these changes, but didn't have time yet. I'll give it a go tomorrow.

 Bests,
 Nico


 On Mon, Mar 8, 2010 at 12:05 PM, Tobias Duckworth t...@orogenic.netwrote:

 Hello again,

 Thanks for your prompt response.

 Yes disabling Quicktime is fine for my purposes - However, from what I
 can work out the cleanest way to achieve this will be to get generated 
 XCode
 projects, then I can pick and choose what gets built - I don't really want
 to hack the Makefiles and there doesn't appear to be a way to disable the
 Quicktime build from CMake.

 I look forward to hearing from 'the OSX guys', and hope that in the
 future I can provide similar support to others.  I'd be happy to update 
 the
 OSX build instructions for example, once I have managed to build.

 Cheers,
 Tobias

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





 ___
 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




 --
 Jordi Torres Fabra

 gvSIG 3D blog
 http://gvsig3d.blogspot.com
 Instituto de Automática e Informática Industrial
 http://www.ai2.upv.es

 ___
 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




-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-09 Thread Stephan Huber
Hi,

Am 08.03.10 13:19, schrieb Tobias Duckworth:
 Are you able to provide a method to create the XCode projects from CMake as 
 so many people are suggesting?

Just use the xcode generators. if you use cmake from a command line,
then just use the following command

% ccmake . -G Xcode

this should create a xcode project holding all necessary stuff.

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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-09 Thread Stephan Huber
Hi,

Am 09.03.10 17:52, schrieb Nico Kruithof:
 I submitted a patch to be able to use the 10.6 framework. The trunk
 compiles, with this patch together with the two CMake defines you provided.

Your fixes will probably break compilation of the quicktime-plugin on
windows. There should be another solution to this problem. Perhaps when
compiling for 64bit setting QUICKTIME_FOUND to false. But I don't know a
good way to tackle this in cmake.

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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-09 Thread Nico Kruithof
Hi Stephan,

The problem was that quicktime was found, but that it found the 32 bit
libraries. I thought that I tested for the default settings so that the test
would pass except if you explicitly changed the image library.

-- Nico

On Tue, Mar 9, 2010 at 10:45 PM, Stephan Huber ratzf...@digitalmind.dewrote:

 Hi,

 Am 09.03.10 17:52, schrieb Nico Kruithof:
  I submitted a patch to be able to use the 10.6 framework. The trunk
  compiles, with this patch together with the two CMake defines you
 provided.

 Your fixes will probably break compilation of the quicktime-plugin on
 windows. There should be another solution to this problem. Perhaps when
 compiling for 64bit setting QUICKTIME_FOUND to false. But I don't know a
 good way to tackle this in cmake.

 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] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Robert Osfield
Hi Tobias,

The hand maintained XCode projects are deprecated, and I believe out of date
at present.  Please use CMake to generate the XCode projects.

Robert.

On Sat, Mar 6, 2010 at 12:46 PM, Tobias Duckworth t...@orogenic.net wrote:

 Hi,

 I am having the same problem and struggling to find a solution.

 I'm building using the XCode project, and everything was working fine in
 2.8.2, the plugins were found.

 However, since updating to 2.9.6 it appears the OSG_PLUGIN_EXTENSION is not
 set - Where should this be set please?

 I get the following when adding some debug...

 using libraryName osgPlugins-2.9.6/osgdb_3dsOSG_PLUGIN_EXTENSION
 Trying /Users/tobiasduckworth/Library/Application
 Support/OpenSceneGraph/PlugIns/osgPlugins-2.9.6/osgdb_3dsOSG_PLUGIN_EXTENSION
 Trying /Library/Application
 Support/OpenSceneGraph/PlugIns/osgPlugins-2.9.6/osgdb_3dsOSG_PLUGIN_EXTENSION
 Trying /Users/tobiasduckworth/Library/Application
 Support/OpenSceneGraph/PlugIns/osgdb_3dsOSG_PLUGIN_EXTENSION
 Trying /Library/Application
 Support/OpenSceneGraph/PlugIns/osgdb_3dsOSG_PLUGIN_EXTENSION

 I found a recent post about the freetype mingw changes, which apparently
 caused this problem - However looking at the diffs from 22nd January 2010
 (revision 10983) which revert this change I cannot see how the
 OSG_PLUGIN_EXTENSION definition is affected.

 Please could somebody explain where OSG_PLUGIN_EXTENSION should be set?

 Many thanks
 ...

 Thank you!

 Cheers,
 Tobias

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





 ___
 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] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Tobias Duckworth
Hello,

Thankyou for your reply.

I have tried building using the CMake system, following the instructions in the 
README.txt file - This fails on building the quicktime stuff as I'm trying to 
build for x86_64.

Also, you state, and others state, that CMake should be used to build the XCode 
project, then XCode used to do the actual build - However, it is not clear to 
me how this should be achieved.

I've looked at the PlatformSpecifics page on the wiki, and read the README file 
- All this information seems out of date and conflicts with each other - Some 
say use the XCode project (README), some say use CMake to build the XCode 
project, some are broken links.

Is there a definitive guide for MacOS? 

Many thanks for your help.

... 

Thank you!

Cheers,
Tobias

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





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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Robert Osfield
Hi Tobias,

On Mon, Mar 8, 2010 at 10:10 AM, Tobias Duckworth t...@orogenic.net wrote:

 Hello,

 Thankyou for your reply.

 I have tried building using the CMake system, following the instructions in
 the README.txt file - This fails on building the quicktime stuff as I'm
 trying to build for x86_64.


I don't recall the details, but you'll need to disable quicktime for the
64bit build as Quicktime is not 64bit.  OSX is still pretty patchy when it
comes to 64bit support, many years behind other platforms, so I'm afraid
there is still a few hoops you have to jump through.

 Is there a definitive guide for MacOS?

I have to leave this to OSX crowd as I really don't have the expertise.  The
only time I ever touch OSX is using CMake with Makefiles in which case it's
really little different from any other unix platforms.

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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Tobias Duckworth
Hello again,

Thanks for your prompt response.

Yes disabling Quicktime is fine for my purposes - However, from what I can work 
out the cleanest way to achieve this will be to get generated XCode projects, 
then I can pick and choose what gets built - I don't really want to hack the 
Makefiles and there doesn't appear to be a way to disable the Quicktime build 
from CMake.

I look forward to hearing from 'the OSX guys', and hope that in the future I 
can provide similar support to others.  I'd be happy to update the OSX build 
instructions for example, once I have managed to build.

Cheers,
Tobias

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





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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Nico Kruithof
Hi,

I managed to get OSG compiling on OSX (Snow Leopard). From the top of my
head, I'm using the imageio instead of quicktime. Then I had to specify the
10.6 platform in the main CMakeLists.txt and disable Quicktime. I planned to
submit these changes, but didn't have time yet. I'll give it a go tomorrow.

Bests,
Nico

On Mon, Mar 8, 2010 at 12:05 PM, Tobias Duckworth t...@orogenic.net wrote:

 Hello again,

 Thanks for your prompt response.

 Yes disabling Quicktime is fine for my purposes - However, from what I can
 work out the cleanest way to achieve this will be to get generated XCode
 projects, then I can pick and choose what gets built - I don't really want
 to hack the Makefiles and there doesn't appear to be a way to disable the
 Quicktime build from CMake.

 I look forward to hearing from 'the OSX guys', and hope that in the future
 I can provide similar support to others.  I'd be happy to update the OSX
 build instructions for example, once I have managed to build.

 Cheers,
 Tobias

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





 ___
 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] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Luigi Calori

Hi Tobias,

I do not know at all OSG, the Cmake build is structured to search at 
configure time (cmake-gui or ccmake or cmake-Dpreset variable) the
needed plugin dependencies and include plugin code if the dependencies 
is found.
The search code for dependencies are either in 
CMakeModules/Findxxx.cmake or in the cmake root/Modules folder
It seem to me that the user is not currently able to configure at config 
time which plugin to build.
Probably the easiest thing in your case would be to edit the 
CMakeModules/FindQuickTime.cmake to make it fail in your situation 
(adding an exception for OSX and 64 bit)

This patch has probably some chances to be accepted.

Otherwise, a more general solution, would be to insert some form of user 
CMake configurability.


One of the simplest think would be to allow to override the 
CMAKE_MODULE_PATH.
So you do exactly the same change to FindQuickTime.cmake but not need to 
change the svn copy, just put it in your module override folder and 
configure with

cmake -DCMAKE_MODULE_PATH:PATH=your override module folder

I have tested module overriding in windows and Linux and it seem to work.

in order to activate module override, a simple patch to master 
CMakeLists.txt is needed


If I am not alone in asking for module override, I' ll send a submission 
request


HTH

Luigi

Tobias Duckworth wrote

Hello again,

Thanks for your prompt response.

Yes disabling Quicktime is fine for my purposes - However, from what I can work 
out the cleanest way to achieve this will be to get generated XCode projects, 
then I can pick and choose what gets built - I don't really want to hack the 
Makefiles and there doesn't appear to be a way to disable the Quicktime build 
from CMake.

I look forward to hearing from 'the OSX guys', and hope that in the future I 
can provide similar support to others.  I'd be happy to update the OSX build 
instructions for example, once I have managed to build.

Cheers,
Tobias

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





___
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] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Jordi Torres
Hi Nico and Tobias,

This topic have been discussed in this list several times. In order to
compile osg for x86_64 you must disable Quicktime plugin and change the
default plugin to imageio, and set the osg_windowing_system to Cocoa. Then
you can compile with makefiles from a console, instead of using XCode.

So, in CMake:

OSG_WINDOWING_SYSTEM = Cocoa
OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX = imageio

Hope this helps.




2010/3/8 Nico Kruithof nicokruit...@gmail.com

 Hi,

 I managed to get OSG compiling on OSX (Snow Leopard). From the top of my
 head, I'm using the imageio instead of quicktime. Then I had to specify the
 10.6 platform in the main CMakeLists.txt and disable Quicktime. I planned to
 submit these changes, but didn't have time yet. I'll give it a go tomorrow.

 Bests,
 Nico


 On Mon, Mar 8, 2010 at 12:05 PM, Tobias Duckworth t...@orogenic.netwrote:

 Hello again,

 Thanks for your prompt response.

 Yes disabling Quicktime is fine for my purposes - However, from what I can
 work out the cleanest way to achieve this will be to get generated XCode
 projects, then I can pick and choose what gets built - I don't really want
 to hack the Makefiles and there doesn't appear to be a way to disable the
 Quicktime build from CMake.

 I look forward to hearing from 'the OSX guys', and hope that in the future
 I can provide similar support to others.  I'd be happy to update the OSX
 build instructions for example, once I have managed to build.

 Cheers,
 Tobias

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





 ___
 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




-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Tobias Duckworth
Hi Jordi,

Thanks for your reply.

I have already changed the windowing system to Cocoa, but had forgotten about 
the imageio bit - Many thanks.

Are you able to provide a method to create the XCode projects from CMake as so 
many people are suggesting?

Is this the current suggested method for building on Mac OS?  Or should the 
entire project be built from the command line? 

I'm sorry in advance if you feel this question has also been answered several 
times, but I'm unable to find a definitive answer to it.

... 

Thank you!

Cheers,
Tobias

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





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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Jordi Torres
Hi Tobias,

I come from unix world, so I rather to use the command-line.
Sorry for the inconvenience.

Regards.

2010/3/8 Tobias Duckworth t...@orogenic.net

 Hi Jordi,

 Thanks for your reply.

 I have already changed the windowing system to Cocoa, but had forgotten
 about the imageio bit - Many thanks.

 Are you able to provide a method to create the XCode projects from CMake as
 so many people are suggesting?

 Is this the current suggested method for building on Mac OS?  Or should the
 entire project be built from the command line?

 I'm sorry in advance if you feel this question has also been answered
 several times, but I'm unable to find a definitive answer to it.

 ...

 Thank you!

 Cheers,
 Tobias

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





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




-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Tobias Duckworth
Hi Jordi,

I come from a Linux background and also prefer the command line - However I was 
under the impression (perhaps wrongly not having managed to build OSG from the 
command line yet) that the command line version would not generate the 
frameworks I need. 

... 

Thank you!

Cheers,
Tobias

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





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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-03-08 Thread Nico Kruithof
Hi Jordi,

I know for certain that the 10.6 framework was not specified in the root
CMakeLists.txt, so I added that. I'll try to retrace my steps tomorrow.

--
Nico

On Mon, Mar 8, 2010 at 1:05 PM, Jordi Torres jtorresfa...@gmail.com wrote:

 Hi Nico and Tobias,

 This topic have been discussed in this list several times. In order to
 compile osg for x86_64 you must disable Quicktime plugin and change the
 default plugin to imageio, and set the osg_windowing_system to Cocoa. Then
 you can compile with makefiles from a console, instead of using XCode.

 So, in CMake:

 OSG_WINDOWING_SYSTEM = Cocoa
 OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX = imageio

 Hope this helps.




 2010/3/8 Nico Kruithof nicokruit...@gmail.com

 Hi,

 I managed to get OSG compiling on OSX (Snow Leopard). From the top of my
 head, I'm using the imageio instead of quicktime. Then I had to specify the
 10.6 platform in the main CMakeLists.txt and disable Quicktime. I planned to
 submit these changes, but didn't have time yet. I'll give it a go tomorrow.

 Bests,
 Nico


 On Mon, Mar 8, 2010 at 12:05 PM, Tobias Duckworth t...@orogenic.netwrote:

 Hello again,

 Thanks for your prompt response.

 Yes disabling Quicktime is fine for my purposes - However, from what I
 can work out the cleanest way to achieve this will be to get generated XCode
 projects, then I can pick and choose what gets built - I don't really want
 to hack the Makefiles and there doesn't appear to be a way to disable the
 Quicktime build from CMake.

 I look forward to hearing from 'the OSX guys', and hope that in the
 future I can provide similar support to others.  I'd be happy to update the
 OSX build instructions for example, once I have managed to build.

 Cheers,
 Tobias

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





 ___
 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




 --
 Jordi Torres Fabra

 gvSIG 3D blog
 http://gvsig3d.blogspot.com
 Instituto de Automática e Informática Industrial
 http://www.ai2.upv.es

 ___
 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] Could not find plugin on Mac OS X 10.6.2

2010-03-07 Thread Tobias Duckworth
Hi,

I am having the same problem and struggling to find a solution.

I'm building using the XCode project, and everything was working fine in 2.8.2, 
the plugins were found.

However, since updating to 2.9.6 it appears the OSG_PLUGIN_EXTENSION is not set 
- Where should this be set please?

I get the following when adding some debug...

using libraryName osgPlugins-2.9.6/osgdb_3dsOSG_PLUGIN_EXTENSION
Trying /Users/tobiasduckworth/Library/Application 
Support/OpenSceneGraph/PlugIns/osgPlugins-2.9.6/osgdb_3dsOSG_PLUGIN_EXTENSION
Trying /Library/Application 
Support/OpenSceneGraph/PlugIns/osgPlugins-2.9.6/osgdb_3dsOSG_PLUGIN_EXTENSION
Trying /Users/tobiasduckworth/Library/Application 
Support/OpenSceneGraph/PlugIns/osgdb_3dsOSG_PLUGIN_EXTENSION
Trying /Library/Application 
Support/OpenSceneGraph/PlugIns/osgdb_3dsOSG_PLUGIN_EXTENSION

I found a recent post about the freetype mingw changes, which apparently caused 
this problem - However looking at the diffs from 22nd January 2010 (revision 
10983) which revert this change I cannot see how the OSG_PLUGIN_EXTENSION 
definition is affected.

Please could somebody explain where OSG_PLUGIN_EXTENSION should be set?

Many thanks
... 

Thank you!

Cheers,
Tobias

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





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


[osg-users] Could not find plugin on Mac OS X 10.6.2

2010-01-09 Thread Wadim Schmidt
Hi,

(sorry for my bad English)
i am new on OSG and i have a little problem with our project on the University.

My OpenScneneGraph is Version 2.9.6 and the project was created with 2.8.0, i 
think.

I generate the project with Cmake 2.8.0 for Mac OS X 10.6.2 and build with 
Xcode 3.2.
When i start this project from terminal it run for some seconds and after that 
it end with this last messages on terminal

#
...
...
itr='/Users/***/Library/Application Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying /Users/***/Library/Application 
Support/OpenSceneGraph/PlugIns/osgdb_bmpOSG_PLUGIN_EXTENSION ...
itr='/Library/Application Support/OpenSceneGraph/PlugIns'
FindFileInPath() : trying /Library/Application 
Support/OpenSceneGraph/PlugIns/osgdb_bmpOSG_PLUGIN_EXTENSION ...
Warning: dynamic library 'osgPlugins-2.9.6/osgdb_bmpOSG_PLUGIN_EXTENSION' does 
not exist (or isn't readable):
dlopen(osgPlugins-2.9.6/osgdb_bmpOSG_PLUGIN_EXTENSION, 9): image not found
DynamicLibrary::failed loading osgPlugins-2.9.6/osgdb_bmpOSG_PLUGIN_EXTENSION
Warning: Could not find plugin to read objects from file h-Map.bmp.
Bus error
logout
# 

The Project search for the Plugins and find nothing.
The reason for this, OSG_PLUGIN_EXTENSION is not set.

WHERE I CAN DO THIS?

if i run osgconv --formats on my System if find the Plugins and set the 
OSG_PLUGIN_EXTENSION to .so (thats right)

LD_LIBRARY_PATH and OSG_LIBRARY_PATH are set to plugin folder with my *.so Files

When i delete all parts to load some pictures from my source the project runs 
(black window)

Can sombody help me with my problem? Any Ideas?

Thank you!

Cheers,
Wadim

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





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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-01-09 Thread Tatsuhiro Nishioka
Hi,

OSG_PLUGIN_EXTENSION is not an environment variable, but compiler option.
-DOSG_PLUGIN_EXTENSION=.so  is needed when building osgDB.

I don't use cmake myself but there might be some cmake option for clearing 
specify it.

BTW, I believe osgDB code must be changed so that we get compiler error when 
this option is not set, instead of using OSG_PLUGIN_EXTENSION as an 
extension. That's weird.


Best,

Tat


On Jan 10, 2010, at 12:24 AM, Wadim Schmidt wrote:

 Hi,

 (sorry for my bad English)
 i am new on OSG and i have a little problem with our project on the 
 University.

 My OpenScneneGraph is Version 2.9.6 and the project was created with 2.8.0, i 
 think.

 I generate the project with Cmake 2.8.0 for Mac OS X 10.6.2 and build with 
 Xcode 3.2.
 When i start this project from terminal it run for some seconds and after 
 that it end with this last messages on terminal

 #
 ...
 ...
 itr='/Users/***/Library/Application Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying /Users/***/Library/Application 
 Support/OpenSceneGraph/PlugIns/osgdb_bmpOSG_PLUGIN_EXTENSION ...
 itr='/Library/Application Support/OpenSceneGraph/PlugIns'
 FindFileInPath() : trying /Library/Application 
 Support/OpenSceneGraph/PlugIns/osgdb_bmpOSG_PLUGIN_EXTENSION ...
 Warning: dynamic library 'osgPlugins-2.9.6/osgdb_bmpOSG_PLUGIN_EXTENSION' 
 does not exist (or isn't readable):
 dlopen(osgPlugins-2.9.6/osgdb_bmpOSG_PLUGIN_EXTENSION, 9): image not found
 DynamicLibrary::failed loading 
 osgPlugins-2.9.6/osgdb_bmpOSG_PLUGIN_EXTENSION
 Warning: Could not find plugin to read objects from file h-Map.bmp.
 Bus error
 logout
 # 

 The Project search for the Plugins and find nothing.
 The reason for this, OSG_PLUGIN_EXTENSION is not set.

 WHERE I CAN DO THIS?

 if i run osgconv --formats on my System if find the Plugins and set the 
 OSG_PLUGIN_EXTENSION to .so (thats right)

 LD_LIBRARY_PATH and OSG_LIBRARY_PATH are set to plugin folder with my *.so 
 Files

 When i delete all parts to load some pictures from my source the project runs 
 (black window)

 Can sombody help me with my problem? Any Ideas?

 Thank you!

 Cheers,
 Wadim

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





 ___
 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] Could not find plugin on Mac OS X 10.6.2

2010-01-09 Thread Wadim Schmidt
Now, i find the answer for my problem.

I`ve lost so many time to install OpenSceneGraph on my system, so i vorget
i have two versions now. 
The first version is in OS X style with Frameworks, the other in unix style.

My Problem was i`ve used both. The OS X Version does not need .so files (see 
the Quick Start Guide)

Now i used only the Unix style and the project finds the plugins and than it 
crash.


Terminal

***
...
...
1266 2955980800 ./server/channel.cpp:336  1075 Channel viewport update: [ 0 0 
640 400 ]:[ 0 0 1 1 ]
Warping Shader enabled!
CullSettings::readEnvironmentalVariables()
DatabasePager::addDatabaseThread() HANDLE_NON_HTTP
DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
GraphicsContext::registerGraphicsContext 0x1231c010
GraphicsContext::createNewContextID() creating contextID=0
Updating the MaxNumberOfGraphicsContexts to 1
CullSettings::readEnvironmentalVariables()
Falling back to drawing a quad.
itr='/Developer/SDK/OSG/lib'
FindFileInPath() : trying /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_qt.so 
...
FindFileInPath() : USING /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_qt.so
Opened DynamicLibrary osgPlugins-2.9.6/osgdb_qt.so
Quicktime initialized successfully
itr='/Developer/SDK/OSG/lib'
FindFileInPath() : trying /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_bmp.so 
...
FindFileInPath() : USING /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_bmp.so
Opened DynamicLibrary osgPlugins-2.9.6/osgdb_bmp.so
Bus error
logout

***

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





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


Re: [osg-users] Could not find plugin on Mac OS X 10.6.2

2010-01-09 Thread Wadim Schmidt
Now, i find the answer for my problem.

I`ve lost so many time to install OpenSceneGraph on my system, so i vorget
i have two versions now. 
The first version is in OS X style with Frameworks, the other in unix style.

My Problem was i`ve used both. The OS X Version does not need .so files (see 
the Quick Start Guide)

Now i used only the Unix style and the project finds the plugins and than it 
crash.


Terminal

***
...
...
1266 2955980800 ./server/channel.cpp:336  1075 Channel viewport update: [ 0 0 
640 400 ]:[ 0 0 1 1 ]
Warping Shader enabled!
CullSettings::readEnvironmentalVariables()
DatabasePager::addDatabaseThread() HANDLE_NON_HTTP
DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()
GraphicsContext::registerGraphicsContext 0x1231c010
GraphicsContext::createNewContextID() creating contextID=0
Updating the MaxNumberOfGraphicsContexts to 1
CullSettings::readEnvironmentalVariables()
Falling back to drawing a quad.
itr='/Developer/SDK/OSG/lib'
FindFileInPath() : trying /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_qt.so 
...
FindFileInPath() : USING /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_qt.so
Opened DynamicLibrary osgPlugins-2.9.6/osgdb_qt.so
Quicktime initialized successfully
itr='/Developer/SDK/OSG/lib'
FindFileInPath() : trying /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_bmp.so 
...
FindFileInPath() : USING /Developer/SDK/OSG/lib/osgPlugins-2.9.6/osgdb_bmp.so
Opened DynamicLibrary osgPlugins-2.9.6/osgdb_bmp.so
Bus error
logout

***

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





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