OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

CMake updates for Mac OSX


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
ravidavi
User


Joined: 06 Nov 2015
Posts: 34

PostPosted: Thu Jul 21, 2016 5:54 am    Post subject:
CMake updates for Mac OSX
Reply with quote

UPDATE 8/1/2016: There is a newer version of the patch in the post below.

------- Original post:
Hi Robert,

Here are my updates to the CMake build system for Mac OSX. They correspond to the following two posts:
OSG Build Error on Mac OSX with XCode 7 and CMake 3.4 (or greater)
OSX X11 Build System Failures

The changelog is:
* Moved CMAKE_OSX_ARCHITECTURES and CMAKE_OSX_DEPLOYMENT_TARGET before first call to project() as required by CMake. Fixes configure error produced by CMake 3.4+ on OSX.
* OSX version checks now make use of CMake's built-in VERSION_[LESS/GREATER/EQUAL] version comparator (cleaner code).
* avfoundation plugin and osgmultitouch/osgoscdevice examples disabled on OSX/X11 (not supported).

I've attached the changes as a Git patch because there are multiple CMake files involved:
* CMakeLists.txt
* CMakeModules/FindAVFoundation.cmake
* CMakeModules/FindQuickTime.cmake
* examples/osgmultitouch/CMakeLists.txt
* examples/osgoscdevice/CMakeLists.txt
* src/osgPlugins/avfoundation/CMakeLists.txt
* src/osgViewer/CMakeLists.txt

Ravi


Last edited by ravidavi on Tue Aug 02, 2016 2:57 am; edited 1 time in total
Back to top
View user's profile Send private message
ravidavi
User


Joined: 06 Nov 2015
Posts: 34

PostPosted: Tue Aug 02, 2016 2:51 am    Post subject:
Reply with quote

Hi Robert,

Here are my newest updates to the CMake build system for Mac OSX. The attached patch replaces the one from my previous post.

Changelog:
* On OSX, all OSG components now use the same OpenGL implementation (Cocoa or X11) based on OSG_WINDOWING_SYSTEM. Fixes issues related to mixing Cocoa & X11 OpenGL implementations.
* Moved CMAKE_OSX_ARCHITECTURES and CMAKE_OSX_DEPLOYMENT_TARGET before first call to project() as required by CMake. Fixes configure error produced by CMake 3.4+ on OSX.
* OSX version checks now make use of CMake's built-in VERSION_[LESS/GREATER/EQUAL] version comparator (cleaner code).
* avfoundation plugin and osgmultitouch/osgoscdevice/osgviewerCocoa examples disabled on OSX/X11 (not supported).

I've attached the changes as a Git patch. The CMake files changed are:
* CMakeLists.txt
* CMakeModules/FindAVFoundation.cmake
* CMakeModules/FindQuickTime.cmake
* examples/osgmultitouch/CMakeLists.txt
* examples/osgoscdevice/CMakeLists.txt
* examples/osgviewerCocoa/CMakeLists.txt
* src/osgPlugins/avfoundation/CMakeLists.txt
* src/osgViewer/CMakeLists.txt

Thanks,
Ravi
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11237

PostPosted: Wed Aug 10, 2016 1:34 pm    Post subject:
CMake updates for Mac OSX
Reply with quote

Thanks Ravi, changed now merged and checked into git master. Could
you test git master and let us know whether everything is build fine.
Cheers, Robert.

On 2 August 2016 at 03:51, Ravi Mathur <> wrote:
Quote:
Hi Robert,

Here are my newest updates to the CMake build system for Mac OSX. The attached patch replaces the one from my previous post.

Changelog:
* On OSX, all OSG components now use the same OpenGL implementation (Cocoa or X11) based on OSG_WINDOWING_SYSTEM. Fixes issues related to mixing Cocoa & X11 OpenGL implementations.
* Moved CMAKE_OSX_ARCHITECTURES and CMAKE_OSX_DEPLOYMENT_TARGET before first call to project() as required by CMake. Fixes configure error produced by CMake 3.4+ on OSX.
* OSX version checks now make use of CMake's built-in VERSION_[LESS/GREATER/EQUAL] version comparator (cleaner code).
* avfoundation plugin and osgmultitouch/osgoscdevice examples disabled on OSX/X11 (not supported).

I've attached the changes as a Git patch. The CMake files changed are:
* CMakeLists.txt
* CMakeModules/FindAVFoundation.cmake
* CMakeModules/FindQuickTime.cmake
* examples/osgmultitouch/CMakeLists.txt
* examples/osgoscdevice/CMakeLists.txt
* examples/osgviewerCocoa/CMakeLists.txt
* src/osgPlugins/avfoundation/CMakeLists.txt
* src/osgViewer/CMakeLists.txt

Thanks,
Ravi

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
ravidavi
User


Joined: 06 Nov 2015
Posts: 34

PostPosted: Thu Aug 11, 2016 4:38 pm    Post subject:
Reply with quote

Thanks Robert, everything seems to work just fine now.

By the way, in the future would you prefer I fork OSG and send you a pull request?

Ravi
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Fix for cmake modules for plugin exr robertosfield Submission 1 Tue Nov 14, 2017 10:17 am View latest post
No new posts WG: CMake Updates for DicomTK zonk Submission 3 Fri May 12, 2017 10:46 am View latest post
No new posts OSG 3.4 and Qt 5 cmake problem. Found... Elias Tarasov General 1 Mon Apr 10, 2017 12:26 pm View latest post
No new posts missed submission? 3rdParty Package -... zonk Submission 6 Fri Apr 07, 2017 10:13 pm View latest post
No new posts CMake Updates for DicomTK zonk Submission 0 Fri Apr 07, 2017 12:19 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP