Re: [osg-users] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Robert Osfield
Hi Chris,

If you don't know what plugins you need start small and add them as
you need them.  Depending upon your needs you could go from needing
none of the plugins to most.  I don't know what your plans are so
can't comment on what plugins you'll need.

To get things started you could either use cmake to disable plugins by
setting the 3rd party dependency paths to empty string to override
what cmake finds.  Another route, but more hacky is to go into the
src/osgPlugins/CMakeLists.txt file and just comment out the plugins
you don't want.  The later route isn't a long term solution but would
at least give you and idea what you can get running quickly.

On the Linux front I wouldn't expect many issues - it's the generally
the easiest platform of all to get working as most linux distribution
come with great package management systems that can install all the
dependencies for you with minimal fuss.

Robert.

On 12 August 2016 at 12:28, Chris Thomas  wrote:
> Hi,
>
> My use case is, I want to add OpenGL functionality to an existing API that 
> actually uses OpenGL. The issue is, that API does not offer very deep 3D 
> support, beyond making 2D media objects in a 3D space. We want/need to create 
> 3D objects, textures etc, so we want to host OpenGL apps via OSG.
>
> So.. in truth, Im guessing 90% of the plugins OSG can provide, could be 
> disabled, at least until we KNOW we need them 100%. After all, compiling OSG 
> on OSX with all plugins enabled, appears to be pretty hard right now, as its 
> not widely used / supported on OSX it seems.
>
> So.. once I have OSG working in our app, as a proof of concept, I also have 
> to get it to compile on Ubuntu 14 + 16. Ill cross that bridge when I come to 
> it though...
>
> I wonder if there is a definitive lists of the plugins that can be disabled? 
> I really want to start with the core OSG, prove it can integrate with our 
> main API and then build from there.
>
> Thank you!
>
> Cheers,
> Chris
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68361#68361
>
>
>
>
>
> ___
> 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] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Chris Thomas
Hi,

My use case is, I want to add OpenGL functionality to an existing API that 
actually uses OpenGL. The issue is, that API does not offer very deep 3D 
support, beyond making 2D media objects in a 3D space. We want/need to create 
3D objects, textures etc, so we want to host OpenGL apps via OSG.

So.. in truth, Im guessing 90% of the plugins OSG can provide, could be 
disabled, at least until we KNOW we need them 100%. After all, compiling OSG on 
OSX with all plugins enabled, appears to be pretty hard right now, as its not 
widely used / supported on OSX it seems.

So.. once I have OSG working in our app, as a proof of concept, I also have to 
get it to compile on Ubuntu 14 + 16. Ill cross that bridge when I come to it 
though...

I wonder if there is a definitive lists of the plugins that can be disabled? I 
really want to start with the core OSG, prove it can integrate with our main 
API and then build from there.

Thank you!

Cheers,
Chris

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





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


Re: [osg-users] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Robert Osfield
Hi Chris,

In general I would say that GStreamer shouldn't be required for OSG
usage under OSX as there are native video plugins already.  Do you
specifically need the GStreamer plugin?  If not you should be able to
disable the build of the plugin by setting the paths that CMake sets
up for GStreamer headers etc. back to empty strings, this will tell
CMake GStreamer isn't there and the plugin won't be built.

If you want the plugin to be built then you'll need to track down
exactly what is going wrong.  From the output you posted the only
error I've spotted so far was:

ld: library not found for -lgstreamer-1.0

Which suggests to me that the CMake find script is partially setting
up the paths and libs but not completely, or the OSG's plugin isn't
setting up the path to the library as required.  One way to get more
information from the build is to run make thus:

  make VERBOSE=1

Also have a look at the GSTREAMER_* variables that CMake sets up,
you'll find these in CMakeCache.txt.

Robert.


On 11 August 2016 at 20:05, Chris Thomas  wrote:
> Hi,
>
> I am pulling OSG 3.4.0 from GIT and attempting to build on OSX El Capitan.
>
> I'm writing a BASH script to do this, as I need to repeat this compile on a 
> number of machines.
> I test this install script on a VMWare OSX El-Capitan machine. Doing so 
> allows me to run the install script over and over, from as clean an install 
> state as I need, until it the OSG compile works.
>
> To complicate matters slightly I already have an existing media platform that 
> my OSG HAS to work with, without disrupting it. That platform already 
> installs gstreamer 1.6.3.
>
>
> So, calling cmake, I get this output...
>
>
> Code:
> cthomass-Mac:osg cthomas$ cmake -DBUILD_OSG_EXAMPLES=1 
> -DCMAKE_OSX_ARCHITECTURES=x86_64 ../OpenSceneGraph/
> -- The C compiler identification is AppleClang 7.3.0.7030031
> -- The CXX compiler identification is AppleClang 7.3.0.7030031
> -- Check for working C compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
> -- Check for working C compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
>  -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
> -- Check for working CXX compiler: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
>  -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - found
> -- Found Threads: TRUE
> -- Found OpenGL: 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework
> -- Performing Test GL_HEADER_HAS_GLINT64
> -- Performing Test GL_HEADER_HAS_GLINT64 - Success
> -- Performing Test GL_HEADER_HAS_GLUINT64
> -- Performing Test GL_HEADER_HAS_GLUINT64 - Success
> -- Found Freetype: /usr/local/lib/libfreetype.dylib (found version "2.6.5")
> -- Found JPEG: /usr/local/lib/libjpeg.dylib
> -- Found Jasper: /usr/local/lib/libjasper.dylib (found version "1.900.1")
> -- Found LibXml2: /opt/oblong/deps-64-11/lib64/libxml2.dylib (found version 
> "2.7.8")
> -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
> -- Found GDAL: /usr/local/Cellar/gdal/1.11.3_1/lib/libgdal.dylib
> -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1")
> -- Checking for module 'gta'
> --   No package 'gta' found
> -- Found CURL: /usr/lib/libcurl.dylib (found version "7.43.0")
> -- Found GStreamer: 
> /opt/oblong/deps-64-11/include/gstreamer-1.0;/opt/oblong/deps-64-11/lib/gstreamer-1.0/include;/opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib/glib-2.0/include
>  (found version "1.6.3")
> -- Found GLIB: 
> /opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib64/glib-2.0/include
>  (found version "2.46.2")
> -- Found SDL2: 
> /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa
> -- Found SDL: 
> /usr/local/lib/libSDLmain.a;/usr/local/lib/libSDL.dylib;-framework Cocoa 
> (found version "1.2.15")
> -- Checking for module 'cairo'
> --   Found cairo, version 1.14.6
> -- Checking for module 'poppler-glib'
> --   Found poppler-glib, version 0.45.0
> -- Performing Test POPPLER_HAS_CAIRO
> -- Performing Test POPPLER_HAS_CAIRO - Success
> -- Checking for module 'librsvg-2.0>=2.35'
> --
> -- Checking for module 'gtk+-2.0'
> --   Found gtk+-2.0, version 2.24.30
> -- Checking for module 'gtkglext-x11-1.0'
> --   No package 'gtkglext-x11-1.0' found
> -- Looking for Q_WS_X11

[osg-users] [build] GStreamer linker error on OSX El Capitan

2016-08-12 Thread Chris Thomas
Hi,

I am pulling OSG 3.4.0 from GIT and attempting to build on OSX El Capitan. 

I'm writing a BASH script to do this, as I need to repeat this compile on a 
number of machines. 
I test this install script on a VMWare OSX El-Capitan machine. Doing so allows 
me to run the install script over and over, from as clean an install state as I 
need, until it the OSG compile works.

To complicate matters slightly I already have an existing media platform that 
my OSG HAS to work with, without disrupting it. That platform already installs 
gstreamer 1.6.3.


So, calling cmake, I get this output...


Code:
cthomass-Mac:osg cthomas$ cmake -DBUILD_OSG_EXAMPLES=1 
-DCMAKE_OSX_ARCHITECTURES=x86_64 ../OpenSceneGraph/
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found OpenGL: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework
  
-- Performing Test GL_HEADER_HAS_GLINT64
-- Performing Test GL_HEADER_HAS_GLINT64 - Success
-- Performing Test GL_HEADER_HAS_GLUINT64
-- Performing Test GL_HEADER_HAS_GLUINT64 - Success
-- Found Freetype: /usr/local/lib/libfreetype.dylib (found version "2.6.5") 
-- Found JPEG: /usr/local/lib/libjpeg.dylib  
-- Found Jasper: /usr/local/lib/libjasper.dylib (found version "1.900.1") 
-- Found LibXml2: /opt/oblong/deps-64-11/lib64/libxml2.dylib (found version 
"2.7.8") 
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") 
-- Found GDAL: /usr/local/Cellar/gdal/1.11.3_1/lib/libgdal.dylib  
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'gta'
--   No package 'gta' found
-- Found CURL: /usr/lib/libcurl.dylib (found version "7.43.0") 
-- Found GStreamer: 
/opt/oblong/deps-64-11/include/gstreamer-1.0;/opt/oblong/deps-64-11/lib/gstreamer-1.0/include;/opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib/glib-2.0/include
 (found version "1.6.3") 
-- Found GLIB: 
/opt/oblong/deps-64-11/include/glib-2.0;/opt/oblong/deps-64-11/lib64/glib-2.0/include
 (found version "2.46.2") 
-- Found SDL2: 
/usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa  
-- Found SDL: 
/usr/local/lib/libSDLmain.a;/usr/local/lib/libSDL.dylib;-framework Cocoa (found 
version "1.2.15") 
-- Checking for module 'cairo'
--   Found cairo, version 1.14.6
-- Checking for module 'poppler-glib'
--   Found poppler-glib, version 0.45.0
-- Performing Test POPPLER_HAS_CAIRO
-- Performing Test POPPLER_HAS_CAIRO - Success
-- Checking for module 'librsvg-2.0>=2.35'
--   
-- Checking for module 'gtk+-2.0'
--   Found gtk+-2.0, version 2.24.30
-- Checking for module 'gtkglext-x11-1.0'
--   No package 'gtkglext-x11-1.0' found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.7") 
-- Found FLTK: 
/usr/local/lib/libfltk_images.dylib;/usr/local/lib/libfltk_forms.dylib;/usr/local/lib/libfltk_gl.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework;/usr/local/lib/libfltk.dylib
  
-- Found wxWidgets: -L/usr/local/lib;;;-framework IOKit;-framework 
Carbon;-framework Cocoa;-framework AudioToolbox;-framework System;-framework 
OpenGL;-lwx_baseu-3.0;-lwx_osx_cocoau_core-3.0;-lwx_osx_cocoau_gl-3.0;-lwx_baseu_net-3.0
 (found version "3.0.2") 
-- Found TIFF: /usr/local/lib/libtiff.dylib (found version "4.0.6") 
Disabling QuickTime because it's not supported by the selected SDK 10.11
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
-- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Success
-- Performing Test