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 

Building on macOS 10.14


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Ulrich Hertlein
Guest





PostPosted: Sun Nov 11, 2018 12:45 pm    Post subject:
Building on macOS 10.14
Reply with quote

Hi guys,

Has anyone managed to build OSG (master) on macOS 10.14?

I'm getting a cmake failure trying to even find a useable compiler, due to the usage of
the deprecated+removed libstdc++.

I'm working on a fix for that, but during that journey I noticed that
- minimum supported OS X version is *supposedly* 10.4
- there's checks for Carbon support all over the place

My question is this:
- is somebody actually *using* OSG with macOS pre 10.10 (for example)?
- is (that same?) somebody actually still *using* Carbon?

If not then I'd consider removing Carbon support and setting the minimum supported macOS
version to 10.10 or thereabouts. Please note that I don't have a way to check whether it
actually *works* with anything previous to the current version 10.14 though...

Cheers,
/Ulrich




------------------
Post generated by Mail2Forum
Back to top
Chris Hanson
Guest





PostPosted: Sun Nov 11, 2018 6:11 pm    Post subject:
Building on macOS 10.14
Reply with quote

Let me check with Thomas Hogarth on this. He's my go-to guy on OSX.

On Sun, Nov 11, 2018 at 1:44 PM Ulrich Hertlein < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi guys,

Has anyone managed to build OSG (master) on macOS 10.14?

I'm getting a cmake failure trying to even find a useable compiler, due to the usage of
the deprecated+removed libstdc++.

I'm working on a fix for that, but during that journey I noticed that
- minimum supported OS X version is *supposedly* 10.4
- there's checks for Carbon support all over the place

My question is this:
- is somebody actually *using* OSG with macOS pre 10.10 (for example)?
- is (that same?) somebody actually still *using* Carbon?

If not then I'd consider removing Carbon support and setting the minimum supported macOS
version to 10.10 or thereabouts.  Please note that I don't have a way to check whether it
actually *works* with anything previous to the current version 10.14 though...

Cheers,
/Ulrich

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
Post generated by Mail2Forum
Back to top
Kaeru (Jan Brejcha)
Newbie


Joined: 04 May 2018
Posts: 4

PostPosted: Sat Jan 26, 2019 10:53 am    Post subject:
Building on macOS 10.14
Reply with quote

Hi,

is there any progress with a working version for macos 10.14? I did not have any problem building on 10.13, but on 10.14 I get exactly the same CMake error as Ulrich. Any help would be very appreciated!

Thank you!

Cheers,
Jan
Back to top
View user's profile Send private message
Ulrich Hertlein
Guest





PostPosted: Mon Feb 04, 2019 8:10 am    Post subject:
Building on macOS 10.14
Reply with quote

Hi Jan,

I can prepare a diff tonight. But I'm wondering: we can't be the only people trying to
compile for 10.14. Aren't others running into this problem?

Cheers,
/Ulrich

Quote:
is there any progress with a working version for macos 10.14? I did not have any problem building on 10.13,
but on 10.14 I get exactly the same CMake error as Ulrich. Any help would be very appreciated!> > Thank you!> > Cheers,> Jan




------------------
Post generated by Mail2Forum
Back to top
Kaeru (Jan Brejcha)
Newbie


Joined: 04 May 2018
Posts: 4

PostPosted: Mon Feb 04, 2019 12:44 pm    Post subject:
Reply with quote

Hi Ulrich,

I am also wondering why there are no other people complaining about the same issue. It is also weird that before the update to macos 10.14 I have had exactly the same version of XCode as I have now, and everything worked well for me. I didn't do much research about it, but it looks like it could be a change in the system environment or CMake maybe?

I am happy to help with debugging if you can provide the diff, that would be great.

Thanks, Jan.
Back to top
View user's profile Send private message
kornerr
Appreciator


Joined: 01 Oct 2013
Posts: 300

PostPosted: Tue Feb 05, 2019 10:33 am    Post subject:
Building on macOS 10.14
Reply with quote

Hi. What are the issues exactly?

On Tue, 5 Feb 2019 at 10:31, Jan Brejcha <> wrote:
Quote:

Hi Ulrich,

I am also wondering why there are no other people complaining about the same issue. It is also weird that before the update to macos 10.14 I have had exactly the same version of XCode as I have now, and everything worked well for me. I didn't do much research about it, but it looks like it could be a change in the system environment or CMake maybe?

I am happy to help with debugging if you can provide the diff, that would be great.

Thanks, Jan.

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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Kaeru (Jan Brejcha)
Newbie


Joined: 04 May 2018
Posts: 4

PostPosted: Tue Feb 05, 2019 2:48 pm    Post subject:
Re: Building on macOS 10.14
Reply with quote

Hi, the problem is that CMake is not able to find valid compiler due to the fact that it tries to use stdlibc++. I have latest version of XCode 10.1 and command line tools.

The exact error is this one:
Code:

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.13/Modules/CMakeTestCXXCompiler.cmake:45 (message):
  The C++ compiler

    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/janbrejcha/devel/OpenSceneGraph/build/CMakeFiles/CMakeTmp
   
    Run Build Command:"/usr/bin/make" "cmTC_d8931/fast"
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_d8931.dir/build.make CMakeFiles/cmTC_d8931.dir/build
    Building CXX object CMakeFiles/cmTC_d8931.dir/testCXXCompiler.cxx.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++    -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.8   -o CMakeFiles/cmTC_d8931.dir/testCXXCompiler.cxx.o -c /Users/janbrejcha/devel/OpenSceneGraph/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    1 warning generated.
    Linking CXX executable cmTC_d8931
    /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d8931.dir/link.txt --verbose=1
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++    -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.8 -Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/cmTC_d8931.dir/testCXXCompiler.cxx.o  -o cmTC_d8931
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_d8931] Error 1
    make: *** [cmTC_d8931/fast] Error 2
   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:113 (PROJECT)


kornerr wrote:
Hi. What are the issues exactly?

On Tue, 5 Feb 2019 at 10:31, Jan Brejcha <> wrote:
Quote:

Hi Ulrich,

I am also wondering why there are no other people complaining about the same issue. It is also weird that before the update to macos 10.14 I have had exactly the same version of XCode as I have now, and everything worked well for me. I didn't do much research about it, but it looks like it could be a change in the system environment or CMake maybe?

I am happy to help with debugging if you can provide the diff, that would be great.

Thanks, Jan.

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








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


Joined: 06 Feb 2019
Posts: 1

PostPosted: Wed Feb 06, 2019 8:24 am    Post subject:
[ Post is awaiting approval ]

[ Post is awaiting approval ]
Back to top
View user's profile Send private message
Kaeru (Jan Brejcha)
Newbie


Joined: 04 May 2018
Posts: 4

PostPosted: Wed Feb 06, 2019 9:57 pm    Post subject:
Reply with quote

Hi,

I found a related issue on Github, seems solved https://github.com/openscenegraph/OpenSceneGraph/issues/637


Cheers,
Jan
Back to top
View user's profile Send private message
Ulrich Hertlein
Guest





PostPosted: Thu Feb 07, 2019 7:58 pm    Post subject:
Building on macOS 10.14
Reply with quote

On 6/2/19 22:57, Jan Brejcha wrote:
Quote:
I found a related issue on Github, seems solved https://github.com/openscenegraph/OpenSceneGraph/issues/637

Yes, seems to work around the issue, but I wouldn't call it being solved.

The cmake files are broken, because they set the necessary environment *after* the
compiler is detected and checked.

I've created a pull request with cleanups and fixes for macOS 10.14.
https://github.com/openscenegraph/OpenSceneGraph/pull/711

Cheers,
/ulrich






------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 Building with MinGW on Windows 10 Skaldi Build system [build] 4 Sat May 18, 2019 3:47 pm View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 0 Fri May 10, 2019 11:20 am View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 2 Fri May 10, 2019 11:19 am View latest post
No new posts Question about method of building osgQt trexmsuee Build system [build] 1 Thu Apr 11, 2019 2:22 pm View latest post
No new posts A question of "ShaderPipeline di... loening General 0 Tue Nov 13, 2018 5:31 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